Skip to content

Commit f424199

Browse files
committed
fix: review comments
1 parent a5a2d21 commit f424199

File tree

5 files changed

+50
-50
lines changed

5 files changed

+50
-50
lines changed

.github/workflows/docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ jobs:
4141
with:
4242
context: .
4343
push: true
44-
tags: ${{ env.REGISTRY }}/metal-stack/capms-controller:${{ env.tag }}
44+
tags: ${{ env.REGISTRY }}/metal-stack/cluster-api-metal-stack-controller:${{ env.tag }}

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Image URL to use all building/pushing image targets
2-
IMG_NAME ?= ghcr.io/metal-stack/capms-controller
2+
IMG_NAME ?= ghcr.io/metal-stack/cluster-api-metal-stack-controller
33
IMG_TAG ?= latest
44
IMG ?= ${IMG_NAME}:${IMG_TAG}
55
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
@@ -52,8 +52,8 @@ release-manifests: $(KUSTOMIZE) build-installer ## Builds the manifests to publi
5252
$(KUSTOMIZE) build config/default > $(RELEASE_DIR)/infrastructure-components.yaml
5353
sed -i 's!image: $(IMG_NAME):latest!image: $(IMG_NAME):$(IMG_TAG)!' $(RELEASE_DIR)/infrastructure-components.yaml
5454
cp metadata.yaml $(RELEASE_DIR)/metadata.yaml
55-
# cp examples/clusterctl-templates/clusterctl-cluster.yaml $(RELEASE_DIR)/cluster-template.yaml
56-
# cp examples/clusterctl-templates/example_variables.rc $(RELEASE_DIR)/example_variables.rc
55+
cp config/clusterctl-templates/cluster-template.yaml $(RELEASE_DIR)/cluster-template.yaml
56+
cp config/clusterctl-templates/example_variables.rc $(RELEASE_DIR)/example_variables.rc
5757

5858
##@ Development
5959

capi-lab/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.DEFAULT_GOAL := up
22

33
KUBECONFIG := $(shell pwd)/mini-lab/.kubeconfig
4-
IMG ?= ghcr.io/metal-stack/capms-controller:latest
4+
IMG ?= ghcr.io/metal-stack/cluster-api-metal-stack-controller:latest
55

66
.PHONY: up
77
up: bake deploy-capi

config/manager/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
55
images:
66
- name: controller
7-
newName: ghcr.io/metal-stack/capms-controller
8-
newTag: xxxxxxx
7+
newName: ghcr.io/metal-stack/cluster-api-metal-stack-controller
8+
newTag: latest

config/manager/manager.yaml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -33,48 +33,48 @@ spec:
3333
seccompProfile:
3434
type: RuntimeDefault
3535
containers:
36-
- env:
37-
- name: METAL_API_URL
38-
valueFrom:
39-
secretKeyRef:
40-
name: controller-manager-config
41-
key: api-url
42-
- name: METAL_API_HMAC
43-
valueFrom:
44-
secretKeyRef:
45-
name: controller-manager-config
46-
key: api-hmac
47-
command:
48-
- /manager
49-
args:
50-
- --leader-elect
51-
- --health-probe-bind-address=:8081
52-
image: controller:latest
53-
imagePullPolicy: IfNotPresent
54-
name: manager
55-
securityContext:
56-
allowPrivilegeEscalation: false
57-
capabilities:
58-
drop:
59-
- "ALL"
60-
livenessProbe:
61-
httpGet:
62-
path: /healthz
63-
port: 8081
64-
initialDelaySeconds: 15
65-
periodSeconds: 20
66-
readinessProbe:
67-
httpGet:
68-
path: /readyz
69-
port: 8081
70-
initialDelaySeconds: 5
71-
periodSeconds: 10
72-
resources:
73-
limits:
74-
cpu: 500m
75-
memory: 128Mi
76-
requests:
77-
cpu: 10m
78-
memory: 64Mi
36+
- env:
37+
- name: METAL_API_URL
38+
valueFrom:
39+
secretKeyRef:
40+
name: controller-manager-config
41+
key: api-url
42+
- name: METAL_API_HMAC
43+
valueFrom:
44+
secretKeyRef:
45+
name: controller-manager-config
46+
key: api-hmac
47+
command:
48+
- /manager
49+
args:
50+
- --leader-elect
51+
- --health-probe-bind-address=:8081
52+
image: controller:latest
53+
imagePullPolicy: IfNotPresent
54+
name: manager
55+
securityContext:
56+
allowPrivilegeEscalation: false
57+
capabilities:
58+
drop:
59+
- "ALL"
60+
livenessProbe:
61+
httpGet:
62+
path: /healthz
63+
port: 8081
64+
initialDelaySeconds: 15
65+
periodSeconds: 20
66+
readinessProbe:
67+
httpGet:
68+
path: /readyz
69+
port: 8081
70+
initialDelaySeconds: 5
71+
periodSeconds: 10
72+
resources:
73+
limits:
74+
cpu: 500m
75+
memory: 128Mi
76+
requests:
77+
cpu: 10m
78+
memory: 64Mi
7979
serviceAccountName: controller-manager
8080
terminationGracePeriodSeconds: 10

0 commit comments

Comments
 (0)