cloud-provider-aws icon indicating copy to clipboard operation
cloud-provider-aws copied to clipboard

Extract fargate related code into a standalone file

Open dims opened this issue 1 year ago • 8 comments

Fargate Node is a "variant" of regular EC2 nodes and needs special processing, originally the code for handling this variant was sprinkled across the code base. In this PR, we split it out behind the Variant interface and it also gets registered using RegisterVariant when the package is imported explicitly. For now this is good enough to inspect how the code is different for this variation of the regular code as well as make changes if/when needed. We can even figure out how to use tags to build aws-cloud-controller-manager without this variant getting registered for example for CAPA or kops etc. If in the future there is a need for something other variant, we can cleanly drop in another package if needed similar to how we do this for fargate.

NOTE: design is based on how we implemented support for different container runtimes in cadvisor: https://github.com/google/cadvisor/tree/master/container

dims avatar May 17 '24 02:05 dims

This issue is currently awaiting triage.

If cloud-provider-aws contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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-sigs/prow repository.

k8s-ci-robot avatar May 17 '24 02:05 k8s-ci-robot

@dims You will probably need to rebase to fix govulncheck.

hakman avatar May 17 '24 10:05 hakman

@dims You will probably need to rebase to fix govulncheck.

thanks @hakman Done!

dims avatar May 17 '24 13:05 dims

/release-note-none

dims avatar May 19 '24 02:05 dims

/kind cleanup

dims avatar May 19 '24 02:05 dims

/assign @hakman @kmala @cartermckinnon /hold

dims avatar May 19 '24 02:05 dims

@dims: GitHub didn't allow me to assign the following users: kmala.

Note that only kubernetes members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. For more information please see the contributor guide

In response to this:

/assign @hakman @kmala @cartermckinnon /hold

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-sigs/prow repository.

k8s-ci-robot avatar May 19 '24 02:05 k8s-ci-robot

Ran a prow test suite against to validate Fargate tests, it was mostly successful with an unrelated test failure. gtg from Fargate side

rsumukha avatar May 23 '24 02:05 rsumukha

/lgtm

kmala avatar May 23 '24 04:05 kmala

@kmala: changing LGTM is restricted to collaborators

In response to this:

/lgtm

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-sigs/prow repository.

k8s-ci-robot avatar May 23 '24 04:05 k8s-ci-robot

/hold cancel

dims avatar May 23 '24 10:05 dims

/lgtm

hakman avatar May 23 '24 14:05 hakman

/approve

hakman avatar May 23 '24 14:05 hakman

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

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

The pull request process is described 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

k8s-ci-robot avatar May 23 '24 14:05 k8s-ci-robot