Skip to content

Commit

Permalink
Add Azure MSI Env Var for ARO HCP
Browse files Browse the repository at this point in the history
For ARO HCP, we need to be able to override the authentication type to be MSI. For more information please see openshift/enhancements#1659.
  • Loading branch information
bryan-cox committed Aug 7, 2024
1 parent d98d330 commit fd67779
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ spec:
value: "{{.KubernetesServicePort}}"
- name: KUBERNETES_SERVICE_HOST
value: "{{.KubernetesServiceHost}}"
- name: AZURE_MSI_AUTHENTICATION
value: "{{.AzureMSIAuthentication}}"
containers:
# hosted-cluster-token creates a token with a custom path(/var/run/secrets/hosted_cluster/token)
# The token path is included in the kubeconfig used by cncc containers to talk to the hosted clusters API server
Expand Down
1 change: 1 addition & 0 deletions pkg/network/cloud_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ func renderCloudNetworkConfigController(conf *operv1.NetworkSpec, bootstrapResul
data.Data["HTTP_PROXY"] = os.Getenv("MGMT_HTTP_PROXY")
data.Data["HTTPS_PROXY"] = os.Getenv("MGMT_HTTPS_PROXY")
data.Data["NO_PROXY"] = os.Getenv("MGMT_NO_PROXY")
data.Data["AzureMSIAuthentication"] = os.Getenv("AZURE_MSI_AUTHENTICATION")
caOverride.ObjectMeta = metav1.ObjectMeta{
Namespace: hcpCfg.Namespace,
Name: "cloud-network-config-controller-kube-cloud-config",
Expand Down

0 comments on commit fd67779

Please sign in to comment.