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

ACM-5994 - Detect changes from deployment instead of cached secrets #259

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

o-farag
Copy link
Contributor

@o-farag o-farag commented Jul 28, 2023

Description of the change(s):

  • Compare state of secrets to state of deployment instead of cached secrets to detect changes

Why do we need this PR:

  • Incorrect saving/caching of secrets can cause the operator deployment to be installed with incorrect arguments. This change watches operator deployment args and reinstalls the operator if they differ from expected args. It also removes the intermediate secrets saved in the open-cluster-management-agent-addon namespace

Issue reference:

Test API/Unit - Success

?       github.com/stolostron/hypershift-addon-operator/cmd     [no test files]
ok      github.com/stolostron/hypershift-addon-operator/pkg/agent       14.211s coverage: 71.2% of statements
ok      github.com/stolostron/hypershift-addon-operator/pkg/install     173.372s        coverage: 88.0% of statements
ok      github.com/stolostron/hypershift-addon-operator/pkg/manager     120.100s        coverage: 60.6% of statements
ok      github.com/stolostron/hypershift-addon-operator/pkg/metrics     0.010s  coverage: 100.0% of statements
?       github.com/stolostron/hypershift-addon-operator/pkg/util        [no test files]

@openshift-ci
Copy link

openshift-ci bot commented Jul 28, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci
Copy link

openshift-ci bot commented Jul 28, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: o-farag
Once this PR has been reviewed and has the lgtm label, please assign rokej 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

@o-farag
Copy link
Contributor Author

o-farag commented Jul 28, 2023

/test all

1 similar comment
@o-farag
Copy link
Contributor Author

o-farag commented Jul 28, 2023

/test all

@o-farag
Copy link
Contributor Author

o-farag commented Jul 28, 2023

/retest

1 similar comment
@o-farag
Copy link
Contributor Author

o-farag commented Jul 28, 2023

/retest

@o-farag o-farag marked this pull request as ready for review July 28, 2023 06:26
Signed-off-by: Omar Farag <[email protected]>
@sonarcloud
Copy link

sonarcloud bot commented Jul 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

96.9% 96.9% Coverage
0.0% 0.0% Duplication

@openshift-ci
Copy link

openshift-ci bot commented Jul 28, 2023

@o-farag: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e 8e1ecfd link true /test e2e

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@openshift-merge-robot
Copy link

PR needs rebase.

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.

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

Successfully merging this pull request may close these issues.

2 participants