Skip to content

Commit 9836edb

Browse files
committed
Fixed issue where image in the manifests shows the ORG twice
Signed-off-by: Mohamed Belgaied Hassine <belgaied2@hotmail.com>
1 parent db423cf commit 9836edb

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ REGISTRY ?= ghcr.io
3333
ORG ?= rancher-sandbox
3434
IMAGE_NAME ?= cluster-api-provider-harvester
3535
# Image URL to use all building/pushing image targets
36-
IMG ?= $(REGISTRY)/$(ORG)/$(IMAGE_NAME)
36+
IMG ?= $(REGISTRY)/$(IMAGE_NAME)
3737

3838
# Allow overriding the imagePullPolicy
3939
PULL_POLICY ?= Always

templates/cluster-template-rke2-generateCPI.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ metadata:
44
name: ${NAMESPACE}
55
---
66
apiVersion: cluster.x-k8s.io/v1beta2
7-
kind: Cluster
7+
kind: Cluster
88
metadata:
99
namespace: ${NAMESPACE}
10-
name: ${CLUSTER_NAME}
10+
name: ${CLUSTER_NAME}
1111
labels:
12-
${RANCHER_TURTLES_LABEL}
12+
${RANCHER_TURTLES_LABEL:-cluster-api.cattle.io/rancher-auto-import: false}
1313
ccm: external
1414
csi: external
1515
cni: external
@@ -38,10 +38,10 @@ spec:
3838
protocol: TCP
3939
backendPort: 9345
4040
server: ${HARVESTER_ENDPOINT}
41-
identitySecret:
41+
identitySecret:
4242
namespace: ${NAMESPACE}
4343
name: hv-identity-secret
44-
${UPDATE_CLOUD_PROVIDER:- updateCloudProviderConfig:
44+
${UPDATE_CLOUD_PROVIDER:- updateCloudProviderConfig:
4545
cloudConfigCredentialsSecretKey: cloud-config
4646
cloudConfigCredentialsSecretName: cloud-config
4747
manifestsConfigMapKey: harvester-cloud-provider-deploy.yaml
@@ -54,7 +54,7 @@ kind: Secret
5454
metadata:
5555
namespace: ${NAMESPACE}
5656
name: hv-identity-secret
57-
data:
57+
data:
5858
kubeconfig: ${HARVESTER_KUBECONFIG_B64}
5959
---
6060
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
@@ -116,18 +116,18 @@ metadata:
116116
namespace: ${NAMESPACE}
117117
name: ${CLUSTER_NAME}-wk-machine
118118
spec:
119-
template:
119+
template:
120120
spec:
121-
cpu: 1
122-
memory: 4Gi
123-
sshUser: ubuntu
124-
sshKeyPair: ${SSH_KEYPAIR}
121+
cpu: ${WORKER_VM_CPU_COUNT:-2}
122+
memory: ${WORKER_VM_MEMORY:-4Gi}
123+
sshUser: ${VM_USER:-ubuntu}
124+
sshKeyPair: ${SSH_KEYPAIR}
125125
networks:
126126
- ${VM_NETWORK}
127127
volumes:
128-
- volumeType: image
128+
- volumeType: image
129129
imageName: ${VM_IMAGE_NAME}
130-
volumeSize: ${VM_DISK_SIZE}
130+
volumeSize: ${VM_DISK_SIZE:50Gi}
131131
bootOrder: 0
132132
---
133133
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha1
@@ -136,18 +136,18 @@ metadata:
136136
namespace: ${NAMESPACE}
137137
name: ${CLUSTER_NAME}-cp-machine
138138
spec:
139-
template:
139+
template:
140140
spec:
141-
cpu: 2
142-
memory: 8Gi
143-
sshUser: ubuntu
144-
sshKeyPair: ${SSH_KEYPAIR}
141+
cpu: ${CONTROL_PLANE_VM_CPU_COUNT:-2}
142+
memory: ${CONTROL_PLANE_VM_MEMORY:-4Gi}
143+
sshUser: ${VM_USER:-ubuntu}
144+
sshKeyPair: ${SSH_KEYPAIR}
145145
networks:
146146
- ${VM_NETWORK}
147147
volumes:
148-
- volumeType: image
148+
- volumeType: image
149149
imageName: ${VM_IMAGE_NAME}
150-
volumeSize: ${VM_DISK_SIZE}
150+
volumeSize: ${VM_DISK_SIZE:50Gi}
151151
bootOrder: 0
152152
---
153153
apiVersion: addons.cluster.x-k8s.io/v1beta2

0 commit comments

Comments
 (0)