Skip to content

Commit

Permalink
Add priorityClassName values to operator and connect
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-zipprick authored and jonas-codesphere committed Aug 13, 2024
1 parent 282df93 commit 0dd27cc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions charts/connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ helm install --set connect.applicationName=connect connect ./connect
| connect.ingress.pathType | string | `"Prefix"` | Ingress PathType see [docs](https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types) |
| connect.ingress.tls | list | `[]` | Ingress TLS see [docs](https://kubernetes.io/docs/concepts/services-networking/ingress/#tls) |
| connect.nodeSelector | object | `{}` | [Node selector](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector) stanza for the Connect pod |
| connect.priorityClassName | string | `""` | priorityClassName to apply to the Connect API deployment resource. |
| connect.probes.readiness | boolean | `true` | Denotes whether the 1Password Connect API readiness probe will operate and ensure the pod is ready before serving traffic |
| connect.probes.liveness | boolean | `true` | Denotes whether the 1Password Connect API will be continually checked by Kubernetes for liveness and restarted if the pod becomes unresponsive |
| connect.annotations | object | `{}` | Additional annotations to be added to the Connect API deployment resource. |
Expand Down Expand Up @@ -112,6 +113,7 @@ helm install --set connect.applicationName=connect connect ./connect
| 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. |
| operator.priorityClassName | string | `""` | priorityClassName to apply to the Operator pods. |
| operator.clusterRole.create | boolean | `{{.Values.operator.create}}` | Denotes whether or not a cluster role will be created for each for the 1Password Operator |
| operator.clusterRole.name | string | `"onepassword-connect-operator"` | The name of the 1Password Operator Cluster Role |
| operator.clusterRoleBinding.create | boolean | `{{.Values.operator.create}}` | Denotes whether or not a Cluster role binding will be created for the 1Password Operator Service Account |
Expand Down
5 changes: 4 additions & 1 deletion charts/connect/templates/connect-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ spec:
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.connect.priorityClassName }}
priorityClassName: {{ .Values.connect.priorityClassName }}
{{- end }}
volumes:
- name: {{ .Values.connect.dataVolume.name }}
{{ .Values.connect.dataVolume.type }}: {{- toYaml .Values.connect.dataVolume.values | nindent 12 }}
Expand Down Expand Up @@ -87,7 +90,7 @@ spec:
{{- range .Values.connect.customEnvVars}}
- name: {{ .name }}
value: {{ .value }}
{{- end }}
{{- end }}
{{- if .Values.connect.probes.readiness }}
readinessProbe:
httpGet:
Expand Down
5 changes: 4 additions & 1 deletion charts/connect/templates/operator-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ spec:
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.operator.priorityClassName }}
priorityClassName: {{ .Values.operator.priorityClassName }}
{{- end }}
tolerations:
{{ toYaml .Values.operator.tolerations | indent 8 }}
serviceAccountName: {{ .Values.operator.serviceAccount.name }}
Expand Down Expand Up @@ -75,7 +78,7 @@ spec:
{{- range .Values.operator.customEnvVars}}
- name: {{ .name }}
value: {{ .value }}
{{- end }}
{{- end }}
resources:
{{- toYaml .Values.operator.resources | nindent 12 }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/connect/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ connect:
# by Kubernetes for liveness and restarted if the pod becomes unresponsive
readiness: true

# priorityClassName to apply to the Connect API deployment resource.
priorityClassName: ''

# Additional annotations to be added to the Connect API deployment resource.
annotations: {}

Expand Down Expand Up @@ -234,6 +237,9 @@ operator:
# Additional labels to be added to the Operator pods.
podLabels: {}

# priorityClassName to apply to the Operator pods.
priorityClassName: ''

# List of tolerations to be added to the Operator pods.
tolerations: []

Expand Down

0 comments on commit 0dd27cc

Please sign in to comment.