-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change proxy and proxy-init templates to use global scope
Some of the nested variables are removed from values.yaml to ensure changes made to root-level variables are propagated directly into the partial templates. The previous approach of using YAML anchors in the values.yaml to share common values can get out-of-sync when values are changed via the Helm's `--set` option. Signed-off-by: Ivan Sim <ivan@buoyant.io>
- Loading branch information
Showing
13 changed files
with
163 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{{- define "linkerd.configs.global" -}} | ||
{ | ||
"autoInjectContext": null, | ||
"clusterDomain": "{{.ClusterDomain}}", | ||
"cniEnabled": {{.CNIEnabled}}, | ||
"identityContext":{ | ||
"clockSkewAllowance": "{{.Identity.Issuer.ClockSkewAllowance}}", | ||
"issuanceLifeTime": "{{.Identity.Issuer.IssuanceLifeTime}}", | ||
"trustAnchorsPem": "{{.Identity.Issuer.CrtPEM}}", | ||
"trustDomain": "{{.TrustDomain}}" | ||
}, | ||
"linkerdNamespace": "{{.Namespace}}", | ||
"omitWebhookSideEffects": {{.OmitWebhookSideEffects}}, | ||
"version": "{{.LinkerdVersion}}" | ||
} | ||
{{- end -}} | ||
|
||
{{- define "linkerd.configs.proxy" -}} | ||
{ | ||
"adminPort":{ | ||
"port": {{.Proxy.Port.Admin}} | ||
}, | ||
"controlPort":{ | ||
"port": {{.Proxy.Port.Control}} | ||
}, | ||
"disableExternalProfiles": {{not .Proxy.EnableExternalProfile}}, | ||
"ignoreInboundPorts": {{splitList "," .ProxyInit.IgnoreInboundPorts}}, | ||
"ignoreOutboundPorts": {{splitList "," .ProxyInit.IgnoreOutboundPorts}}, | ||
"inboundPort":{ | ||
"port": {{.Proxy.Port.Inbound}} | ||
}, | ||
"logLevel":{ | ||
"level": "{{.Proxy.LogLevel}}" | ||
}, | ||
"outboundPort":{ | ||
"port": {{.Proxy.Port.Outbound}} | ||
}, | ||
"proxyImage":{ | ||
"imageName":"{{.Proxy.Image.Name}}", | ||
"pullPolicy":"{{.Proxy.Image.PullPolicy}}" | ||
}, | ||
"proxyInitImage":{ | ||
"imageName":"{{.ProxyInit.Image.Name}}", | ||
"pullPolicy":"{{.ProxyInit.Image.PullPolicy}}" | ||
}, | ||
"proxyInitImageVersion": "{{.ProxyInit.Image.Version}}", | ||
"proxyUid": {{.Proxy.UID}}, | ||
"proxyVersion": "{{.Proxy.Image.Version}}", | ||
"resource":{ | ||
"limitCpu": "{{.Proxy.ResourceRequirements.CPU.Limit}}", | ||
"limitMemory": "{{.Proxy.ResourceRequirements.Memory.Limit}}", | ||
"requestCpu": "{{.Proxy.ResourceRequirements.CPU.Request}}", | ||
"requestMemory": "{{.Proxy.ResourceRequirements.Memory.Request}}" | ||
} | ||
} | ||
{{- end -}} | ||
|
||
{{- define "linkerd.configs.install" -}} | ||
{ | ||
"uuid":"{{ uuidv4 }}", | ||
"cliVersion":"{{ .LinkerdVersion }}", | ||
"flags":[] | ||
} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.