Skip to content

Commit 356635d

Browse files
authored
Merge branch 'main' into dependabot/github_actions/dot-github/workflows/actions/download-artifact-5.0.0
2 parents 73a9eff + 84c0329 commit 356635d

12 files changed

Lines changed: 36 additions & 5 deletions

File tree

‎go.mod‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ require (
2828
github.com/stretchr/testify v1.10.0
2929
github.com/yannh/kubeconform v0.6.7
3030
go.uber.org/mock v0.5.0
31-
golang.org/x/mod v0.20.0
31+
golang.org/x/mod v0.26.0
3232
gopkg.in/yaml.v2 v2.4.0
3333
gopkg.in/yaml.v3 v3.0.1
3434
helm.sh/helm/v3 v3.14.4

‎go.sum‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,8 @@ golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHl
502502
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
503503
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
504504
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
505-
golang.org/x/mod v0.20.0 h1:utOm6MM3R3dnawAiJgn0y+xvuYRsm1RKM/4giyfDgV0=
506-
golang.org/x/mod v0.20.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
505+
golang.org/x/mod v0.26.0 h1:EGMPT//Ezu+ylkCijjPc+f4Aih7sZvaAr+O3EHBxvZg=
506+
golang.org/x/mod v0.26.0/go.mod h1:/j6NAhSk8iQ723BGAUyoAcn7SlD7s15Dp9Nd/SfeaFQ=
507507
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
508508
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
509509
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -577,8 +577,8 @@ golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtn
577577
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
578578
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
579579
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
580-
golang.org/x/tools v0.22.0 h1:gqSGLZqv+AI9lIQzniJ0nZDRG5GBPsSi+DRNHWNz6yA=
581-
golang.org/x/tools v0.22.0/go.mod h1:aCwcsjqvq7Yqt6TNyX7QMU2enbQ/Gt0bo6krSeEri+c=
580+
golang.org/x/tools v0.34.0 h1:qIpSLOxeCYGg9TrcJokLBG4KFA6d795g0xkBkiESGlo=
581+
golang.org/x/tools v0.34.0/go.mod h1:pAP9OwEaY1CAW3HOmg3hLZC5Z0CCmzjAF2UQMSqNARg=
582582
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
583583
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
584584
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

‎pkg/fixtures/pipelines/kustomize.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ variables:
1212
namespace: testNamespace
1313
tag: "$(Build.BuildId)"
1414
vmImageName: "ubuntu-latest"
15+
resourceType: Microsoft.ContainerService/managedClusters
1516

1617
trigger:
1718
- main
@@ -64,5 +65,6 @@ stages:
6465
kubernetesCluster: $(clusterName)
6566
namespace: $(namespace)
6667
manifests: $(bake.manifestsBundle)
68+
resourceType: $(resourceType)
6769
containers: |
6870
$(azureContainerRegistry).azurecr.io/$(containerName):$(tag)

‎pkg/fixtures/pipelines/manifests.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ variables:
1212
namespace: testNamespace
1313
tag: "$(Build.BuildId)"
1414
vmImageName: "ubuntu-latest"
15+
resourceType: Microsoft.ContainerService/managedClusters
1516

1617
name: testPipeline
1718

@@ -46,6 +47,7 @@ stages:
4647
pool:
4748
vmImage: $(vmImageName)
4849
steps:
50+
- task: KubeloginInstaller@0
4951
- task: KubernetesManifest@1
5052
displayName: Deploy to Kubernetes cluster
5153
inputs:
@@ -56,5 +58,6 @@ stages:
5658
kubernetesCluster: $(clusterName)
5759
manifests: $(manifestPath)
5860
namespace: $(namespace)
61+
resourceType: $(resourceType)
5962
containers: |
6063
$(azureContainerRegistry).azurecr.io/$(containerName):$(tag)

‎pkg/fixtures/workflows/azurepipelines/kustomize/.pipelines/azure-kubernetes-service.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ variables:
1414
dockerfile: ./Dockerfile
1515
tag: "$(Build.BuildId)"
1616
vmImageName: "ubuntu-latest"
17+
resourceType: Microsoft.ContainerService/managedClusters
1718

1819
trigger:
1920
- main
@@ -66,5 +67,6 @@ stages:
6667
kubernetesCluster: $(clusterName)
6768
namespace: $(namespace)
6869
manifests: $(bake.manifestsBundle)
70+
resourceType: $(resourceType)
6971
containers: |
7072
$(azureContainerRegistry).azurecr.io/$(containerName):$(tag)

‎pkg/fixtures/workflows/azurepipelines/manifests/.pipelines/azure-kubernetes-service.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ variables:
1414
dockerfile: ./Dockerfile
1515
tag: "$(Build.BuildId)"
1616
vmImageName: "ubuntu-latest"
17+
resourceType: Microsoft.ContainerService/managedClusters
1718

1819
name: Build and deploy an app to AKS
1920

@@ -48,6 +49,7 @@ stages:
4849
pool:
4950
vmImage: $(vmImageName)
5051
steps:
52+
- task: KubeloginInstaller@0
5153
- task: KubernetesManifest@1
5254
displayName: Deploy to Kubernetes cluster
5355
inputs:
@@ -58,5 +60,6 @@ stages:
5860
kubernetesCluster: $(clusterName)
5961
manifests: $(manifestPath)
6062
namespace: $(namespace)
63+
resourceType: $(resourceType)
6164
containers: |
6265
$(azureContainerRegistry).azurecr.io/$(containerName):$(tag)

‎pkg/handlers/templatetests/workflows_azure_kustomize_test.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ func TestAzureWorkflowKustomizeTemplates(t *testing.T) {
2222
"CLUSTERRESOURCEGROUP": "myrg",
2323
"ACRRESOURCEGROUP": "myrg",
2424
"CLUSTERNAME": "testcluster",
25+
"CLUSTERRESOURCETYPE": "Microsoft.ContainerService/managedClusters",
2526
},
2627
},
2728
}

