Skip to content

Commit

Permalink
Add initial draft to allow limit number of changes on cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Mar 12, 2024
1 parent fe33045 commit 45194b7
Show file tree
Hide file tree
Showing 7 changed files with 768 additions and 100 deletions.
9 changes: 8 additions & 1 deletion api/v1alpha1/rpaasinstance_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,14 @@ type TLSSessionTicket struct {

// RpaasInstanceStatus defines the observed state of RpaasInstance
type RpaasInstanceStatus struct {
// Revision hash calculated for the current spec.
//Revision hash calculated for the current spec of rpaasinstance
RevisionHash string `json:"revisionHash,omitempty"`

// NginxUpdated is true if the wanted nginx revision hash equals the
// observed nginx revision hash.
ReconcileDelayed bool `json:"reconcileDelayed,omitempty"`

// Revision hash calculated for the current spec of nginx.
WantedNginxRevisionHash string `json:"wantedNginxRevisionHash,omitempty"`

// The revision hash observed by the controller in the nginx object.
Expand Down
9 changes: 8 additions & 1 deletion config/crd/bases/extensions.tsuru.io_rpaasinstances.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6476,8 +6476,15 @@ spec:
podSelector:
description: PodSelector is the NGINX's pod label selector.
type: string
reconcileDelayed:
description: NginxUpdated is true if the wanted nginx revision hash
equals the observed nginx revision hash.
type: boolean
revisionHash:
description: Revision hash calculated for the current spec of rpaasinstance
type: string
wantedNginxRevisionHash:
description: Revision hash calculated for the current spec.
description: Revision hash calculated for the current spec of nginx.
type: string
required:
- nginxUpdated
Expand Down
Loading

0 comments on commit 45194b7

Please sign in to comment.