immutable field: "mode"

This commit is contained in:
kkb0318
2024-08-02 20:06:10 +09:00
parent 912544b4c6
commit 7c3da8a644
4 changed files with 9 additions and 0 deletions
+1
View File
@@ -52,6 +52,7 @@ type IRSASetupSpec struct {
// +kubebuilder:default=selfhosted
// +kubebuilder:validation:Enum=selfhosted;eks
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable"
type SetupMode string
const (
@@ -82,6 +82,9 @@ spec:
- selfhosted
- eks
type: string
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
provider:
description: |-
IamOIDCProvider configures IAM OIDC IamOIDCProvider Name
@@ -71,5 +71,7 @@ spec:
| nindent 10 }}
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccountName: {{ include "irsa-manager.fullname" . }}-controller-manager
terminationGracePeriodSeconds: 10
@@ -83,6 +83,9 @@ spec:
- selfhosted
- eks
type: string
x-kubernetes-validations:
- message: Value is immutable
rule: self == oldSelf
provider:
description: |-
IamOIDCProvider configures IAM OIDC IamOIDCProvider Name