Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
chore: Set go sdk log level for Azure Stack clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusAlvarezTorres committed Oct 30, 2020
1 parent 8b9fea9 commit fdbc836
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions parts/k8s/cloud-init/artifacts/cse_customcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ ensureCustomCloudRootCertificates() {
sed -i "/<volumeMountssl>/d" $KUBE_CONTROLLER_MANAGER_FILE
fi
fi

# remove the placeholder go sdk log level as it should be set for azure stack cloud only.
sed -i "/<gosdkloglevel>/d" $KUBE_CONTROLLER_MANAGER_FILE
}

ensureCustomCloudSourcesList() {
Expand Down Expand Up @@ -125,6 +128,9 @@ ensureAzureStackCertificates() {
fi
fi

# set the go sdk log level
sed -i "s|<gosdkloglevel>|- name: AZURE_GO_SDK_LOG_LEVEL\n value: INFO|g" $KUBE_CONTROLLER_MANAGER_FILE

# ensureAzureStackCertificates will be retried if the exit code is not 0
curl $AZURESTACK_RESOURCE_METADATA_ENDPOINT
exit $?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ spec:
env:
- name: AZURE_ENVIRONMENT_FILEPATH
value: "/etc/kubernetes/azurestackcloud.json"
<gosdkloglevel>
{{end}}
volumeMounts:
- name: etc-kubernetes
Expand Down
7 changes: 7 additions & 0 deletions pkg/engine/templates_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fdbc836

Please sign in to comment.