Skip to content

Commit

Permalink
Add default passwordSelector value
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwede committed Jun 27, 2023
1 parent 897a859 commit 0e5e1e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/v1beta1/swiftproxy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ type SwiftProxySpec struct {
// Secret containing OpenStack password information for Swift service user password
Secret string `json:"secret,omitempty"`

// +kubebuilder:validation:required
// +kubebuilder:validation:Optional
// +kubebuilder:default={service: SwiftPassword}
// PasswordSelector - Selector to choose the Swift user password from the Secret
PasswordSelectors PasswordSelector `json:"passwordSelectors,omitempty"`
PasswordSelectors PasswordSelector `json:"passwordSelectors"`

// +kubebuilder:validation:required
// +kubebuilder:default=swift-conf
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/swift.openstack.org_swiftproxies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ spec:
description: Swift Proxy Container Image URL
type: string
passwordSelectors:
default:
service: SwiftPassword
description: PasswordSelector - Selector to choose the Swift user
password from the Secret
properties:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/swift.openstack.org_swifts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ spec:
description: Swift Proxy Container Image URL
type: string
passwordSelectors:
default:
service: SwiftPassword
description: PasswordSelector - Selector to choose the Swift user
password from the Secret
properties:
Expand Down

0 comments on commit 0e5e1e8

Please sign in to comment.