Skip to content

Commit

Permalink
Add --default-seccomp-profile-type flag
Browse files Browse the repository at this point in the history
Signed-off-by: Arnob kumar saha <[email protected]>
  • Loading branch information
ArnobKumarSaha authored and tamalsaha committed Dec 1, 2023
1 parent ee86f5b commit 2c32695
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apis/installer/v1alpha1/kubedb_provisioner_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ type KubedbProvisionerSpec struct {
// +optional
LicenseSecretName string `json:"licenseSecretName"`
Psp PSPSpec `json:"psp"`
// +optional
DefaultSeccompProfileType string `json:"defaultSeccompProfileType"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
1 change: 1 addition & 0 deletions charts/kubedb-provisioner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ The following table lists the configurable parameters of the `kubedb-provisioner
| monitoring.serviceMonitor.labels | Specify the labels for ServiceMonitor. Prometheus crd will select ServiceMonitor using these labels. Only usable when monitoring agent is `prometheus.io/operator`. | <code>{"monitoring.appscode.com/prometheus":"auto"}</code> |
| additionalPodSecurityPolicies | Additional psp names passed to operator <br> Example: <br> `helm template ./chart/kubedb \` <br> `--set additionalPodSecurityPolicies[0]=abc \` <br> `--set additionalPodSecurityPolicies[1]=xyz` | <code>[]</code> |
| psp.enabled | | <code>true</code> |
| defaultSeccompProfileType | | <code>""</code> |


Specify each parameter using the `--set key=value[,key=value]` argument to `helm upgrade -i`. For example:
Expand Down
1 change: 1 addition & 0 deletions charts/kubedb-provisioner/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ spec:
- --v={{ .Values.logLevel }}
- --use-kubeapiserver-fqdn-for-aks={{ .Values.apiserver.useKubeapiserverFqdnForAks }}
- --metrics-bind-address=:{{ .Values.monitoring.bindPort }}
- --default-seccomp-profile-type={{ .Values.defaultSeccompProfileType }}
- --health-probe-bind-address=:{{ .Values.apiserver.healthcheck.probePort }}
{{- include "docker.imagePullSecretFlags" . | nindent 8 }}
{{- include "docker.insecureRegistries" . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/kubedb-provisioner/values.openapiv3_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,8 @@ properties:
type: object
criticalAddon:
type: boolean
defaultSeccompProfileType:
type: string
enforceTerminationPolicy:
type: boolean
fullnameOverride:
Expand Down
2 changes: 2 additions & 0 deletions charts/kubedb-provisioner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,5 @@ monitoring:
additionalPodSecurityPolicies: []
psp:
enabled: true

defaultSeccompProfileType: ""
2 changes: 2 additions & 0 deletions charts/kubedb/values.openapiv3_schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5056,6 +5056,8 @@ properties:
type: object
criticalAddon:
type: boolean
defaultSeccompProfileType:
type: string
enabled:
type: boolean
enforceTerminationPolicy:
Expand Down

0 comments on commit 2c32695

Please sign in to comment.