mirror of
https://github.com/storytold/irsa-manager.git
synced 2026-10-09 00:09:43 +00:00
update status field
This commit is contained in:
@@ -71,8 +71,14 @@ type SecretRef struct {
|
||||
|
||||
// IRSASetupStatus defines the observed state of IRSASetup
|
||||
type IRSASetupStatus struct {
|
||||
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
|
||||
// Important: Run "make" to regenerate code after modifying this file
|
||||
SelfHostedSetup CommonStatus `json:"selfHostedSetup,omitempty"`
|
||||
CommonSetup CommonStatus `json:"commonSetup,omitempty"`
|
||||
}
|
||||
|
||||
// CommonStatus is a set of status attributes
|
||||
type CommonStatus struct {
|
||||
Healthy bool `json:"healthy"`
|
||||
Errors []string `json:"errors,omitempty"`
|
||||
}
|
||||
|
||||
//+kubebuilder:object:root=true
|
||||
|
||||
@@ -40,6 +40,26 @@ func (in *Auth) DeepCopy() *Auth {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *CommonStatus) DeepCopyInto(out *CommonStatus) {
|
||||
*out = *in
|
||||
if in.Errors != nil {
|
||||
in, out := &in.Errors, &out.Errors
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommonStatus.
|
||||
func (in *CommonStatus) DeepCopy() *CommonStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(CommonStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *Discovery) DeepCopyInto(out *Discovery) {
|
||||
*out = *in
|
||||
@@ -62,7 +82,7 @@ func (in *IRSASetup) DeepCopyInto(out *IRSASetup) {
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
out.Spec = in.Spec
|
||||
out.Status = in.Status
|
||||
in.Status.DeepCopyInto(&out.Status)
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IRSASetup.
|
||||
@@ -135,6 +155,8 @@ func (in *IRSASetupSpec) DeepCopy() *IRSASetupSpec {
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *IRSASetupStatus) DeepCopyInto(out *IRSASetupStatus) {
|
||||
*out = *in
|
||||
in.SelfHostedSetup.DeepCopyInto(&out.SelfHostedSetup)
|
||||
in.CommonSetup.DeepCopyInto(&out.CommonSetup)
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IRSASetupStatus.
|
||||
|
||||
Reference in New Issue
Block a user