Fix notes bug (#178)
This commit is contained in:
@@ -21,6 +21,7 @@ Warning: You're using an unsupported plugin. Functionality of this release and f
|
|||||||
|
|
||||||
Warning: You're using an experimental config. Functionality of this release and future upgrades aren't guaranteed to work smoothly.
|
Warning: You're using an experimental config. Functionality of this release and future upgrades aren't guaranteed to work smoothly.
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if (index .Values "spire-server").enabled }}
|
||||||
{{- $className := include "spire-server.controller-manager-class-name" (dict "Values" (index .Values "spire-server") "Release" .Release) }}
|
{{- $className := include "spire-server.controller-manager-class-name" (dict "Values" (index .Values "spire-server") "Release" .Release) }}
|
||||||
{{- if (index .Values "spire-server").controllerManager.enabled }}
|
{{- if (index .Values "spire-server").controllerManager.enabled }}
|
||||||
{{- if (index .Values "spire-server").controllerManager.watchClassless }}
|
{{- if (index .Values "spire-server").controllerManager.watchClassless }}
|
||||||
@@ -31,3 +32,4 @@ Spire CR's will be handled if no className is specified or if className is set t
|
|||||||
Spire CR's will be handled only if className is set to "{{ $className }}"
|
Spire CR's will be handled only if className is set to "{{ $className }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|||||||
@@ -133,4 +133,15 @@ spire-agent:
|
|||||||
Expect(notes).Should(ContainSubstring("join_token"))
|
Expect(notes).Should(ContainSubstring("join_token"))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Describe("spire-server.disabled", func() {
|
||||||
|
It("spire server off", func() {
|
||||||
|
objs, err := ValueStringRender(chart, `
|
||||||
|
spire-server:
|
||||||
|
enabled: false
|
||||||
|
`)
|
||||||
|
Expect(err).Should(Succeed())
|
||||||
|
notes := objs["spire/templates/NOTES.txt"]
|
||||||
|
Expect(notes).Should(ContainSubstring("Installed"))
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user