diff --git a/api/v1alpha1/hypershiftdeployment_types.go b/api/v1alpha1/hypershiftdeployment_types.go index e6b02b4..fcf9aa0 100644 --- a/api/v1alpha1/hypershiftdeployment_types.go +++ b/api/v1alpha1/hypershiftdeployment_types.go @@ -169,6 +169,16 @@ type HypershiftDeploymentStatus struct { //Show which phase of curation is currently being processed Phase CurrentPhase `json:"phase,omitempty"` + + // KubeConfig is a reference to the secret containing the default kubeconfig + // for the hosted cluster. + // +optional + KubeConfig *corev1.LocalObjectReference `json:"kubeconfig,omitempty"` + + // KubeadminPassword is a reference to the secret that contains the initial + // kubeadmin user password for the hosted cluster. + // +optional + KubeadminPassword *corev1.LocalObjectReference `json:"kubeadminPassword,omitempty"` } // +kubebuilder:object:root=true diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index 8b96d2d..f601f70 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -23,6 +23,7 @@ package v1alpha1 import ( apiv1alpha1 "github.com/openshift/hypershift/api/v1alpha1" + corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -183,6 +184,16 @@ func (in *HypershiftDeploymentStatus) DeepCopyInto(out *HypershiftDeploymentStat (*in)[i].DeepCopyInto(&(*out)[i]) } } + if in.KubeConfig != nil { + in, out := &in.KubeConfig, &out.KubeConfig + *out = new(corev1.LocalObjectReference) + **out = **in + } + if in.KubeadminPassword != nil { + in, out := &in.KubeadminPassword, &out.KubeadminPassword + *out = new(corev1.LocalObjectReference) + **out = **in + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HypershiftDeploymentStatus. diff --git a/config/crd/cluster.open-cluster-management.io_hypershiftdeployments.yaml b/config/crd/cluster.open-cluster-management.io_hypershiftdeployments.yaml index 79d31c4..d041773 100644 --- a/config/crd/cluster.open-cluster-management.io_hypershiftdeployments.yaml +++ b/config/crd/cluster.open-cluster-management.io_hypershiftdeployments.yaml @@ -7220,6 +7220,24 @@ spec: - type type: object type: array + kubeadminPassword: + description: KubeadminPassword is a reference to the secret that contains + the initial kubeadmin user password for the hosted cluster. + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + type: object + kubeconfig: + description: KubeConfig is a reference to the secret containing the + default kubeconfig for the hosted cluster. + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + type: object phase: description: Show which phase of curation is currently being processed type: string