Skip to content

Commit

Permalink
More readme changes and integrated the new feature
Browse files Browse the repository at this point in the history
  • Loading branch information
craigmiller160 committed Jul 17, 2024
1 parent 5dc0306 commit 57c6f4f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/connect/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ helm install --set connect.applicationName=connect connect ./connect
| operator.watchNamespace | list | `[]` | A list of namespaces for the 1Password Operator to watch and manage. Use the empty list to watch all namespaces. |
| operator.resources | object | `{}` | The resources requests/limits for the 1Password Operator pod |
| operator.customEnvVars | array | `[]` | Custom environment variables for the 1Password Operator container that are not specified in this helm chart. |
| operator.trustCa.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. |
| 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. |

#### Custom Environment Variables

Expand Down
17 changes: 16 additions & 1 deletion charts/connect/templates/operator-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ spec:
tolerations:
{{ toYaml .Values.operator.tolerations | indent 8 }}
serviceAccountName: {{ .Values.operator.serviceAccount.name }}
volumes:
{{-if .Values.operator.tls.trust.secret }}
- name: tls-trust
secret:
secretName: {{ .Values.operator.tls.trust.secret }}
{{- end }}
containers:
- name: {{ .Values.connect.applicationName }}
image: {{ .Values.operator.imageRepository }}:{{ .Values.operator.version | default "latest" }}
Expand Down Expand Up @@ -75,7 +81,16 @@ spec:
{{- range .Values.operator.customEnvVars}}
- name: {{ .name }}
value: {{ .value }}
{{- end }}
{{- end }}
{{-if .Values.operator.tls.trust.secret }}
- name: SSL_CERT_FILE
value: /tls/trust/tls.crt
{{- end }}
resources:
{{- toYaml .Values.operator.resources | nindent 12 }}
volumeMounts:
{{-if .Values.operator.tls.trust.secret }}
- mountPath: /tls/trust
name: tls-trust
{{- end}}
{{- end }}

0 comments on commit 57c6f4f

Please sign in to comment.