-
Notifications
You must be signed in to change notification settings - Fork 18
feat: Target container #303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #303 +/- ##
==========================================
+ Coverage 65.12% 65.99% +0.86%
==========================================
Files 36 45 +9
Lines 2644 3352 +708
==========================================
+ Hits 1722 2212 +490
- Misses 824 975 +151
- Partials 98 165 +67 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably should have been multiple PRs instead of only one.
We're adding a lot of changes here that aren't necessarily related which makes reviewing fairly difficult.
I'm not seeing anything blocking.
I think we should move away from variable names like m, fn, sp.
It's a lot easier to follow logic if you don't have to scroll up to remember what a variable is supposed to be.
However small var names is the current paradigm of this repo and asking for re-naming on a PR this large is not really realistic.
The only issue is that currently CodeCov is blocking this PR due to missing unit tests.
Once that is sorted I'll give you the 🟢
c870735
to
164556c
Compare
@@ -128,7 +128,7 @@ jobs: | |||
matrix: | |||
# Latest patch version can be found in https://github.com/kubernetes/website/blob/main/content/en/releases/patch-releases.md | |||
# Some versions might not be available yet in https://storage.googleapis.com/kubernetes-release/release/v1.X.Y/bin/linux/amd64/kubelet | |||
k8sVersion: [ "v1.31.1", "v1.30.5", "v1.29.9", "v1.28.14", "v1.27.16", "v1.26.15" ] | |||
k8sVersion: [ "v1.33.1", "v1.32.5", "v1.31.9", "v1.30.13", "v1.29.15", "v1.28.15", "v1.31.1", "v1.30.5", "v1.29.9", "v1.28.14", "v1.27.16", "v1.26.15" ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need to support multiple point version for the same K8s version? If not, we should consider removing the older ones to save on GHA minutes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to remove all the older or unsupported versions, but they are still required pipelines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, let's leave them in on this PR, but as a fast follow we should remove them and update GH.
Description
Type of change
operator:
resources
/ resource requirments on theagent
init container (available asresourceRequirements
)api v1beta1:
api v1beta2:
Add support for targeting a single, a group or all containers based on selectors, in
containerSelector
imageSelector
- target specific containers based on the url for the repositoryenvSelector
- target specific containers based on the env keys and values (ignores entries with .valueFrom
)nameSelector
- target specific containers by name, if it's either a init container or regular containernamesFromPodAnnotation
- target specific containers based on any custom annotation, added in the podAdd support for
imagePullPolicy
on theagent
init containerAdd support for
securityContext
on theagent
init containerAdd support for
resources
/ resource requirments on the health agent init/sidecar container (available asresourceRequirements
)Add support for
imagePullPolicy
on thehealthAgent
init/sidecar containerAdd support for
securityContext
on thehealthAgent
init/sidecar containerReport the observed version in the status when collecting health info
Breaking change (fix or feature that would cause existing functionality to not work as expected)
New feature / enhancement (non-breaking change which adds functionality)
Security fix
Bug fix (non-breaking change which fixes an issue)
Checklist: