update status field

This commit is contained in:
kkb0318
2024-04-15 22:39:42 +09:00
parent cf56936288
commit 09167b9469
4 changed files with 57 additions and 3 deletions
+8 -2
View File
@@ -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
+23 -1
View File
@@ -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.