-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GCP: Update unit tests when UserProvisionedDNS is enabled
Also add test_data containing ControllerConfig for GCP when DNStype is `ClusterHosted` and all the LB IP values are available.
- Loading branch information
Showing
3 changed files
with
108 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
36 changes: 36 additions & 0 deletions
36
pkg/controller/template/test_data/controller_config_gcp_custom_dns.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,36 @@ | ||
apiVersion: "machineconfigurations.openshift.io/v1" | ||
kind: "ControllerConfig" | ||
spec: | ||
clusterDNSIP: "10.3.0.10" | ||
cloudProviderConfig: "" | ||
etcdInitialCount: 3 | ||
etcdCAData: ZHVtbXkgZXRjZC1jYQo= | ||
rootCAData: ZHVtbXkgcm9vdC1jYQo= | ||
pullSecret: | ||
data: ZHVtbXkgZXRjZC1jYQo= | ||
images: | ||
etcd: image/etcd:1 | ||
setupEtcdEnv: image/setupEtcdEnv:1 | ||
infraImage: image/infraImage:1 | ||
kubeClientAgentImage: image/kubeClientAgentImage:1 | ||
infra: | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
status: | ||
apiServerInternalURI: https://api-int.my-test-cluster.installer.team.coreos.systems:6443 | ||
apiServerURL: https://api.my-test-cluster.installer.team.coreos.systems:6443 | ||
etcdDiscoveryDomain: my-test-cluster.installer.team.coreos.systems | ||
infrastructureName: my-test-cluster | ||
platformStatus: | ||
type: "GCP" | ||
gcp: | ||
cloudLoadBalancerConfig: | ||
dnsType: "ClusterHosted" | ||
clusterHosted: | ||
apiLoadBalancerIPs: | ||
- 20.20.20.20 | ||
apiIntLoadBalancerIPs: | ||
- 10.10.10.10 | ||
dns: | ||
spec: | ||
baseDomain: my-test-cluster.installer.team.coreos.systems |
28 changes: 28 additions & 0 deletions
28
pkg/controller/template/test_data/controller_config_gcp_default_dns.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,28 @@ | ||
apiVersion: "machineconfigurations.openshift.io/v1" | ||
kind: "ControllerConfig" | ||
spec: | ||
clusterDNSIP: "10.3.0.10" | ||
cloudProviderConfig: "" | ||
etcdInitialCount: 3 | ||
etcdCAData: ZHVtbXkgZXRjZC1jYQo= | ||
rootCAData: ZHVtbXkgcm9vdC1jYQo= | ||
pullSecret: | ||
data: ZHVtbXkgZXRjZC1jYQo= | ||
images: | ||
etcd: image/etcd:1 | ||
setupEtcdEnv: image/setupEtcdEnv:1 | ||
infraImage: image/infraImage:1 | ||
kubeClientAgentImage: image/kubeClientAgentImage:1 | ||
infra: | ||
apiVersion: config.openshift.io/v1 | ||
kind: Infrastructure | ||
status: | ||
apiServerInternalURI: https://api-int.my-test-cluster.installer.team.coreos.systems:6443 | ||
apiServerURL: https://api.my-test-cluster.installer.team.coreos.systems:6443 | ||
etcdDiscoveryDomain: my-test-cluster.installer.team.coreos.systems | ||
infrastructureName: my-test-cluster | ||
platformStatus: | ||
type: "GCP" | ||
gcp: | ||
cloudLoadBalancerConfig: | ||
dnsType: "PlatformDefault" |