Skip to content

Commit

Permalink
Merge pull request #1099 from tomassedovic/fix-openstack-credentials-…
Browse files Browse the repository at this point in the history
…name

openstack: fix the openstack creds secret name
  • Loading branch information
openshift-merge-robot committed Jan 31, 2019
2 parents 9f73958 + a9d730b commit 749d9e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
{{- if .CloudCreds.AWS}}
name: aws-creds
{{- else if .CloudCreds.OpenStack}}
name: openstack-creds
name: openstack-credentials
{{- end}}
data:
{{- if .CloudCreds.AWS}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ rules:
{{- if .CloudCreds.AWS}}
resourceNames: ["aws-creds"]
{{- else if .CloudCreds.OpenStack}}
resourceNames: ["openstack-creds"]
resourceNames: ["openstack-credentials"]
{{- end}}
verbs: ["get"]
7 changes: 5 additions & 2 deletions pkg/asset/machines/openstack/machines.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ import (
"github.com/openshift/installer/pkg/types/openstack"
)

const cloudsSecret = "openstack-credentials"
const (
cloudsSecret = "openstack-credentials"
cloudsSecretNamespace = "kube-system"
)

// Machines returns a list of machines for a machinepool.
func Machines(clusterID string, config *types.InstallConfig, pool *types.MachinePool, osImage, role, userDataSecret string) ([]clusterapi.Machine, error) {
Expand Down Expand Up @@ -81,7 +84,7 @@ func provider(clusterID, clusterName string, platform *openstack.Platform, mpool
},*/
Image: osImage,
CloudName: platform.Cloud,
CloudsSecret: &corev1.SecretReference{Name: cloudsSecret},
CloudsSecret: &corev1.SecretReference{Name: cloudsSecret, Namespace: cloudsSecretNamespace},
UserDataSecret: &corev1.SecretReference{Name: userDataSecret},
Networks: []openstackprovider.NetworkParam{
{
Expand Down

0 comments on commit 749d9e5

Please sign in to comment.