mirror of
https://github.com/storytold/irsa-manager.git
synced 2026-10-29 08:57:49 +00:00
update status field
This commit is contained in:
@@ -71,8 +71,14 @@ type SecretRef struct {
|
|||||||
|
|
||||||
// IRSASetupStatus defines the observed state of IRSASetup
|
// IRSASetupStatus defines the observed state of IRSASetup
|
||||||
type IRSASetupStatus struct {
|
type IRSASetupStatus struct {
|
||||||
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
|
SelfHostedSetup CommonStatus `json:"selfHostedSetup,omitempty"`
|
||||||
// Important: Run "make" to regenerate code after modifying this file
|
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
|
//+kubebuilder:object:root=true
|
||||||
|
|||||||
@@ -40,6 +40,26 @@ func (in *Auth) DeepCopy() *Auth {
|
|||||||
return out
|
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.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *Discovery) DeepCopyInto(out *Discovery) {
|
func (in *Discovery) DeepCopyInto(out *Discovery) {
|
||||||
*out = *in
|
*out = *in
|
||||||
@@ -62,7 +82,7 @@ func (in *IRSASetup) DeepCopyInto(out *IRSASetup) {
|
|||||||
out.TypeMeta = in.TypeMeta
|
out.TypeMeta = in.TypeMeta
|
||||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||||
out.Spec = in.Spec
|
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.
|
// 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.
|
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||||
func (in *IRSASetupStatus) DeepCopyInto(out *IRSASetupStatus) {
|
func (in *IRSASetupStatus) DeepCopyInto(out *IRSASetupStatus) {
|
||||||
*out = *in
|
*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.
|
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IRSASetupStatus.
|
||||||
|
|||||||
@@ -91,6 +91,31 @@ spec:
|
|||||||
type: object
|
type: object
|
||||||
status:
|
status:
|
||||||
description: IRSASetupStatus defines the observed state of IRSASetup
|
description: IRSASetupStatus defines the observed state of IRSASetup
|
||||||
|
properties:
|
||||||
|
commonSetup:
|
||||||
|
description: CommonStatus is a set of status attributes
|
||||||
|
properties:
|
||||||
|
errors:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
healthy:
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- healthy
|
||||||
|
type: object
|
||||||
|
selfHostedSetup:
|
||||||
|
description: CommonStatus is a set of status attributes
|
||||||
|
properties:
|
||||||
|
errors:
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
type: array
|
||||||
|
healthy:
|
||||||
|
type: boolean
|
||||||
|
required:
|
||||||
|
- healthy
|
||||||
|
type: object
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
served: true
|
served: true
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
processor:
|
processor:
|
||||||
ignoreTypes:
|
ignoreTypes:
|
||||||
- "List$"
|
- "List$"
|
||||||
|
- "CommonStatus"
|
||||||
ignoreFields:
|
ignoreFields:
|
||||||
- "status$"
|
- "status$"
|
||||||
- "TypeMeta$"
|
- "TypeMeta$"
|
||||||
|
|||||||
Reference in New Issue
Block a user