File tree Expand file tree Collapse file tree 6 files changed +43
-45
lines changed
deploy/kubernetes/charts/consul-release-controller
example/kubernetes/canary Expand file tree Collapse file tree 6 files changed +43
-45
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ metadata:
77spec :
88 secretName : consul-release-controller-certificate
99 dnsNames :
10- - {{ printf "%s.%s.svc" (default (include "consul-release-controller.fullname" .) .Values.webhook.service) .Release.Namespace | quote }}
10+ - {{ printf "%s.%s.svc" (default (include "consul-release-controller.fullname" .) .Values.webhook.service) (default .Release.Namespace .Values.webhook.namespace) | quote }}
1111 {{- range $dnsName := .Values.webhook.additionalDNSNames }}
1212 - {{ $dnsName | quote }}
1313 {{- end }}
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ webhooks:
1515 sideEffects : None
1616 clientConfig :
1717 service :
18- name : {{ default (include "consul-release-controller.fullname" .) .Values.webhook.serviceOverride }}
19- namespace : {{ default .Release.Namespace .Values.webhook.namespaceOverride | quote }}
18+ name : {{ default (include "consul-release-controller.fullname" .) .Values.webhook.service }}
19+ namespace : {{ default .Release.Namespace .Values.webhook.namespace | quote }}
2020 path : /validate-v1-deployment
2121 port : 19443
2222 rules :
Original file line number Diff line number Diff line change @@ -143,8 +143,12 @@ webhook:
143143 enabled: "true"
144144 type: ClusterIP
145145 port: 443
146- service: consul-release-controller-webhook
147- namespaceOverride: ""
146+
147+ # Override the default webhook service name and namespace
148+ # This can be used when running the controller locally
149+ service: ""
150+ namespace: ""
151+
148152
149153 # Allows adding additional DNS Names to the cert generated
150154 # for the webhook
Original file line number Diff line number Diff line change @@ -143,8 +143,11 @@ webhook:
143143 enabled : " true"
144144 type : ClusterIP
145145 port : 443
146- service : consul-release-controller-webhook
147- namespaceOverride : " "
146+
147+ # Override the default webhook service name and namespace
148+ # This can be used when running the controller locally
149+ service : " "
150+ namespace : " "
148151
149152 # Allows adding additional DNS Names to the cert generated
150153 # for the webhook
Original file line number Diff line number Diff line change 2424 trafficStep : 20
2525 maxTraffic : 100
2626 errorThreshold : 5
27+
28+ # Post Deployment Test executes after a deployment has been marked healthy
29+ # and before the initial traffic is sent to the deployment and monitoring started.
30+ # It is a way of actively health checking the deployment before exposing it to production
31+ # traffic.
32+ #
33+ # Once a deployment has been marked healthy, Consul Release Controller will
34+ # execute requests against the candidate deployment and monitor the results
35+ # using the defined monitoring queries.
36+ #
37+ # If the deployment fails to pass the monitoring queries, the deployment will
38+ # be rolled back and the release will be marked as failed.
39+ # postDeploymentTest:
40+ # # The path of the API
41+ # url: /myapi
42+ # # The HTTP method of the request
43+ # method: POST
44+ # # The payload to send with the request
45+ # payload: |
46+ # {
47+ # "something": "something"
48+ # }
49+ # # The number of itterations to run the test
50+ # itterations: 3
51+ # # The number of seconds to wait between itterations
52+ # delay: "1s"
53+
2754 monitor :
2855 pluginName : " prometheus"
2956 config :
Original file line number Diff line number Diff line change 1414 enabled: #{{ .Vars.acls_enabled }}
1515#{{- if eq .Vars.controller_enabled false }}
1616webhook:
17- additionalDNSNames:
18- - controller-webhook.shipyard.svc
19- serviceOverride: controller-webhook
20- namespaceOverride: shipyard
17+ service: controller-webhook
18+ namespace: shipyard
2119#{{ end }}
2220EOF
2321
3230 }
3331}
3432
35- // template "controller_service" {
36- // disabled = !var.helm_chart_install
37- //
38- // source = <<EOF
39- // ---
40- // apiVersion: v1
41- // kind: Service
42- // metadata:
43- // name: external-webhook
44- // namespace: consul
45- // spec:
46- // type: ExternalName
47- // externalName: controller-webhook.shipyard.svc
48- // EOF
49- //
50- // destination = "${data("kube_setup")}/service.yaml"
51- // }
52- //
53- // k8s_config "controller_service" {
54- // disabled = !var.helm_chart_install
55- //
56- // depends_on = [
57- // "module.consul",
58- // ]
59- //
60- // cluster = "k8s_cluster.dc1"
61- //
62- // paths = [
63- // "${data("kube_setup")}/service.yaml"
64- // ]
65- //
66- // wait_until_ready = true
67- // }
68-
6933helm "consul-release-controller" {
7034 disabled = ! var. helm_chart_install
7135
You can’t perform that action at this time.
0 commit comments