diff --git a/operator/v1/types.go b/operator/v1/types.go index 9d22e84f57e..9299ae8c463 100644 --- a/operator/v1/types.go +++ b/operator/v1/types.go @@ -125,6 +125,10 @@ type JavaLog struct { } type OperatorStatus struct { + // observedGeneration is the last generation change you've dealt with + // +optional + ObservedGeneration int64 `json:"observedGeneration,omitempty"` + // conditions is a list of conditions and their status Conditions []OperatorCondition `json:"conditions,omitempty"` diff --git a/operator/v1/types_swagger_doc_generated.go b/operator/v1/types_swagger_doc_generated.go index 1b59fa79e74..94b19549018 100644 --- a/operator/v1/types_swagger_doc_generated.go +++ b/operator/v1/types_swagger_doc_generated.go @@ -122,10 +122,11 @@ func (OperatorSpec) SwaggerDoc() map[string]string { } var map_OperatorStatus = map[string]string{ - "conditions": "conditions is a list of conditions and their status", - "version": "version is the level this availability applies to", - "readyReplicas": "readyReplicas indicates how many replicas are ready and at the desired state", - "generations": "generations are used to determine when an item needs to be reconciled or has changed in a way that needs a reaction.", + "observedGeneration": "observedGeneration is the last generation change you've dealt with", + "conditions": "conditions is a list of conditions and their status", + "version": "version is the level this availability applies to", + "readyReplicas": "readyReplicas indicates how many replicas are ready and at the desired state", + "generations": "generations are used to determine when an item needs to be reconciled or has changed in a way that needs a reaction.", } func (OperatorStatus) SwaggerDoc() map[string]string {