-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rename topology-dry run to 'topology plan' and other improvements
- Loading branch information
Yuvaraj Kakaraparthi
committed
Jan 21, 2022
1 parent
07e31b7
commit 07b5e0a
Showing
15 changed files
with
964 additions
and
542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
126 changes: 0 additions & 126 deletions
126
...st/existing-clusterclass-and-cluster.yaml → ...ts/topology-test/existing-my-cluster.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
142 changes: 142 additions & 0 deletions
142
cmd/clusterctl/client/cluster/assets/topology-test/existing-my-second-cluster.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: "my-second-cluster" | ||
namespace: default | ||
labels: | ||
cni: kindnet | ||
spec: | ||
clusterNetwork: | ||
services: | ||
cidrBlocks: ["10.128.0.0/12"] | ||
pods: | ||
cidrBlocks: ["192.168.0.0/16"] | ||
serviceDomain: "cluster.local" | ||
controlPlaneEndpoint: | ||
host: 172.19.0.4 | ||
port: 6443 | ||
controlPlaneRef: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlane | ||
name: my-second-cluster-fwbpf | ||
namespace: default | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerCluster | ||
name: my-second-cluster-zrq96 | ||
namespace: default | ||
topology: | ||
class: my-cluster-class | ||
version: v1.21.2 | ||
controlPlane: | ||
metadata: {} | ||
replicas: 1 | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerCluster | ||
metadata: | ||
annotations: | ||
cluster.x-k8s.io/cloned-from-groupkind: DockerClusterTemplate.infrastructure.cluster.x-k8s.io | ||
cluster.x-k8s.io/cloned-from-name: my-cluster | ||
finalizers: | ||
- dockercluster.infrastructure.cluster.x-k8s.io | ||
labels: | ||
cluster.x-k8s.io/cluster-name: my-cluster | ||
topology.cluster.x-k8s.io/owned: "" | ||
name: my-second-cluster-zrq96 | ||
namespace: default | ||
spec: | ||
controlPlaneEndpoint: | ||
host: 172.19.0.4 | ||
port: 6443 | ||
loadBalancer: {} | ||
--- | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlane | ||
metadata: | ||
annotations: | ||
cluster.x-k8s.io/cloned-from-groupkind: KubeadmControlPlaneTemplate.controlplane.cluster.x-k8s.io | ||
cluster.x-k8s.io/cloned-from-name: control-plane | ||
finalizers: | ||
- kubeadm.controlplane.cluster.x-k8s.io | ||
labels: | ||
cluster.x-k8s.io/cluster-name: my-cluster | ||
topology.cluster.x-k8s.io/owned: "" | ||
name: my-second-cluster-fwbpf | ||
namespace: default | ||
ownerReferences: | ||
- apiVersion: cluster.x-k8s.io/v1beta1 | ||
blockOwnerDeletion: true | ||
controller: true | ||
kind: Cluster | ||
name: my-second-cluster | ||
uid: 3ba5ce4f-d279-4edb-8ade-62a2381d11a9 | ||
spec: | ||
kubeadmConfigSpec: | ||
clusterConfiguration: | ||
apiServer: | ||
certSANs: | ||
- localhost | ||
- 127.0.0.1 | ||
controllerManager: | ||
extraArgs: | ||
enable-hostpath-provisioner: "true" | ||
dns: {} | ||
etcd: {} | ||
networking: {} | ||
scheduler: {} | ||
initConfiguration: | ||
localAPIEndpoint: {} | ||
nodeRegistration: | ||
criSocket: /var/run/containerd/containerd.sock | ||
kubeletExtraArgs: | ||
cgroup-driver: cgroupfs | ||
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0% | ||
joinConfiguration: | ||
discovery: {} | ||
nodeRegistration: | ||
criSocket: /var/run/containerd/containerd.sock | ||
kubeletExtraArgs: | ||
cgroup-driver: cgroupfs | ||
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0% | ||
machineTemplate: | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
name: my-cluster-control-plane-44cd4 | ||
namespace: default | ||
metadata: | ||
labels: | ||
cluster.x-k8s.io/cluster-name: my-cluster | ||
topology.cluster.x-k8s.io/owned: "" | ||
nodeDrainTimeout: 1s | ||
replicas: 1 | ||
rolloutStrategy: | ||
rollingUpdate: | ||
maxSurge: 1 | ||
type: RollingUpdate | ||
version: v1.21.2 | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
metadata: | ||
annotations: | ||
cluster.x-k8s.io/cloned-from-groupkind: DockerMachineTemplate.infrastructure.cluster.x-k8s.io | ||
cluster.x-k8s.io/cloned-from-name: control-plane | ||
labels: | ||
cluster.x-k8s.io/cluster-name: my-cluster | ||
topology.cluster.x-k8s.io/owned: "" | ||
name: my-second-cluster-control-plane-44cd4 | ||
namespace: default | ||
ownerReferences: | ||
- apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
name: my-second-cluster | ||
uid: 3ba5ce4f-d279-4edb-8ade-62a2381d11a9 | ||
spec: | ||
template: | ||
spec: | ||
extraMounts: | ||
- containerPath: /var/run/docker.sock | ||
hostPath: /var/run/docker.sock |
39 changes: 39 additions & 0 deletions
39
cmd/clusterctl/client/cluster/assets/topology-test/mock-CRDs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
labels: | ||
cluster.x-k8s.io/provider: infrastructure-docker | ||
cluster.x-k8s.io/v1beta1: v1beta1 | ||
name: dockerclusters.infrastructure.cluster.x-k8s.io | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
labels: | ||
cluster.x-k8s.io/provider: infrastructure-docker | ||
cluster.x-k8s.io/v1beta1: v1beta1 | ||
name: dockerclustertemplates.infrastructure.cluster.x-k8s.io | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
labels: | ||
cluster.x-k8s.io/provider: control-plane-kubeadm | ||
cluster.x-k8s.io/v1beta1: v1beta1 | ||
name: kubeadmcontrolplanetemplates.controlplane.cluster.x-k8s.io | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
labels: | ||
cluster.x-k8s.io/provider: control-plane-kubeadm | ||
cluster.x-k8s.io/v1beta1: v1beta1 | ||
name: kubeadmcontrolplanes.controlplane.cluster.x-k8s.io | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
labels: | ||
cluster.x-k8s.io/provider: infrastructure-docker | ||
cluster.x-k8s.io/v1beta1: v1beta1 | ||
name: dockermachinetemplates.infrastructure.cluster.x-k8s.io |
14 changes: 14 additions & 0 deletions
14
cmd/clusterctl/client/cluster/assets/topology-test/modified-CP-dockermachinetemplate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
metadata: | ||
name: "control-plane" | ||
namespace: default | ||
spec: | ||
template: | ||
metadata: | ||
labels: | ||
docker-machine-template: test-template-control-plane | ||
spec: | ||
extraMounts: | ||
- containerPath: "/var/run/docker.sock" | ||
hostPath: "/var/run/docker.sock" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ spec: | |
version: v1.21.2 | ||
controlPlane: | ||
metadata: {} | ||
replicas: 3 | ||
replicas: 3 |
Oops, something went wrong.