Fixes namespace issue in capd
With this patch kubernetes resources will get deployed in target-infra namespace instead of default. Closes: #618 Change-Id: I74044512e21fd4b82420c0f09b40ad6c6c853623
This commit is contained in:
parent
5391cc7b6a
commit
4981514fa7
@ -15,12 +15,10 @@ spec:
|
|||||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
|
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
|
||||||
kind: DockerCluster
|
kind: DockerCluster
|
||||||
name: "target-cluster"
|
name: "target-cluster"
|
||||||
namespace: default
|
|
||||||
controlPlaneRef:
|
controlPlaneRef:
|
||||||
kind: KubeadmControlPlane
|
kind: KubeadmControlPlane
|
||||||
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
|
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
|
||||||
name: "target-cluster-control-plane"
|
name: "target-cluster-control-plane"
|
||||||
namespace: default
|
|
||||||
---
|
---
|
||||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
|
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
|
||||||
kind: DockerCluster
|
kind: DockerCluster
|
||||||
|
@ -22,7 +22,6 @@ spec:
|
|||||||
kind: DockerMachineTemplate
|
kind: DockerMachineTemplate
|
||||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
|
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
|
||||||
name: "target-cluster-control-plane"
|
name: "target-cluster-control-plane"
|
||||||
namespace: default
|
|
||||||
kubeadmConfigSpec:
|
kubeadmConfigSpec:
|
||||||
clusterConfiguration:
|
clusterConfiguration:
|
||||||
controllerManager:
|
controllerManager:
|
||||||
|
@ -2,6 +2,9 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- ../../../../function/k8scontrol-capd
|
- ../../../../function/k8scontrol-capd
|
||||||
|
- namespace.yaml
|
||||||
|
|
||||||
|
namespace: target-infra
|
||||||
|
|
||||||
patchesJson6902:
|
patchesJson6902:
|
||||||
- target:
|
- target:
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: target-infra
|
Loading…
Reference in New Issue
Block a user