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

Commit

Permalink
add kms api model in test/e2e/test_cluster_configs
Browse files Browse the repository at this point in the history
  • Loading branch information
aramase committed Jan 19, 2021
1 parent 10c53a6 commit 3972994
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 6 deletions.
6 changes: 3 additions & 3 deletions parts/k8s/cloud-init/artifacts/cse_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,12 @@ time_metric "EnsureContainerd" ensureContainerd
time_metric "EnsureDHCPv6" ensureDHCPv6
{{end}}

{{/* configure and enable kms plugin */}}
{{- if EnableEncryptionWithExternalKms}}
if [[ -n ${MASTER_NODE} ]]; then
{{/* configure and enable kms plugin */}}
{{- if EnableEncryptionWithExternalKms}}
time_metric "EnsureKMSKeyvaultKey" ensureKMSKeyvaultKey
{{end}}
fi
{{end}}

time_metric "EnsureKubelet" ensureKubelet
{{if IsAzurePolicyAddonEnabled}}
Expand Down
6 changes: 3 additions & 3 deletions pkg/engine/templates_generated.go

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

36 changes: 36 additions & 0 deletions test/e2e/test_cluster_configs/kms.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"env": {},
"apiModel": {
"apiVersion": "vlabs",
"properties": {
"orchestratorProfile": {
"kubernetesConfig": {
"enableEncryptionWithExternalKms": true,
"keyVaultSku": "Premium"
}
},
"masterProfile": {
"count": 1,
"dnsPrefix": "",
"vmSize": "Standard_D2_v3"
},
"agentPoolProfiles": [
{
"name": "agentpool1",
"count": 2,
"vmSize": "Standard_D2_v3"
}
],
"linuxProfile": {
"adminUsername": "azureuser",
"ssh": {
"publicKeys": [
{
"keyData": ""
}
]
}
}
}
}
}

0 comments on commit 3972994

Please sign in to comment.