Skip to content

Commit

Permalink
Add kubeconfig secret ref in hypershift deployment status
Browse files Browse the repository at this point in the history
Signed-off-by: zhujian <[email protected]>
  • Loading branch information
zhujian7 committed Mar 7, 2022
1 parent f622642 commit bdefe88
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/v1alpha1/hypershiftdeployment_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bdefe88

Please sign in to comment.