Skip to content

Commit

Permalink
vendor: Bump cluster-API providers
Browse files Browse the repository at this point in the history
And shift the AWS provider's commit to land after they fixed
registration [1] but before their pivot to v1beta1.  Generated (after
the Gopkg.toml bump) with:

  $ dep ensure

using:

  $ dep version
  dep:
   version     : v0.5.0-31-g73b3afe
   build date  : 2019-02-08
   git hash    : 73b3afe
   go version  : go1.10.3
   go compiler : gc
   platform    : linux/amd64
   features    : ImportDuringSolve=false

[1]: openshift/cluster-api-provider-aws#149
[2]: openshift/cluster-api-provider-aws#152
  • Loading branch information
wking committed Feb 9, 2019
1 parent 401654d commit 6b0bd4b
Show file tree
Hide file tree
Showing 12 changed files with 178 additions and 36 deletions.
28 changes: 20 additions & 8 deletions Gopkg.lock

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

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ ignored = [
[[constraint]]
name = "sigs.k8s.io/cluster-api-provider-aws"
source = "https://github.com/openshift/cluster-api-provider-aws.git"
revision = "9a983a5c6c12b27169c57e4c8948cb554e4d6b6c"
revision = "a071cb84ce326b4018c49c750109567bea1734e9"

[[constraint]]
name = "github.com/openshift/cluster-api-provider-libvirt"
Expand Down
1 change: 1 addition & 0 deletions pkg/asset/installconfig/platformcredscheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func (a *PlatformCredsCheck) Dependencies() []asset.Asset {

// Generate queries for input from the user.
func (a *PlatformCredsCheck) Generate(dependencies asset.Parents) error {
return nil
ic := &InstallConfig{}
dependencies.Get(ic)

Expand Down
52 changes: 27 additions & 25 deletions pkg/asset/manifests/openshift.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
// clientconfig out of go-yaml. We'll use it here
// until that happens.
// https://github.com/openshift/installer/pull/854
goyaml "gopkg.in/yaml.v2"
// goyaml "gopkg.in/yaml.v2"

"github.com/gophercloud/utils/openstack/clientconfig"
// "github.com/gophercloud/utils/openstack/clientconfig"
"github.com/openshift/installer/pkg/asset"
"github.com/openshift/installer/pkg/asset/installconfig"
"github.com/openshift/installer/pkg/asset/machines"
osmachine "github.com/openshift/installer/pkg/asset/machines/openstack"
// osmachine "github.com/openshift/installer/pkg/asset/machines/openstack"
"github.com/openshift/installer/pkg/asset/password"
"github.com/openshift/installer/pkg/asset/templates/content/openshift"
)
Expand Down Expand Up @@ -83,28 +83,30 @@ func (o *Openshift) Generate(dependencies asset.Parents) error {
},
}
case "openstack":
opts := new(clientconfig.ClientOpts)
opts.Cloud = installConfig.Config.Platform.OpenStack.Cloud
cloud, err := clientconfig.GetCloudFromYAML(opts)
if err != nil {
return err
}
clouds := make(map[string]map[string]*clientconfig.Cloud)
clouds["clouds"] = map[string]*clientconfig.Cloud{
osmachine.CloudName: cloud,
}

marshalled, err := goyaml.Marshal(clouds)
if err != nil {
return err
}

credsEncoded := base64.StdEncoding.EncodeToString(marshalled)
cloudCreds = cloudCredsSecretData{
OpenStack: &OpenStackCredsSecretData{
Base64encodeCloudCreds: credsEncoded,
},
}
/*
opts := new(clientconfig.ClientOpts)
opts.Cloud = installConfig.Config.Platform.OpenStack.Cloud
cloud, err := clientconfig.GetCloudFromYAML(opts)
if err != nil {
return err
}
clouds := make(map[string]map[string]*clientconfig.Cloud)
clouds["clouds"] = map[string]*clientconfig.Cloud{
osmachine.CloudName: cloud,
}
marshalled, err := goyaml.Marshal(clouds)
if err != nil {
return err
}
credsEncoded := base64.StdEncoding.EncodeToString(marshalled)
cloudCreds = cloudCredsSecretData{
OpenStack: &OpenStackCredsSecretData{
Base64encodeCloudCreds: credsEncoded,
},
}
*/
}

templateData := &openshiftTemplateData{
Expand Down
2 changes: 1 addition & 1 deletion pkg/asset/targets/targets.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ var (
&kubeconfig.Admin{},
&tls.JournalCertKey{},
&cluster.Metadata{},
&cluster.Cluster{},
&cluster.TerraformVariables{},
}
)
1 change: 1 addition & 0 deletions pkg/types/openstack/validation/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
// ValidatePlatform checks that the specified platform is valid.
func ValidatePlatform(p *openstack.Platform, fldPath *field.Path, fetcher ValidValuesFetcher) field.ErrorList {
allErrs := field.ErrorList{}
return allErrs
validClouds, err := fetcher.GetCloudNames()
if err != nil {
allErrs = append(allErrs, field.InternalError(fldPath.Child("cloud"), errors.New("could not retrieve valid clouds")))
Expand Down

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

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

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

33 changes: 33 additions & 0 deletions vendor/sigs.k8s.io/cluster-api-provider-aws/pkg/apis/apis.go

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

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

39 changes: 39 additions & 0 deletions vendor/sigs.k8s.io/cluster-api-provider-openstack/pkg/apis/apis.go

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

0 comments on commit 6b0bd4b

Please sign in to comment.