Skip to content

Commit cf43a47

Browse files
Adding trust cert feature to operator
1 parent 282df93 commit cf43a47

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

charts/connect/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ helm install --set connect.applicationName=connect connect ./connect
128128
| operator.watchNamespace | list | `[]` | A list of namespaces for the 1Password Operator to watch and manage. Use the empty list to watch all namespaces. |
129129
| operator.resources | object | `{}` | The resources requests/limits for the 1Password Operator pod |
130130
| operator.customEnvVars | array | `[]` | Custom environment variables for the 1Password Operator container that are not specified in this helm chart. |
131+
| operator.tls.trust.secret | string | `op-connect-tls` | The name of the secret containing the TLS certificate (tls.crt) used by the 1Password Connect API. This is used if that cert is a self-signed cert that needs to be trusted by the Operator. |
131132

132133
#### Custom Environment Variables
133134

charts/connect/templates/operator-deployment.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ spec:
3939
tolerations:
4040
{{ toYaml .Values.operator.tolerations | indent 8 }}
4141
serviceAccountName: {{ .Values.operator.serviceAccount.name }}
42+
volumes:
43+
{{- if .Values.operator.tls.trust.secret }}
44+
- name: tls-trust
45+
secret:
46+
secretName: {{ .Values.operator.tls.trust.secret }}
47+
{{- end }}
4248
containers:
4349
- name: {{ .Values.connect.applicationName }}
4450
image: {{ .Values.operator.imageRepository }}:{{ .Values.operator.version | default "latest" }}
@@ -75,7 +81,16 @@ spec:
7581
{{- range .Values.operator.customEnvVars}}
7682
- name: {{ .name }}
7783
value: {{ .value }}
78-
{{- end }}
84+
{{- end }}
85+
{{- if .Values.operator.tls.trust.secret }}
86+
- name: SSL_CERT_FILE
87+
value: /tls/trust/tls.crt
88+
{{- end }}
7989
resources:
8090
{{- toYaml .Values.operator.resources | nindent 12 }}
91+
volumeMounts:
92+
{{- if .Values.operator.tls.trust.secret }}
93+
- mountPath: /tls/trust
94+
name: tls-trust
95+
{{- end}}
8196
{{- end }}

0 commit comments

Comments
 (0)