Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
Remove use of -init-type=sync as it has no effect
Browse files Browse the repository at this point in the history
As part of hashicorp/consul-k8s#232 we removed
the docs about -init-type=sync. If -init-type was set to sync it
actually had no effect. Only -init-type=client had effect so this change
stops setting that flag in the case of sync.
  • Loading branch information
lkysow committed Mar 23, 2020
1 parent 1790a25 commit fda58cb
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 10 deletions.
3 changes: 1 addition & 2 deletions templates/client-snapshot-agent-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ spec:
- |
consul-k8s acl-init \
-secret-name="{{ template "consul.fullname" . }}-client-snapshot-agent-acl-token" \
-k8s-namespace={{ .Release.Namespace }} \
-init-type="sync"
-k8s-namespace={{ .Release.Namespace }}
volumeMounts:
- name: aclconfig
mountPath: /consul/aclconfig
Expand Down
3 changes: 1 addition & 2 deletions templates/connect-inject-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ spec:
- |
consul-k8s acl-init \
-secret-name="{{ template "consul.fullname" . }}-connect-inject-acl-token" \
-k8s-namespace={{ .Release.Namespace }} \
-init-type="sync"
-k8s-namespace={{ .Release.Namespace }}
{{- end }}
{{- if .Values.connectInject.nodeSelector }}
nodeSelector:
Expand Down
3 changes: 1 addition & 2 deletions templates/enterprise-license-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ spec:
- |
consul-k8s acl-init \
-secret-name="{{ template "consul.fullname" . }}-enterprise-license-acl-token" \
-k8s-namespace={{ .Release.Namespace }} \
-init-type="sync"
-k8s-namespace={{ .Release.Namespace }}
{{- end }}
{{- end }}
{{- end }}
1 change: 0 additions & 1 deletion templates/mesh-gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ spec:
consul-k8s acl-init \
-secret-name="{{ template "consul.fullname" . }}-mesh-gateway-acl-token" \
-k8s-namespace={{ .Release.Namespace }} \
-init-type="sync" \
-token-sink-file=/consul/service/acl-token
{{ end }}
Expand Down
3 changes: 1 addition & 2 deletions templates/sync-catalog-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@ spec:
- |
consul-k8s acl-init \
-secret-name="{{ template "consul.fullname" . }}-catalog-sync-acl-token" \
-k8s-namespace={{ .Release.Namespace }} \
-init-type="sync"
-k8s-namespace={{ .Release.Namespace }}
{{- end }}
{{- if .Values.syncCatalog.nodeSelector }}
nodeSelector:
Expand Down
1 change: 0 additions & 1 deletion test/unit/mesh-gateway-deployment.bats
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,6 @@ consul services register \
exp='consul-k8s acl-init \
-secret-name="release-name-consul-mesh-gateway-acl-token" \
-k8s-namespace=default \
-init-type="sync" \
-token-sink-file=/consul/service/acl-token
consul-k8s service-address \
Expand Down

0 comments on commit fda58cb

Please sign in to comment.