Skip to content

Conversation

@kevdowney
Copy link
Contributor

@kevdowney kevdowney commented Jul 10, 2025

What type of PR is this?

  • Bug fix (non-breaking change which fixes an issue)
  • Feature/Enhancement (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes)
  • Performance improvement
  • Test updates
  • CI/CD related changes
  • Dependency upgrade

Description

Fixes issue where IGs using LaunchTemplates may inherit InstanceMetadataTags="enabled" property as an account setting but it won't work for Kubernetes Nodes due to a restriction of using "/" characters which conflicts with kubernetes.io/cluster/<clustername> tagging.

This change will always set InstanceMetadataTags as "disabled"

Related issue(s)

High-level overview of changes

Testing performed

Checklist

  • I've read the CONTRIBUTING doc
  • I've added/updated tests that prove my fix is effective or that my feature works
  • I've added necessary documentation (if appropriate)
  • I've run make test locally and all tests pass
  • I've signed-off my commits with git commit -s for DCO verification
  • I've updated any relevant documentation
  • Code follows the style guidelines of this project

Additional information

@kevdowney kevdowney requested review from a team as code owners July 10, 2025 04:44
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.66%. Comparing base (37a9535) to head (6f155f0).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #503      +/-   ##
==========================================
+ Coverage   46.57%   46.66%   +0.08%     
==========================================
  Files          40       40              
  Lines        7094     7096       +2     
==========================================
+ Hits         3304     3311       +7     
+ Misses       3632     3627       -5     
  Partials      158      158              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

properties:
configuration:
properties:
nodeConfig:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we removing nodeConfig

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is being removed by generate, make manifests. I asked @estela-ramirez and she confirmed we don't need this.

HttpEndpoint: aws.String(input.HttpEndpoint),
HttpPutResponseHopLimit: aws.Int64(input.HttpPutHopLimit),
HttpTokens: aws.String(input.HttpTokens),
InstanceMetadataTags: aws.String("disabled"), // set disabled by default
Copy link
Contributor

@vgunapati vgunapati Jul 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need update CRD in instancemgr.keikoproj.io_instancegroups.yaml

                      metadataOptions:
                        properties:
                          httpEndpoint:
                            type: string
                          httpPutHopLimit:
                            format: int64
                            type: integer
                          httpTokens:
                            type: string
                        type: object

Copy link
Contributor Author

@kevdowney kevdowney Jul 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, we do not expose this for configuration in IG spec (input), it's hard-coded as "disabled" only

@kevdowney kevdowney merged commit 446043e into keikoproj:master Jul 15, 2025
7 checks passed
@kevdowney kevdowney deleted the fix-instancemetadatatags branch July 15, 2025 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants