Change target cluster name for capo

Change target cluster name for capo
provider from "ostgt" to "target-cluster"

target cluster name was changed at below entrypoints:

  - manifests/function/k8scontrol-capo
  - manifests/function/workers-capo
  - manifests/site/openstack-test-site

Change-Id: I36f115e4a5debfc9c0f7e47705c87de29cf14d80
This commit is contained in:
Ratnopam Chakrabarti
2020-10-28 09:26:24 -04:00
parent cd418a64dc
commit 646006986b
14 changed files with 33 additions and 33 deletions

View File

@@ -1,7 +1,7 @@
apiVersion: cluster.x-k8s.io/v1alpha3 apiVersion: cluster.x-k8s.io/v1alpha3
kind: Cluster kind: Cluster
metadata: metadata:
name: ostgt name: target-cluster
namespace: default namespace: default
spec: spec:
clusterNetwork: clusterNetwork:
@@ -12,23 +12,23 @@ spec:
controlPlaneRef: controlPlaneRef:
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3 apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
kind: KubeadmControlPlane kind: KubeadmControlPlane
name: ostgt-control-plane name: target-cluster-control-plane
infrastructureRef: infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: OpenStackCluster kind: OpenStackCluster
name: ostgt name: target-cluster
--- ---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: OpenStackCluster kind: OpenStackCluster
metadata: metadata:
name: ostgt name: target-cluster
namespace: default namespace: default
spec: spec:
apiServerLoadBalancerFloatingIP: ${OPENSTACK_CONTROLPLANE_IP} apiServerLoadBalancerFloatingIP: ${OPENSTACK_CONTROLPLANE_IP}
apiServerLoadBalancerPort: 6443 apiServerLoadBalancerPort: 6443
cloudName: devstack cloudName: devstack
cloudsSecret: cloudsSecret:
name: ostgt-cloud-config name: target-cluster-cloud-config
namespace: default namespace: default
disablePortSecurity: false disablePortSecurity: false
disableServerTags: true disableServerTags: true
@@ -43,7 +43,7 @@ spec:
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: ostgt-cloud-config name: target-cluster-cloud-config
namespace: default namespace: default
data: data:
cacert: ${CLOUD_CERT_B64} cacert: ${CLOUD_CERT_B64}

View File

@@ -1,13 +1,13 @@
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3 apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
kind: KubeadmControlPlane kind: KubeadmControlPlane
metadata: metadata:
name: ostgt-control-plane name: target-cluster-control-plane
namespace: default namespace: default
spec: spec:
infrastructureTemplate: infrastructureTemplate:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: OpenStackMachineTemplate kind: OpenStackMachineTemplate
name: ostgt-control-plane name: target-cluster-control-plane
kubeadmConfigSpec: kubeadmConfigSpec:
clusterConfiguration: clusterConfiguration:
apiServer: apiServer:
@@ -70,14 +70,14 @@ spec:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: OpenStackMachineTemplate kind: OpenStackMachineTemplate
metadata: metadata:
name: ostgt-control-plane name: target-cluster-control-plane
namespace: default namespace: default
spec: spec:
template: template:
spec: spec:
cloudName: devstack cloudName: devstack
cloudsSecret: cloudsSecret:
name: ostgt-cloud-config name: target-cluster-cloud-config
namespace: default namespace: default
flavor: ${CONTROLPLANE_MACHINE_FLAVOR} flavor: ${CONTROLPLANE_MACHINE_FLAVOR}
image: ubuntu-1910-kube-v1.17.3 image: ubuntu-1910-kube-v1.17.3

View File

@@ -1,10 +1,10 @@
apiVersion: cluster.x-k8s.io/v1alpha3 apiVersion: cluster.x-k8s.io/v1alpha3
kind: MachineDeployment kind: MachineDeployment
metadata: metadata:
name: ostgt-md-0 name: target-cluster-md-0
namespace: default namespace: default
spec: spec:
clusterName: ostgt clusterName: target-cluster
replicas: 0 replicas: 0
selector: selector:
matchLabels: null matchLabels: null
@@ -14,26 +14,26 @@ spec:
configRef: configRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3 apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
kind: KubeadmConfigTemplate kind: KubeadmConfigTemplate
name: ostgt-md-0 name: target-cluster-md-0
clusterName: ostgt clusterName: target-cluster
failureDomain: nova failureDomain: nova
infrastructureRef: infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: OpenStackMachineTemplate kind: OpenStackMachineTemplate
name: ostgt-md-0 name: target-cluster-md-0
version: v1.17.3 version: v1.17.3
--- ---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: OpenStackMachineTemplate kind: OpenStackMachineTemplate
metadata: metadata:
name: ostgt-md-0 name: target-cluster-md-0
namespace: default namespace: default
spec: spec:
template: template:
spec: spec:
cloudName: devstack cloudName: devstack
cloudsSecret: cloudsSecret:
name: ostgt-cloud-config name: target-cluster-cloud-config
namespace: default namespace: default
flavor: ${WORKER_MACHINE_FLAVOR} flavor: ${WORKER_MACHINE_FLAVOR}
image: ubuntu-1910-kube-v1.17.3 image: ubuntu-1910-kube-v1.17.3
@@ -41,7 +41,7 @@ spec:
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3 apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
kind: KubeadmConfigTemplate kind: KubeadmConfigTemplate
metadata: metadata:
name: ostgt-md-0 name: target-cluster-md-0
namespace: default namespace: default
spec: spec:
template: template:

View File

@@ -1,7 +1,7 @@
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
metadata: metadata:
name: ostgt-cloud-config name: target-cluster-cloud-config
namespace: default namespace: default
data: data:
cacert: Cg== cacert: Cg==

View File

@@ -1,13 +1,13 @@
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3 apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
kind: KubeadmControlPlane kind: KubeadmControlPlane
metadata: metadata:
name: ostgt-control-plane name: target-cluster-control-plane
namespace: default namespace: default
spec: spec:
infrastructureTemplate: infrastructureTemplate:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: OpenStackMachineTemplate kind: OpenStackMachineTemplate
name: ostgt-control-plane name: target-cluster-control-plane
kubeadmConfigSpec: kubeadmConfigSpec:
files: files:
- path: /etc/kubernetes/cloud.conf - path: /etc/kubernetes/cloud.conf

View File

@@ -1,7 +1,7 @@
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3 apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
kind: KubeadmControlPlane kind: KubeadmControlPlane
metadata: metadata:
name: ostgt-control-plane name: target-cluster-control-plane
namespace: default namespace: default
spec: spec:
kubeadmConfigSpec: kubeadmConfigSpec:

View File

@@ -1,7 +1,7 @@
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3 apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
kind: KubeadmControlPlane kind: KubeadmControlPlane
metadata: metadata:
name: ostgt-control-plane name: target-cluster-control-plane
namespace: default namespace: default
spec: spec:
replicas: 1 replicas: 1

View File

@@ -1,7 +1,7 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: OpenStackMachineTemplate kind: OpenStackMachineTemplate
metadata: metadata:
name: ostgt-control-plane name: target-cluster-control-plane
namespace: default namespace: default
spec: spec:
template: template:

View File

@@ -9,21 +9,21 @@ patchesJson6902:
group: infrastructure.cluster.x-k8s.io group: infrastructure.cluster.x-k8s.io
version: v1alpha3 version: v1alpha3
kind: OpenStackCluster kind: OpenStackCluster
name: "ostgt" name: "target-cluster"
path: control_plane_ip.json path: control_plane_ip.json
- target: - target:
group: infrastructure.cluster.x-k8s.io group: infrastructure.cluster.x-k8s.io
version: v1alpha3 version: v1alpha3
kind: OpenStackCluster kind: OpenStackCluster
name: "ostgt" name: "target-cluster"
path: dns_servers.json path: dns_servers.json
- target: - target:
group: infrastructure.cluster.x-k8s.io group: infrastructure.cluster.x-k8s.io
version: v1alpha3 version: v1alpha3
kind: OpenStackCluster kind: OpenStackCluster
name: "ostgt" name: "target-cluster"
path: external_network_id.json path: external_network_id.json
patchesStrategicMerge: patchesStrategicMerge:

View File

@@ -1,7 +1,7 @@
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3 apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
kind: KubeadmControlPlane kind: KubeadmControlPlane
metadata: metadata:
name: ostgt-control-plane name: target-cluster-control-plane
namespace: default namespace: default
spec: spec:
kubeadmConfigSpec: kubeadmConfigSpec:

View File

@@ -1,7 +1,7 @@
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3 apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
kind: KubeadmConfigTemplate kind: KubeadmConfigTemplate
metadata: metadata:
name: ostgt-md-0 name: target-cluster-md-0
namespace: default namespace: default
spec: spec:
template: template:

View File

@@ -1,8 +1,8 @@
apiVersion: cluster.x-k8s.io/v1alpha3 apiVersion: cluster.x-k8s.io/v1alpha3
kind: MachineDeployment kind: MachineDeployment
metadata: metadata:
name: ostgt-md-0 name: target-cluster-md-0
namespace: default namespace: default
spec: spec:
clusterName: ostgt clusterName: target-cluster
replicas: 3 replicas: 3

View File

@@ -1,7 +1,7 @@
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3 apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: OpenStackMachineTemplate kind: OpenStackMachineTemplate
metadata: metadata:
name: ostgt-md-0 name: target-cluster-md-0
namespace: default namespace: default
spec: spec:
template: template:

View File

@@ -1,7 +1,7 @@
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3 apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
kind: KubeadmConfigTemplate kind: KubeadmConfigTemplate
metadata: metadata:
name: ostgt-md-0 name: target-cluster-md-0
namespace: default namespace: default
spec: spec:
template: template: