Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@
{{- $addonTokenAdapterWindowsDefaultImageTag := dict "component" "addon-token-adapter-windows" "version" .Values.global.commonGlobals.Versions.Kubernetes | include "get.imagetag"}}
{{- $amalogsRSVPAImageTag := dict "component" "addon-resizer" "version" .Values.global.commonGlobals.Versions.Kubernetes | include "get.addonImageTag" -}}
{{- $WinImageTag := default $amalogsWindowsDefaultImageTag .Values.OmsAgent.imageTagWindows -}}
{{/* Determine isusingaadauth value from OmsAgent.isUsingAADAuth */}}
{{/* Determine isusingaadauth value from OmsAgent.isUsingAADAuth.
Compare as a lowercased string because Helm --set and quoted YAML
both deliver this value as a string, and any non-empty string is
truthy in Go templates (so "false" would otherwise evaluate to true). */}}
{{- $isusingaadauth := false -}}
{{- if hasKey .Values.OmsAgent "isUsingAADAuth" -}}
{{- $isusingaadauth = .Values.OmsAgent.isUsingAADAuth -}}
{{- if eq (lower (toString .Values.OmsAgent.isUsingAADAuth)) "true" -}}
{{- $isusingaadauth = true -}}
{{- end -}}
{{- end -}}
{{/* TODO This needs to be fixed post Canary validation */}}
{{/* Extract cluster information from aksresourceid */}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
{{- $arcSettings := include "arc-extension-settings" . | fromYaml }}
{{- $isArcExtension := $arcSettings.isArcExtension }}
{{- $amalogsWindowsDefaultImageTag := dict "component" "ama-logs-win" "version" .Values.global.commonGlobals.Versions.Kubernetes | include "get.addonImageTag" }}
{{/* Determine isusingaadauth value */}}
{{/* Determine isusingaadauth value.
Compare as a lowercased string because Helm --set and quoted YAML
both deliver this value as a string, and any non-empty string is
truthy in Go templates (so "false" would otherwise evaluate to true). */}}
{{- $isusingaadauth := false -}}
{{- if not $isArcExtension -}}
{{- if hasKey .Values.OmsAgent "isUsingAADAuth" -}}
{{- $isusingaadauth = .Values.OmsAgent.isUsingAADAuth -}}
{{- if eq (lower (toString .Values.OmsAgent.isUsingAADAuth)) "true" -}}
{{- $isusingaadauth = true -}}
{{- end -}}
{{- end -}}
{{- else -}}
{{- if and .Values.amalogs (hasKey .Values.amalogs "useAADAuth") -}}
{{- $isusingaadauth = .Values.amalogs.useAADAuth -}}
{{- if eq (lower (toString .Values.amalogs.useAADAuth)) "true" -}}
{{- $isusingaadauth = true -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- $cloudEnv := lower .Values.global.commonGlobals.CloudEnvironment }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
{{- $arcSettings := include "arc-extension-settings" . | fromYaml }}
{{- $isArcExtension := $arcSettings.isArcExtension }}
{{- $amalogsLinuxDefaultImageTag := dict "component" "ama-logs-linux" "version" .Values.global.commonGlobals.Versions.Kubernetes | include "get.addonImageTag" }}
{{/* Determine isusingaadauth value */}}
{{/* Determine isusingaadauth value.
Compare as a lowercased string because Helm --set and quoted YAML
both deliver this value as a string, and any non-empty string is
truthy in Go templates (so "false" would otherwise evaluate to true). */}}
{{- $isusingaadauth := false -}}
{{- if not $isArcExtension -}}
{{- if hasKey .Values.OmsAgent "isUsingAADAuth" -}}
{{- $isusingaadauth = .Values.OmsAgent.isUsingAADAuth -}}
{{- if eq (lower (toString .Values.OmsAgent.isUsingAADAuth)) "true" -}}
{{- $isusingaadauth = true -}}
{{- end -}}
{{- end -}}
{{- else -}}
{{- if and .Values.amalogs (hasKey .Values.amalogs "useAADAuth") -}}
{{- $isusingaadauth = .Values.amalogs.useAADAuth -}}
{{- if eq (lower (toString .Values.amalogs.useAADAuth)) "true" -}}
{{- $isusingaadauth = true -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/* Outer condition: AKS always renders, Arc renders with valid credentials */}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@
{{/* AKS-only resource */}}
{{- if not $isArcExtension }}
{{- $amalogsLinuxDefaultImageTag := dict "component" "ama-logs-linux" "version" .Values.global.commonGlobals.Versions.Kubernetes | include "get.addonImageTag" }}
{{/* Determine isusingaadauth value */}}
{{/* Determine isusingaadauth value.
Compare as a lowercased string because Helm --set and quoted YAML
both deliver this value as a string, and any non-empty string is
truthy in Go templates (so "false" would otherwise evaluate to true). */}}
{{- $isusingaadauth := false -}}
{{- if hasKey .Values.OmsAgent "isUsingAADAuth" -}}
{{- $isusingaadauth = .Values.OmsAgent.isUsingAADAuth -}}
{{- if eq (lower (toString .Values.OmsAgent.isUsingAADAuth)) "true" -}}
{{- $isusingaadauth = true -}}
{{- end -}}
{{- end -}}
{{- $cloudEnv := lower .Values.global.commonGlobals.CloudEnvironment }}
{{- if and $isusingaadauth .Values.OmsAgent.isMultitenancyLogsEnabled }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@
{{- $isArcExtension := $arcSettings.isArcExtension }}
{{- $amalogsLinuxDefaultImageTag := dict "component" "ama-logs-linux" "version" .Values.global.commonGlobals.Versions.Kubernetes | include "get.addonImageTag" }}
{{- $amalogsRSVPAImageTag := dict "component" "addon-resizer" "version" .Values.global.commonGlobals.Versions.Kubernetes | include "get.addonImageTag" -}}
{{/* Determine isusingaadauth value */}}
{{/* Determine isusingaadauth value.
Compare as a lowercased string because Helm --set and quoted YAML
both deliver this value as a string, and any non-empty string is
truthy in Go templates (so "false" would otherwise evaluate to true). */}}
{{- $isusingaadauth := false -}}
{{- if not $isArcExtension -}}
{{- if hasKey .Values.OmsAgent "isUsingAADAuth" -}}
{{- $isusingaadauth = .Values.OmsAgent.isUsingAADAuth -}}
{{- if eq (lower (toString .Values.OmsAgent.isUsingAADAuth)) "true" -}}
{{- $isusingaadauth = true -}}
{{- end -}}
{{- end -}}
{{- else -}}
{{- if and .Values.amalogs (hasKey .Values.amalogs "useAADAuth") -}}
{{- $isusingaadauth = .Values.amalogs.useAADAuth -}}
{{- if eq (lower (toString .Values.amalogs.useAADAuth)) "true" -}}
{{- $isusingaadauth = true -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{- $cloudEnv := lower .Values.global.commonGlobals.CloudEnvironment }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
{{- $isArcExtension := $arcSettings.isArcExtension }}
{{/* AKS-only resource */}}
{{- if not $isArcExtension }}
{{/* Determine isusingaadauth value */}}
{{/* Determine isusingaadauth value.
Compare as a lowercased string because Helm --set and quoted YAML
both deliver this value as a string, and any non-empty string is
truthy in Go templates (so "false" would otherwise evaluate to true). */}}
{{- $isusingaadauth := false -}}
{{- if hasKey .Values.OmsAgent "isUsingAADAuth" -}}
{{- $isusingaadauth = .Values.OmsAgent.isUsingAADAuth -}}
{{- if eq (lower (toString .Values.OmsAgent.isUsingAADAuth)) "true" -}}
{{- $isusingaadauth = true -}}
{{- end -}}
{{- end -}}
{{- if and $isusingaadauth .Values.OmsAgent.isMultitenancyLogsEnabled }}
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
{{- $arcSettings := include "arc-extension-settings" . | fromYaml }}
{{- $isArcExtension := $arcSettings.isArcExtension }}
{{/* Determine isusingaadauth value */}}
{{/* Determine isusingaadauth value.
Compare as a lowercased string because Helm --set and quoted YAML
both deliver this value as a string, and any non-empty string is
truthy in Go templates (so "false" would otherwise evaluate to true). */}}
{{- $isusingaadauth := false -}}
{{- if not $isArcExtension -}}
{{- if hasKey .Values.OmsAgent "isUsingAADAuth" -}}
{{- $isusingaadauth = .Values.OmsAgent.isUsingAADAuth -}}
{{- if eq (lower (toString .Values.OmsAgent.isUsingAADAuth)) "true" -}}
{{- $isusingaadauth = true -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{/* Arc has rbac condition, AKS always renders */}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
{{- $isArcExtension := $arcSettings.isArcExtension }}
{{/* AKS-only resource */}}
{{- if not $isArcExtension }}
{{/* Determine isusingaadauth value */}}
{{/* Determine isusingaadauth value.
Compare as a lowercased string because Helm --set and quoted YAML
both deliver this value as a string, and any non-empty string is
truthy in Go templates (so "false" would otherwise evaluate to true). */}}
{{- $isusingaadauth := false -}}
{{- if hasKey .Values.OmsAgent "isUsingAADAuth" -}}
{{- $isusingaadauth = .Values.OmsAgent.isUsingAADAuth -}}
{{- if eq (lower (toString .Values.OmsAgent.isUsingAADAuth)) "true" -}}
{{- $isusingaadauth = true -}}
{{- end -}}
{{- end -}}
{{- if and $isusingaadauth .Values.OmsAgent.isMultitenancyLogsEnabled }}
---
Expand Down
Loading