Skip to content

Conversation

@eks-distro-pr-bot
Copy link
Contributor

This is an automated cherry-pick of #10338

/assign panktishah26

The custom template in TestTinkerbellCustomTemplateRefSimpleFlow was using
the deprecated STATIC_NETPLAN environment variable approach which was
removed in PR aws#10163. That PR changed the templating logic to directly
configure IPAM using netplan or NetworkManager by referencing the Hardware
object's network metadata.

This commit updates the custom template to:
- Remove STATIC_NETPLAN environment variable
- Add CONTENTS with Go template expressions that access network details
  directly from .Hardware.Interfaces[0].DHCP fields
- Support both VLAN and non-VLAN configurations using conditional logic
- Use netmaskToCIDR template function for proper CIDR notation
- Maintain the custom cexec action for test validation

The updated template now follows the same pattern as the default template
generation in NewDefaultTinkerbellTemplateConfigCreate, specifically
mirroring the withNetplanAction() function for Ubuntu OS family.

Ref: aws#10163
@eks-distro-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign achen1210 for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@eks-distro-bot
Copy link
Collaborator

Hi @eks-distro-pr-bot. Thanks for your PR.

I'm waiting for a aws member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@eks-distro-bot eks-distro-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ok-to-test size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants