Skip to content

Commit f123aff

Browse files
committed
Update cloud-provisioner for linode change
Fixes: #140 by removing label prefix, and adding validation on the host name length. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent f0f897b commit f123aff

File tree

3 files changed

+83
-2
lines changed

3 files changed

+83
-2
lines changed

controller.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,9 @@ func getProvisioner(c *Controller) (provision.Provisioner, error) {
684684
case "gce":
685685
provisioner, err = provision.NewGCEProvisioner(c.infraConfig.GetAccessKey())
686686
case "ec2":
687-
provisioner, err = provision.NewEC2Provisioner(c.infraConfig.Region, c.infraConfig.GetAccessKey(), c.infraConfig.GetSecretKey())
687+
// No STS Token can be made available when running in-cluster as a service.
688+
emptySTSToken := ""
689+
provisioner, err = provision.NewEC2Provisioner(c.infraConfig.Region, c.infraConfig.GetAccessKey(), c.infraConfig.GetSecretKey(), emptySTSToken)
688690
case "linode":
689691
provisioner, err = provision.NewLinodeProvisioner(c.infraConfig.GetAccessKey())
690692
case "azure":

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ go 1.15
66

77
require (
88
github.com/aws/aws-sdk-go v1.27.3 // indirect
9-
github.com/inlets/cloud-provision/provision v0.0.0-20210707085044-93cc13af558a
9+
github.com/inlets/cloud-provision v0.5.5
1010
github.com/sethvargo/go-password v0.2.0
1111
k8s.io/api v0.18.3
1212
k8s.io/apimachinery v0.18.3

0 commit comments

Comments
 (0)