Skip to content

Commit

Permalink
Make new status field on cfapp optional
Browse files Browse the repository at this point in the history
This stops the patching failing when an existing app is reconciled after
upgrading korifi.

Also make vcapServicesSecretName optional for consistency

Co-authored-by: Giuseppe Capizzi <[email protected]>
  • Loading branch information
2 people authored and kieron-dev committed Feb 16, 2023
1 parent a22af23 commit a7c13bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion controllers/api/v1alpha1/cfapp_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@ type CFAppStatus struct {
Conditions []metav1.Condition `json:"conditions"`

// Deprecated: No longer used
// +kubebuilder:validation:Optional
//+kubebuilder:validation:Optional
ObservedDesiredState DesiredState `json:"observedDesiredState"`

// VCAPServicesSecretName contains the name of the CFApp's VCAP_SERVICES Secret, which should exist in the same namespace
//+kubebuilder:validation:Optional
VCAPServicesSecretName string `json:"vcapServicesSecretName"`

// VCAPApplicationSecretName contains the name of the CFApp's VCAP_APPLICATION Secret, which should exist in the same namespace
//+kubebuilder:validation:Optional
VCAPApplicationSecretName string `json:"vcapApplicationSecretName"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,6 @@ spec:
type: string
required:
- conditions
- vcapApplicationSecretName
- vcapServicesSecretName
type: object
type: object
served: true
Expand Down

0 comments on commit a7c13bb

Please sign in to comment.