Skip to content

Commit

Permalink
karpenter-ec2: take cluster sg as a single string instead of sequence
Browse files Browse the repository at this point in the history
The cluster security group is a singular value we pass from the EKS
resource agent to the EC2 karpenter agent config.
  • Loading branch information
etungsten committed Sep 19, 2023
1 parent f98c337 commit cf63222
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ impl Create for Ec2KarpenterCreator {
.value(&spec.configuration.cluster_name)
.build(),
)
.set_resources(Some(spec.configuration.cluster_sg.clone()))
.set_resources(Some(vec![spec.configuration.cluster_sg.clone()]))
.send()
.await
.context(resources, "Unable to tag cluster's security groups")?;
Expand Down
2 changes: 1 addition & 1 deletion bottlerocket/types/src/agent_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ pub struct Ec2KarpenterConfig {
pub endpoint: String,

/// The cluster security group
pub cluster_sg: Vec<String>,
pub cluster_sg: String,

/// The device mappings used for karpenter provisioning
#[serde(default)]
Expand Down

0 comments on commit cf63222

Please sign in to comment.