diff --git a/charts/connect/README.md b/charts/connect/README.md index bf1a8ef..3fe4cc2 100644 --- a/charts/connect/README.md +++ b/charts/connect/README.md @@ -100,6 +100,7 @@ helm install --set connect.applicationName=connect connect ./connect | connect.tls.secret | string | `"op-connect-tls"` | The name of the secret containing the TLS key (`tls.key`) and certificate (`tls.crt`) | | connect.tolerations | list | `[]` | List of tolerations to be added to the Connect API pods. | | connect.version | string | `{{.Chart.AppVersion}}` | The 1Password Connect version to pull | +| connect.priorityClassName | string | `""` | The name of the 1Password Connect priority class | | operator.autoRestart | boolean | `false` | Denotes whether the 1Password Operator will automatically restart deployments based on associated updated secrets. | | operator.create | boolean | `false` | Denotes whether the 1Password Operator will be deployed | | operator.imagePullPolicy | string | `"IfNotPresent"` | The 1Password Operator image pull policy | @@ -107,7 +108,7 @@ helm install --set connect.applicationName=connect connect ./connect | operator.nodeSelector | object | `{}` | [Node selector](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector) stanza for the operator pod | | operator.annotations | object | `{}` | Additional annotations to be added to the Operator deployment resource. | | operator.labels | object | `{}` | Additional labels to be added to the Operator deployment resource. | -| operator.logLevel | string | `info` | Log level of the Operator container. Valid options are: debug, info and error. | +| operator.logLevel | string | `info` | Log level of the Operator container. Valid options are: debug, info and error. | | operator.podAnnotations | object | `{}` | Additional annotations to be added to the Operator pods. | | operator.podLabels | object | `{}` | Additional labels to be added to the Operator pods. | | operator.pollingInterval | integer | `600` | How often the 1Password Operator will poll for secrets updates. | @@ -118,7 +119,8 @@ helm install --set connect.applicationName=connect connect ./connect | operator.roleBinding.name | string | `"onepassword-connect-operator"` | The name of the 1Password Operator Role Binding | | operator.serviceAccount.annotations | object | `{}` | Annotations for the 1Password Connect Service Account | | operator.serviceAccount.create | boolean | `{{.Values.operator.create}}` | Denotes whether or not a service account will be created for the 1Password Operator | -| operator.serviceAccount.name | string | `"onepassword-connect-operator"` | The name of the 1Password Conenct Operator | +| operator.serviceAccount.name | string | `"onepassword-connect-operator"` | The name of the 1Password Connect Operator | +| operator.priorityClassName | string | `""` | The name of the priority class for the 1Password Connect Operator | | operator.tolerations | list | `[]` | List of tolerations to be added to the Operator pods. | | operator.version | string | `"1.8.0"` | T 1Password Operator version to pull | | operator.token.key | string | `"token"` | The key for the 1Password Connect token stored in the 1Password token secret | diff --git a/charts/connect/templates/connect-deployment.yaml b/charts/connect/templates/connect-deployment.yaml index cf4057a..67c5c35 100644 --- a/charts/connect/templates/connect-deployment.yaml +++ b/charts/connect/templates/connect-deployment.yaml @@ -48,6 +48,9 @@ spec: secret: secretName: {{ .Values.connect.tls.secret }} {{- end }} + {{- with .Values.connect.priorityClassName }} + priorityClassName: {{ . }} + {{- end }} tolerations: {{ toYaml .Values.connect.tolerations | indent 8 }} containers: diff --git a/charts/connect/templates/operator-deployment.yaml b/charts/connect/templates/operator-deployment.yaml index 568c0de..58416a9 100644 --- a/charts/connect/templates/operator-deployment.yaml +++ b/charts/connect/templates/operator-deployment.yaml @@ -39,6 +39,9 @@ spec: tolerations: {{ toYaml .Values.operator.tolerations | indent 8 }} serviceAccountName: {{ .Values.operator.serviceAccount.name }} + {{- with .Values.operator.priorityClassName }} + priorityClassName: {{ . }} + {{- end }} containers: - name: {{ .Values.connect.applicationName }} image: {{ .Values.operator.imageRepository }}:{{ .Values.operator.version | default "latest" }} diff --git a/charts/connect/values.yaml b/charts/connect/values.yaml index dafaa77..6b0cefc 100644 --- a/charts/connect/values.yaml +++ b/charts/connect/values.yaml @@ -189,6 +189,9 @@ connect: # Number of profiler snapshots to keep. keepLast: 12 + # 1Password Connect PriorityClass Name + priorityClassName: "" + # This section of values is for 1Password Operator Configuration operator: # Denotes whether the 1Password Operator will be deployed @@ -259,6 +262,9 @@ operator: # The name of the 1Password Conenct Operator name: onepassword-connect-operator + # 1Password Operator PriorityClass Name + priorityClassName: "" + # 1Password Operator Role Binding Configuration roleBinding: # Denotes whether or not a role binding will be created for each Namespace for the 1Password Operator Service Account