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

Updates controller-runtime, remove WriteSVIDToDir #7214

Merged
merged 14 commits into from Jan 22, 2024

Conversation

JoshVanL
Copy link
Contributor

@JoshVanL JoshVanL commented Nov 17, 2023

PR updates go modules, specifically controller-runtime to v0.16.3 so that the webhook server can be configured to use TLS options. This removes the need for the operator to write the SVID to disk and maintain it in memory.

PR removes the WriteSVIDToDir option from security.

Operator cache has been updated to use new controller-runtime types.

Related: #5756

@JoshVanL JoshVanL requested review from a team as code owners November 17, 2023 22:49
@@ -236,11 +236,12 @@ func (m *AppManager) WaitUntilJobState(isState func(*batchv1.Job, error) bool) (

var lastJob *batchv1.Job

waitErr := wait.PollImmediate(PollInterval, PollTimeout, func() (bool, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

wait.PollImmediate has been deprecated.

Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Attention: 22 lines in your changes are missing coverage. Please review.

Comparison is base (ce2bb47) 62.20% compared to head (c899877) 62.35%.

Files Patch % Lines
pkg/operator/cache/cache.go 72.09% 9 Missing and 3 partials ⚠️
pkg/operator/operator.go 0.00% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7214      +/-   ##
==========================================
+ Coverage   62.20%   62.35%   +0.15%     
==========================================
  Files         240      240              
  Lines       22112    22053      -59     
==========================================
- Hits        13755    13752       -3     
+ Misses       7210     7157      -53     
+ Partials     1147     1144       -3     

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

opts.ByObject = getTransformerFunctions(podSelector)
if len(namespace) > 0 {
opts.DefaultNamespaces = map[string]cache.Config{
namespace: {},
Copy link
Member

Choose a reason for hiding this comment

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

Not use namespace, is it really useful?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this sets the namespaces which should be watched, see here.

@JoshVanL JoshVanL force-pushed the go-mod-update-operator-tls-opts branch from d92e219 to 45fdb31 Compare November 27, 2023 10:53
@JoshVanL JoshVanL added this to the v1.13 milestone Nov 28, 2023
@JoshVanL JoshVanL added the autoupdate DaprBot will keep the Pull Request up to date with master branch label Nov 28, 2023
@JoshVanL JoshVanL force-pushed the go-mod-update-operator-tls-opts branch from 54f77c8 to bcc7f08 Compare December 4, 2023 12:48
@JoshVanL JoshVanL force-pushed the go-mod-update-operator-tls-opts branch from 8b787cd to b353470 Compare December 19, 2023 10:40
@JoshVanL JoshVanL force-pushed the go-mod-update-operator-tls-opts branch from cc2542a to fd36f23 Compare December 27, 2023 16:33
@JoshVanL JoshVanL force-pushed the go-mod-update-operator-tls-opts branch 2 times, most recently from 9c14eb0 to e70d815 Compare January 14, 2024 16:42
@JoshVanL JoshVanL mentioned this pull request Jan 18, 2024
PR updates go modules, specifically controller-runtime to v0.16.3 so
that the webhook server can be configured to use TLS options. This
removes the need for the operator to write the SVID to disk and maintain
it in memory.

PR removes the WriteSVIDToDir option from security.

Operator cache has been updated to use new controller-runtime types.

Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL JoshVanL force-pushed the go-mod-update-operator-tls-opts branch from 8beeee7 to dd3f6b4 Compare January 18, 2024 19:51
@yaron2
Copy link
Member

yaron2 commented Jan 18, 2024

/test-version-skew

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 18, 2024

Dapr Version Skew integration test (control-plane-master - 1.12.4)

🔗 Link to Action run

Commit ref: 5621210

❌ Version Skew tests failed

Please check the logs for details on the error.

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 18, 2024

Dapr Version Skew integration test (dapr-sidecar-master - 1.12.4)

🔗 Link to Action run

Commit ref: 5621210

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 18, 2024

Dapr Version Skew e2e test (dapr-sidecar-master - 1.12.4)

🔗 Link to Action run

Commit ref: 5621210

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 18, 2024

Dapr Version Skew e2e test (control-plane-master - 1.12.4)

🔗 Link to Action run

Commit ref: 5621210

❌ Version Skew tests failed

Please check the logs for details on the error.

@yaron2
Copy link
Member

yaron2 commented Jan 19, 2024

Dapr Version Skew integration test (control-plane-master - 1.12.4)

🔗 Link to Action run

Commit ref: 5621210

❌ Version Skew tests failed

Please check the logs for details on the error.

@JoshVanL see this test failing

@JoshVanL
Copy link
Contributor Author

/version-skew-test

@JoshVanL
Copy link
Contributor Author

/test-version-skew

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 20, 2024

Dapr Version Skew integration test (dapr-sidecar-master - 1.12.4)

🔗 Link to Action run

Commit ref: 880e34e

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 20, 2024

Dapr Version Skew integration test (control-plane-master - 1.12.4)

🔗 Link to Action run

Commit ref: 880e34e

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 20, 2024

Dapr Version Skew e2e test (dapr-sidecar-master - 1.12.4)

🔗 Link to Action run

Commit ref: 880e34e

❌ Version Skew tests failed

Please check the logs for details on the error.

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 20, 2024

Dapr Version Skew e2e test (control-plane-master - 1.12.4)

🔗 Link to Action run

Commit ref: 880e34e

✅ Version Skew tests passed

@JoshVanL
Copy link
Contributor Author

/test-version-skew

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 22, 2024

Dapr Version Skew integration test (dapr-sidecar-master - 1.12.4)

🔗 Link to Action run

Commit ref: c899877

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 22, 2024

Dapr Version Skew e2e test (dapr-sidecar-master - 1.12.4)

🔗 Link to Action run

Commit ref: c899877

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 22, 2024

Dapr Version Skew integration test (control-plane-master - 1.12.4)

🔗 Link to Action run

Commit ref: c899877

✅ Version Skew tests passed

@dapr-bot
Copy link
Collaborator

dapr-bot commented Jan 22, 2024

Dapr Version Skew e2e test (control-plane-master - 1.12.4)

🔗 Link to Action run

Commit ref: c899877

✅ Version Skew tests passed

@yaron2 yaron2 merged commit 53454d0 into dapr:master Jan 22, 2024
20 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autoupdate DaprBot will keep the Pull Request up to date with master branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants