fix: update providerid prefix for aws
This PR updates the ProviderID format for aws resources. There seems to be a bug when using Talos CCM (which consumes this value from Talos) because the format is `aws://x/y` (two slashes) vs. the expected `aws:///x/y` (three slashes) that is set with the AWS CCM code [here](d055109367/pkg/providers/v1/instances.go (L47-L53)
). Setting only two slashes causes important software in the workload cluster to fail, specifically cluster-autoscaler. The regex they use for pulling providerID is [here](702e9685d6/cluster-autoscaler/cloudprovider/aws/aws_cloud_provider.go (L195)
). Signed-off-by: Spencer Smith <spencer.smith@talos-systems.com>
This commit is contained in:
parent
ac2aff5cc5
commit
bcf2845307
@ -85,7 +85,7 @@ func (a *AWS) ParseMetadata(metadata *MetadataConfig) (*runtime.PlatformNetworkC
|
||||
Zone: metadata.Zone,
|
||||
InstanceType: metadata.InstanceType,
|
||||
InstanceID: metadata.InstanceID,
|
||||
ProviderID: fmt.Sprintf("aws://%s/%s", metadata.Zone, metadata.InstanceID),
|
||||
ProviderID: fmt.Sprintf("aws:///%s/%s", metadata.Zone, metadata.InstanceID),
|
||||
Spot: metadata.InstanceLifeCycle == "spot",
|
||||
}
|
||||
|
||||
|
@ -16,4 +16,4 @@ metadata:
|
||||
region: us-east-1
|
||||
zone: us-east-1a
|
||||
instanceId: i-0a0a0a0a0a0a0a0a0
|
||||
providerId: aws://us-east-1a/i-0a0a0a0a0a0a0a0a0
|
||||
providerId: aws:///us-east-1a/i-0a0a0a0a0a0a0a0a0
|
||||
|
Loading…
Reference in New Issue
Block a user