Skip to content

Commit 216d9d3

Browse files
committed
Skip Linux profile
1 parent 9f211f0 commit 216d9d3

File tree

3 files changed

+6
-20
lines changed

3 files changed

+6
-20
lines changed

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,13 @@ else
137137
endif
138138

139139
# Define Docker related variables. Releases should modify and double check these vars.
140-
REGISTRY ?= gcr.io/$(shell gcloud config get-value project)
141-
STAGING_REGISTRY := gcr.io/k8s-staging-cluster-api-azure
142-
PROD_REGISTRY := registry.k8s.io/cluster-api-azure
140+
PROJECT ?= pluralsh
141+
REGISTRY ?= ghcr.io/$(PROJECT)
142+
STAGING_REGISTRY := $(REGISTRY)
143+
PROD_REGISTRY := $(REGISTRY)
143144
IMAGE_NAME ?= cluster-api-azure-controller
144145
CONTROLLER_IMG ?= $(REGISTRY)/$(IMAGE_NAME)
145-
TAG ?= dev
146+
TAG ?= v1.9.10
146147
ARCH ?= $(GOARCH)
147148
ALL_ARCH = amd64 arm arm64 ppc64le s390x
148149

azure/services/managedclusters/spec.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package managedclusters
1818

1919
import (
2020
"context"
21-
"encoding/base64"
2221
"fmt"
2322
"net"
2423
"time"
@@ -270,10 +269,6 @@ func (s *ManagedClusterSpec) Parameters(ctx context.Context, existing interface{
270269
ctx, log, done := tele.StartSpanWithLogger(ctx, "managedclusters.Service.Parameters")
271270
defer done()
272271

273-
decodedSSHPublicKey, err := base64.StdEncoding.DecodeString(s.SSHPublicKey)
274-
if err != nil {
275-
return nil, errors.Wrap(err, "failed to decode SSHPublicKey")
276-
}
277272
managedCluster := containerservice.ManagedCluster{
278273
Identity: &containerservice.ManagedClusterIdentity{
279274
Type: containerservice.ResourceIdentityTypeSystemAssigned,
@@ -291,16 +286,6 @@ func (s *ManagedClusterSpec) Parameters(ctx context.Context, existing interface{
291286
EnableRBAC: pointer.Bool(true),
292287
DNSPrefix: &s.Name,
293288
KubernetesVersion: &s.Version,
294-
LinuxProfile: &containerservice.LinuxProfile{
295-
AdminUsername: pointer.String(azure.DefaultAKSUserName),
296-
SSH: &containerservice.SSHConfiguration{
297-
PublicKeys: &[]containerservice.SSHPublicKey{
298-
{
299-
KeyData: pointer.String(string(decodedSSHPublicKey)),
300-
},
301-
},
302-
},
303-
},
304289
ServicePrincipalProfile: &containerservice.ManagedClusterServicePrincipalProfile{
305290
ClientID: pointer.String("msi"),
306291
},

config/capz/manager_image_patch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ spec:
88
spec:
99
containers:
1010
# Change the value of image field below to your controller image URL
11-
- image: gcr.io/k8s-staging-cluster-api-azure/cluster-api-azure-controller:latest
11+
- image: ghcr.io/pluralsh/cluster-api-azure-controller:v1.9.10
1212
name: manager

0 commit comments

Comments
 (0)