Skip to content

Commit 68257fa

Browse files
committed
chore: rename namespace #24
1 parent d959819 commit 68257fa

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ release-manifests: $(KUSTOMIZE) ## Builds the manifests to publish with a releas
5656
push-to-capi-lab: generate manifests build install deploy
5757
docker build -t $(IMG) -f Dockerfile.dev .
5858
kind --name metal-control-plane load docker-image capms-controller:latest
59-
kubectl --kubeconfig=$(KUBECONFIG) patch deployments.apps -n capms-system capms-controller-manager --patch='{"spec":{"template":{"spec":{"containers":[{"name": "manager","imagePullPolicy":"IfNotPresent","image":"$(IMG)"}]}}}}'
60-
kubectl --kubeconfig=$(KUBECONFIG) delete pod -n capms-system -l control-plane=controller-manager
59+
kubectl --kubeconfig=$(KUBECONFIG) patch deployments.apps -n capi-metal-stack-system capms-controller-manager --patch='{"spec":{"template":{"spec":{"containers":[{"name": "manager","imagePullPolicy":"IfNotPresent","image":"$(IMG)"}]}}}}'
60+
kubectl --kubeconfig=$(KUBECONFIG) delete pod -n capi-metal-stack-system -l control-plane=controller-manager
6161

6262
.PHONY: manifests
6363
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.

capi-lab/deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- name: prometheus
1414
- name: firewall-controller-manager
1515
vars:
16-
firewall_controller_manager_namespace: capms-system
16+
firewall_controller_manager_namespace: capi-metal-stack-system
1717
firewall_controller_manager_ca: "{{ lookup('file', playbook_dir + '/fcm-certs/ca.pem') }}"
1818
firewall_controller_manager_cert: "{{ lookup('file', playbook_dir + '/fcm-certs/tls.crt') }}"
1919
firewall_controller_manager_cert_key: "{{ lookup('file', playbook_dir + '/fcm-certs/tls.key') }}"

capi-lab/fcm-certs/tls.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"CN": "localhost",
33
"hosts": [
44
"localhost",
5-
"firewall-controller-manager.capms-system.svc",
6-
"firewall-controller-manager.capms-system.svc.cluster.local"
5+
"firewall-controller-manager.capi-metal-stack-system.svc",
6+
"firewall-controller-manager.capi-metal-stack-system.svc.cluster.local"
77
],
88
"key": {
99
"algo": "ecdsa",

config/default/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Adds namespace to all resources.
2-
namespace: capms-system
3-
namePrefix: capms-
2+
namespace: capi-metal-stack-system
3+
namePrefix: capi-metal-stack-
44

55
labels:
66
- includeSelectors: true

config/default/namespace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
apiVersion: v1
33
kind: Namespace
44
metadata:
5-
name: capms-system
5+
name: capi-metal-stack-system
66
labels:
77
pod-security.kubernetes.io/enforce: restricted

test/e2e/e2e_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
)
3232

3333
// namespace where the project is deployed in
34-
const namespace = "capms-system"
34+
const namespace = "capi-metal-stack-system"
3535

3636
// serviceAccountName created for the project
3737
const serviceAccountName = "capms-controller-manager"

0 commit comments

Comments
 (0)