Skip to content

Commit

Permalink
Update cloud-provisioner for linode change
Browse files Browse the repository at this point in the history
Fixes: #140 by removing label prefix, and adding validation
on the host name length.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Aug 26, 2021
1 parent f0f897b commit f123aff
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 2 deletions.
4 changes: 3 additions & 1 deletion controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,9 @@ func getProvisioner(c *Controller) (provision.Provisioner, error) {
case "gce":
provisioner, err = provision.NewGCEProvisioner(c.infraConfig.GetAccessKey())
case "ec2":
provisioner, err = provision.NewEC2Provisioner(c.infraConfig.Region, c.infraConfig.GetAccessKey(), c.infraConfig.GetSecretKey())
// No STS Token can be made available when running in-cluster as a service.
emptySTSToken := ""
provisioner, err = provision.NewEC2Provisioner(c.infraConfig.Region, c.infraConfig.GetAccessKey(), c.infraConfig.GetSecretKey(), emptySTSToken)
case "linode":
provisioner, err = provision.NewLinodeProvisioner(c.infraConfig.GetAccessKey())
case "azure":
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go 1.15

require (
github.com/aws/aws-sdk-go v1.27.3 // indirect
github.com/inlets/cloud-provision/provision v0.0.0-20210707085044-93cc13af558a
github.com/inlets/cloud-provision v0.5.5
github.com/sethvargo/go-password v0.2.0
k8s.io/api v0.18.3
k8s.io/apimachinery v0.18.3
Expand Down
Loading

0 comments on commit f123aff

Please sign in to comment.