-
Notifications
You must be signed in to change notification settings - Fork 68
✨ OPRUN-4221: Use operator-controller SA by default, make SA field optional #2333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -67,14 +67,14 @@ type ClusterExtensionSpec struct { | |||||
| // +kubebuilder:validation:Required | ||||||
| Namespace string `json:"namespace"` | ||||||
|
|
||||||
| // serviceAccount is a reference to a ServiceAccount used to perform all interactions | ||||||
| // with the cluster that are required to manage the extension. | ||||||
| // serviceAccount is an optional field that references a ServiceAccount used to | ||||||
| // perform all interactions with the cluster that are required to manage the extension. | ||||||
| // If not set, operator-controller will use its own ServiceAccount for extension management. | ||||||
| // The ServiceAccount must be configured with the necessary permissions to perform these interactions. | ||||||
| // The ServiceAccount must exist in the namespace referenced in the spec. | ||||||
| // serviceAccount is required. | ||||||
| // | ||||||
| // +kubebuilder:validation:Required | ||||||
| ServiceAccount ServiceAccountReference `json:"serviceAccount"` | ||||||
| // +optional | ||||||
| ServiceAccount ServiceAccountReference `json:"serviceAccount,omitzero"` | ||||||
|
|
||||||
| // source is a required field which selects the installation source of content | ||||||
| // for this ClusterExtension. Selection is performed by setting the sourceType. | ||||||
|
|
@@ -374,7 +374,7 @@ type CatalogFilter struct { | |||||
| UpgradeConstraintPolicy UpgradeConstraintPolicy `json:"upgradeConstraintPolicy,omitempty"` | ||||||
| } | ||||||
|
|
||||||
| // ServiceAccountReference identifies the serviceAccount used fo install a ClusterExtension. | ||||||
| // ServiceAccountReference identifies the serviceAccount used to install a ClusterExtension. | ||||||
| type ServiceAccountReference struct { | ||||||
| // name is a required, immutable reference to the name of the ServiceAccount | ||||||
| // to be used for installation and management of the content for the package | ||||||
|
|
@@ -403,7 +403,7 @@ type ServiceAccountReference struct { | |||||
| // +kubebuilder:validation:MaxLength:=253 | ||||||
| // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="name is immutable" | ||||||
| // +kubebuilder:validation:XValidation:rule="self.matches(\"^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$\")",message="name must be a valid DNS1123 subdomain. It must contain only lowercase alphanumeric characters, hyphens (-) or periods (.), start and end with an alphanumeric character, and be no longer than 253 characters" | ||||||
| // +kubebuilder:validation:Required | ||||||
| // +kubebuilder:validation:Optional | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| Name string `json:"name"` | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| } | ||||||
|
|
||||||
|
|
||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we allow a CE to unset the SA now that it is optional? Open question. I think we need to discuss.