Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion weaviate/templates/weaviateSecretClusterAPI.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{{- if .Values.cluster_api.secret.create }}
apiVersion: v1
kind: Secret
metadata:
name: weaviate-cluster-api-basic-auth
name: {{ .Values.cluster_api.secret.name }}
type: kubernetes.io/basic-auth
data:
{{- ( include "cluster_api.secret" . ) | indent 2 -}}
{{- end }}
4 changes: 2 additions & 2 deletions weaviate/templates/weaviateStatefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ spec:
- name: CLUSTER_BASIC_AUTH_USERNAME
valueFrom:
secretKeyRef:
name: weaviate-cluster-api-basic-auth

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you set create: false then CLUSTER_BASIC_AUTH_USERNAME and CLUSTER_BASIC_AUTH_PASSWORD are still being added to statefulset and they then point to non-existing secret which may cause errors

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this check:

.Values.cluster_api.secret.create

needs also to be applied here

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @antas-marcin,
I also want this feature to be merged. I think with the default value of .Values.cluster_api.secret.create is true, it will not cause any issue. If user want to disable the creation of this secret, they must provide an existing secret. This is an expected behavior I think.

name: {{ .Values.cluster_api.secret.name }}
key: username
- name: CLUSTER_BASIC_AUTH_PASSWORD
valueFrom:
secretKeyRef:
name: weaviate-cluster-api-basic-auth
name: {{ .Values.cluster_api.secret.name }}
key: password
- name: STANDALONE_MODE
value: 'true'
Expand Down
4 changes: 4 additions & 0 deletions weaviate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1564,3 +1564,7 @@ affinity:
##
priorityClassName: ""
globalPriorityClassName: ""
cluster_api:
secret:
create: true
name: "weaviate-cluster-api-basic-auth"