diff --git a/api/v1alpha1/tenantcontrolplane_types.go b/api/v1alpha1/tenantcontrolplane_types.go
index 9174a72..14b5b19 100644
--- a/api/v1alpha1/tenantcontrolplane_types.go
+++ b/api/v1alpha1/tenantcontrolplane_types.go
@@ -327,6 +327,8 @@ type DeploymentSpec struct {
//+kubebuilder:default="default"
// ServiceAccountName allows to specify the service account to be mounted to the pods of the Control plane deployment
ServiceAccountName string `json:"serviceAccountName,omitempty"`
+ // AutomountServiceAccountToken allows to enable the automatic mounting of the service account token to the pods of the Control plane deployment
+ AutomountServiceAccountToken *bool `json:"automountServiceAccountToken,omitempty"`
// ContainerSecurityContexts allows to specify the security context for the individual control plane components.
ContainerSecurityContexts *ControlPlaneContainerSecurityContexts `json:"containerSecurityContexts,omitempty"`
// PodSecurityContext allows to specify the security context for the control plane pod.
diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go
index a83069e..c9b8ecd 100644
--- a/api/v1alpha1/zz_generated.deepcopy.go
+++ b/api/v1alpha1/zz_generated.deepcopy.go
@@ -797,6 +797,11 @@ func (in *DeploymentSpec) DeepCopyInto(out *DeploymentSpec) {
*out = new(ControlPlaneProbes)
(*in).DeepCopyInto(*out)
}
+ if in.AutomountServiceAccountToken != nil {
+ in, out := &in.AutomountServiceAccountToken, &out.AutomountServiceAccountToken
+ *out = new(bool)
+ **out = **in
+ }
if in.ContainerSecurityContexts != nil {
in, out := &in.ContainerSecurityContexts, &out.ContainerSecurityContexts
*out = new(ControlPlaneContainerSecurityContexts)
diff --git a/charts/kamaji-crds/hack/kamaji.clastix.io_tenantcontrolplanes_spec.yaml b/charts/kamaji-crds/hack/kamaji.clastix.io_tenantcontrolplanes_spec.yaml
index 360b750..9debdfd 100644
--- a/charts/kamaji-crds/hack/kamaji.clastix.io_tenantcontrolplanes_spec.yaml
+++ b/charts/kamaji-crds/hack/kamaji.clastix.io_tenantcontrolplanes_spec.yaml
@@ -6301,6 +6301,9 @@ versions:
x-kubernetes-list-type: atomic
type: object
type: object
+ automountServiceAccountToken:
+ description: AutomountServiceAccountToken allows to enable the automatic mounting of the service account token to the pods of the Control plane deployment
+ type: boolean
containerSecurityContexts:
description: ContainerSecurityContexts allows to specify the security context for the individual control plane components.
properties:
diff --git a/charts/kamaji/crds/kamaji.clastix.io_tenantcontrolplanes.yaml b/charts/kamaji/crds/kamaji.clastix.io_tenantcontrolplanes.yaml
index 0e4411a..70dd8e0 100644
--- a/charts/kamaji/crds/kamaji.clastix.io_tenantcontrolplanes.yaml
+++ b/charts/kamaji/crds/kamaji.clastix.io_tenantcontrolplanes.yaml
@@ -6309,6 +6309,9 @@ spec:
x-kubernetes-list-type: atomic
type: object
type: object
+ automountServiceAccountToken:
+ description: AutomountServiceAccountToken allows to enable the automatic mounting of the service account token to the pods of the Control plane deployment
+ type: boolean
containerSecurityContexts:
description: ContainerSecurityContexts allows to specify the security context for the individual control plane components.
properties:
diff --git a/docs/content/reference/api.md b/docs/content/reference/api.md
index d5b9be3..998dd77 100644
--- a/docs/content/reference/api.md
+++ b/docs/content/reference/api.md
@@ -31345,6 +31345,13 @@ Defining the options for the deployed Tenant Control Plane as Deployment resourc
More info: https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/