This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CB controller should ignore clusters with legacy-tkr label (#2624)
UTKG Addons manager needs to only process TKRs which do NOT have "run.tanzu.vmware.com/legacy-tkr" label Fixes #2546
- Loading branch information
Adolfo Duarte
authored
Jun 14, 2022
1 parent
2602583
commit 6bd1816
Showing
5 changed files
with
107 additions
and
0 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
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,69 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: legacy-namespace | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: test-cluster-legacy | ||
namespace: legacy-namespace | ||
labels: | ||
tkg.tanzu.vmware.com/cluster-name: test-cluster-legacy | ||
run.tanzu.vmware.com/tkr: v1.12.1 | ||
spec: | ||
infrastructureRef: | ||
kind: VSphereCluster | ||
clusterNetwork: | ||
pods: | ||
cidrBlocks: [ "192.168.0.0/16","fd00:100:96::/48" ] | ||
services: | ||
cidrBlocks: [ "192.168.0.0/16","fd00:100:96::/48" ] | ||
controlPlaneRef: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlane | ||
name: test-cluster-legacy-control-plane | ||
namespace: legacy-namespace | ||
topology: | ||
class: test-clusterclass-legasy | ||
version: v1.22.3 | ||
variables: | ||
- name: tkg.tanzu.vmware.com/tkg-ip-family | ||
value: "ipv4" | ||
- name: proxy | ||
value: | ||
httpProxy: "foo.com" | ||
httpsProxy: "bar.com" | ||
noProxy: "foobar.com" | ||
- name: trust | ||
value: | ||
additionalTrustedCAs: | ||
- name: CompanyInternalCA-1 | ||
data: aGVsbG8= | ||
- name: CompanyInternalCA-2 | ||
data: bHWtcH9= | ||
- name: skipTLSVerify | ||
value: | ||
- registry1 | ||
- registry2 | ||
--- | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlane | ||
metadata: | ||
name: test-cluster-legacy-control-plane | ||
namespace: legacy-namespace | ||
ownerReferences: | ||
- apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
name: test-cluster-legacy | ||
uid: bd834522-d9a5-4841-beac-991ff3798c01 | ||
spec: | ||
kubeadmConfigSpec: {} | ||
machineTemplate: | ||
infrastructureRef: {} | ||
replicas: 3 | ||
version: v1.22.3 | ||
|
||
|
||
|
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