Skip to content

Commit

Permalink
Bubble ClusterName to top level so that its easily discoverable (stil…
Browse files Browse the repository at this point in the history
…l keep metadata)

Signed-off-by: Rajat Chopra <rchopra@redhat.com>
  • Loading branch information
Rajat Chopra committed Sep 13, 2018
1 parent 533c4e5 commit 5567d3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/asset/installconfig/installconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import (

"github.com/ghodss/yaml"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"github.com/openshift/installer/pkg/asset"
"github.com/openshift/installer/pkg/types"
)
Expand Down Expand Up @@ -49,7 +47,8 @@ func (a *installConfig) Generate(dependencies map[asset.Asset]*asset.State) (*as
ObjectMeta: metav1.ObjectMeta{
Name: clusterName,
},
ClusterID: clusterID,
ClusterName: clusterName,
ClusterID: clusterID,
Admin: types.Admin{
Email: emailAddress,
Password: password,
Expand Down
4 changes: 4 additions & 0 deletions pkg/types/installconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ type InstallConfig struct {
// +optional
metav1.TypeMeta `json:",inline"`

// +optional
metav1.ObjectMeta `json:"metadata"`

// ClusterName is the name of the cluster.
ClusterName string `json:"clusterName"`

// ClusterID is the ID of the cluster.
ClusterID string `json:"clusterID"`

Expand Down

0 comments on commit 5567d3c

Please sign in to comment.