Skip to content

Commit cfeb2c4

Browse files
authored
Fixup Azure-*-aks examples to exclude Addons as that's deprecated (pulumi#984)
Fixes: pulumi#960
1 parent 28b559d commit cfeb2c4

File tree

4 files changed

+2
-14
lines changed

4 files changed

+2
-14
lines changed

azure-cs-aks/MyStack.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ public MyStack()
5353
var cluster = new ManagedCluster("my-aks", new ManagedClusterArgs
5454
{
5555
ResourceGroupName = resourceGroup.Name,
56-
AddonProfiles =
57-
{
58-
{ "KubeDashboard", new ManagedClusterAddonProfileArgs { Enabled = true } }
59-
},
6056
AgentPoolProfiles =
6157
{
6258
new ManagedClusterAgentPoolProfileArgs

azure-go-aks/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ func main() {
8888
},
8989
},
9090
},
91+
DnsPrefix: resourceGroup.Name,
9192
ServicePrincipalProfile: &containerservice.ManagedClusterServicePrincipalProfileArgs{
9293
ClientId: adApp.ApplicationId,
9394
Secret: adSpPassword.Value,

azure-py-aks/__main__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@
3737
managed_cluster = containerservice.ManagedCluster(
3838
managed_cluster_name,
3939
resource_group_name=resource_group.name,
40-
addon_profiles={
41-
"KubeDashboard": {
42-
"enabled": True,
43-
},
44-
},
4540
agent_pool_profiles=[{
4641
"count": 3,
4742
"max_pods": 110,
@@ -63,6 +58,7 @@
6358
}],
6459
},
6560
},
61+
dns_prefix=resource_group.name,
6662
node_resource_group=f"MC_azure-native-go_{managed_cluster_name}_westus",
6763
service_principal_profile={
6864
"client_id": ad_app.application_id,

azure-ts-aks/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ const config = new pulumi.Config();
4242
const managedClusterName = config.get("managedClusterName") || "azure-aks";
4343
const cluster = new containerservice.ManagedCluster(managedClusterName, {
4444
resourceGroupName: resourceGroup.name,
45-
addonProfiles: {
46-
KubeDashboard: {
47-
enabled: true,
48-
},
49-
},
5045
agentPoolProfiles: [{
5146
count: 3,
5247
maxPods: 110,

0 commit comments

Comments
 (0)