‎pkg/handlers/templatetests/workflows_azure_manifest_test.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ func TestAzureWorkflowManifestTemplates(t *testing.T) {
2222
"CLUSTERRESOURCEGROUP": "myrg",
2323
"ACRRESOURCEGROUP": "myrg",
2424
"CLUSTERNAME": "testcluster",
25+
"CLUSTERRESOURCETYPE": "Microsoft.ContainerService/managedClusters",
2526
},
2627
},
2728
}

‎template/azurePipelines/kustomize/.pipelines/azure-kubernetes-service.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ variables:
1414
dockerfile: {{ .Config.GetVariableValue "DOCKERFILE" }}
1515
tag: "$(Build.BuildId)"
1616
vmImageName: "ubuntu-latest"
17+
resourceType: {{ .Config.GetVariableValue "CLUSTERRESOURCETYPE" }}
1718

1819
trigger:
1920
- {{ .Config.GetVariableValue "BRANCHNAME" }}
@@ -66,6 +67,7 @@ stages:
6667
kubernetesCluster: $(clusterName)
6768
namespace: $(namespace)
6869
manifests: $(bake.manifestsBundle)
70+
resourceType: $(resourceType)
6971
containers: |
7072
$(azureContainerRegistry).azurecr.io/$(containerName):$(tag)
7173
`}}

‎template/azurePipelines/kustomize/draft.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,10 @@ variables:
7777
value: "./Dockerfile"
7878
description: "the path to the Dockerfile"
7979
versions: ">=0.0.1"
80+
- name: "CLUSTERRESOURCETYPE"
81+
type: "string"
82+
kind: "clusterResourceType"
83+
default:
84+
value: "Microsoft.ContainerService/managedClusters"
85+
description: "the Azure resource type for the AKS cluster"
86+
versions: ">=0.0.1"

0 commit comments

Comments
 (0)