From a8f58df5fc267d8cb7b6890c6d4b6f05d0f0b117 Mon Sep 17 00:00:00 2001 From: Dan Mace Date: Tue, 11 Dec 2018 11:25:23 -0500 Subject: [PATCH] Add cloud provider name to infra config Add a CloudProvider field to the infra config. This value is needed by at least: * kubelet * kube-controller-manager * kube-apiserver * openshift-ingress-operator This change does not intend to address the cloud provider configuration file API. --- config/v1/types_infrastructure.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/v1/types_infrastructure.go b/config/v1/types_infrastructure.go index 234e872c0b8..fff867d7211 100644 --- a/config/v1/types_infrastructure.go +++ b/config/v1/types_infrastructure.go @@ -25,7 +25,13 @@ type InfrastructureSpec struct { } type InfrastructureStatus struct { - // type + // cloudProvider is the IaaS provider that is running the cluster. + // + // Valid values are: + // - aws + // - openstack + // +optional + CloudProvider string `json:"cloudProvider,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object