mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 06:46:36 +01:00
Merge pull request #8152 from r4f4/capi-aws-imds
CORS-2898: capi/aws: configure IMDS
This commit is contained in:
@@ -85,6 +85,10 @@ func GenerateMachines(clusterID string, in *MachineInput) ([]*asset.RuntimeFile,
|
||||
Encrypted: ptr.To(true),
|
||||
EncryptionKey: mpool.KMSKeyARN,
|
||||
},
|
||||
InstanceMetadataOptions: &capa.InstanceMetadataOptions{
|
||||
HTTPTokens: capa.HTTPTokensState(mpool.EC2Metadata.Authentication),
|
||||
HTTPEndpoint: capa.InstanceMetadataEndpointStateEnabled,
|
||||
},
|
||||
},
|
||||
}
|
||||
awsMachine.SetGroupVersionKind(capa.GroupVersion.WithKind("AWSMachine"))
|
||||
|
||||
Reference in New Issue
Block a user