Skip to content
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

sidecarset support k8s 1.28 sidecarContainers #1613

Merged
merged 1 commit into from
May 10, 2024

Conversation

zmberg
Copy link
Member

@zmberg zmberg commented May 9, 2024

Ⅰ. Describe what this PR does

Currently only support inject sidecarContainers.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it

Ⅳ. Special notes for reviews

@kruise-bot kruise-bot requested review from Fei-Guo and veophi May 9, 2024 10:02
@kruise-bot kruise-bot added the size/L size/L: 100-499 label May 9, 2024
Copy link

codecov bot commented May 9, 2024

Codecov Report

Attention: Patch coverage is 92.59259% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 49.00%. Comparing base (0d0031a) to head (19cace7).
Report is 30 commits behind head on master.

Files Patch % Lines
pkg/control/sidecarcontrol/util.go 66.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1613      +/-   ##
==========================================
+ Coverage   47.91%   49.00%   +1.08%     
==========================================
  Files         162      180      +18     
  Lines       23491    18803    -4688     
==========================================
- Hits        11256     9214    -2042     
+ Misses      11014     8376    -2638     
+ Partials     1221     1213       -8     
Flag Coverage Δ
unittests 49.00% <92.59%> (+1.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

pkg/control/sidecarcontrol/hash.go Show resolved Hide resolved
}
//process imagePullSecrets
sidecarSecrets = append(sidecarSecrets, sidecarSet.Spec.ImagePullSecrets...)
}

sidecarList := sets.NewString()
//process containers
Copy link
Member

Choose a reason for hiding this comment

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

maybe an TODO, implement PodInjectPolicy for initContainers, currently initcontainers only use AfterAppContainer

@zmberg zmberg force-pushed the sidecarset-initcontainer branch from 1762016 to 6c011d0 Compare May 9, 2024 13:08
@kruise-bot kruise-bot added size/XL size/XL: 500-999 and removed size/L size/L: 100-499 labels May 9, 2024
Signed-off-by: liheng.zms <liheng.zms@alibaba-inc.com>
@zmberg zmberg force-pushed the sidecarset-initcontainer branch from 6c011d0 to 19cace7 Compare May 10, 2024 02:30
Copy link
Member

@furykerry furykerry left a comment

Choose a reason for hiding this comment

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

/lgtm

@furykerry
Copy link
Member

/approve

@kruise-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: furykerry

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

@kruise-bot kruise-bot merged commit 1bc8d85 into openkruise:master May 10, 2024
41 checks passed
@zmberg zmberg deleted the sidecarset-initcontainer branch July 25, 2024 08:21
@zmberg
Copy link
Member Author

zmberg commented Jul 25, 2024

#1540

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants