-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gangams/add support for extension msi for arc k8s cluster (#495)
* wip * add env var for the arc k8s extension name * chart update * extension msi updates * fix bug * revert chart and image to prod version * minor text changes * image tag to prod * wip * wip * wip * wip * final updates * fix whitespaces * simplify crd yaml
- Loading branch information
Showing
6 changed files
with
44 additions
and
7 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
charts/azuremonitor-containers/templates/omsagent-arc-k8s-crd.yaml
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 |
---|---|---|
@@ -1,9 +1,26 @@ | ||
{{- if or ( contains "microsoft.kubernetes/connectedclusters" (.Values.Azure.Cluster.ResourceId | lower) ) ( contains "microsoft.kubernetes/connectedclusters" (.Values.omsagent.env.clusterId | lower)) }} | ||
#extension model | ||
{{- if not (empty .Values.Azure.Extension.Name) }} | ||
apiVersion: clusterconfig.azure.com/v1beta1 | ||
kind: AzureExtensionIdentity | ||
metadata: | ||
name: {{ .Values.Azure.Extension.Name }} | ||
namespace: azure-arc | ||
spec: | ||
serviceAccounts: | ||
- name: omsagent | ||
namespace: kube-system | ||
tokenNamespace: azure-arc | ||
--- | ||
{{- end }} | ||
apiVersion: clusterconfig.azure.com/v1beta1 | ||
kind: AzureClusterIdentityRequest | ||
metadata: | ||
name: container-insights-clusteridentityrequest | ||
namespace: azure-arc | ||
spec: | ||
audience: https://monitoring.azure.com/ | ||
{{- if not (empty .Values.Azure.Extension.Name) }} | ||
resourceId: {{ .Values.Azure.Extension.Name }} | ||
{{- end }} | ||
{{- 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