diff --git a/pkg/controller/template/render_test.go b/pkg/controller/template/render_test.go index db2e9d0af3..5f5225dab5 100644 --- a/pkg/controller/template/render_test.go +++ b/pkg/controller/template/render_test.go @@ -216,6 +216,8 @@ var ( "nutanix": "./test_data/controller_config_nutanix.yaml", "network-forwarding-sdn": "./test_data/controller_config_forwarding_sdn.yaml", "network-forwarding-ovn": "./test_data/controller_config_forwarding_ovn.yaml", + "gcp-custom-dns": "./test_data/controller_config_gcp_custom_dns.yaml", + "gcp-platform-default": "./test_data/controller_config_gcp_platform_default.yaml", } ) diff --git a/pkg/controller/template/test_data/controller_config_gcp_custom_dns.yaml b/pkg/controller/template/test_data/controller_config_gcp_custom_dns.yaml new file mode 100644 index 0000000000..3562e0fa23 --- /dev/null +++ b/pkg/controller/template/test_data/controller_config_gcp_custom_dns.yaml @@ -0,0 +1,33 @@ +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 diff --git a/pkg/controller/template/test_data/controller_config_gcp_platform_default.yaml b/pkg/controller/template/test_data/controller_config_gcp_platform_default.yaml new file mode 100644 index 0000000000..ca299ff77a --- /dev/null +++ b/pkg/controller/template/test_data/controller_config_gcp_platform_default.yaml @@ -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"