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

fix: add patch verb to deployment resource #2407

Merged
merged 2 commits into from
Nov 14, 2022
Merged

Conversation

tukak
Copy link
Contributor

@tukak tukak commented Nov 11, 2022

Dashboard fails with failed restoring revision 21: deployments.apps "ourapp" is forbidden: User "system:serviceaccount:argo-rollouts:argo-rollouts-dashboard" cannot patch resource "deployments" in API group "apps" in the namespace "ournamespace" when trying to rollback Rollout defined using existing Deployment and workloadRef config. Adding patch verb for deployments should fix it.

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional with a list of types and scopes found here, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed my commits with DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

@codecov
Copy link

codecov bot commented Nov 11, 2022

Codecov Report

Base: 81.55% // Head: 81.55% // No change to project coverage 👍

Coverage data is based on head (1f1bcfe) compared to base (09a045a).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2407   +/-   ##
=======================================
  Coverage   81.55%   81.55%           
=======================================
  Files         124      124           
  Lines       18931    18931           
=======================================
  Hits        15439    15439           
  Misses       2702     2702           
  Partials      790      790           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 11, 2022

Go Published Test Results

1 798 tests   1 798 ✔️  2m 30s ⏱️
   102 suites         0 💤
       1 files           0

Results for commit 1f1bcfe.

♻️ This comment has been updated with latest results.

@tukak tukak changed the title Add patch verb to deployment resource fix: add patch verb to deployment resource Nov 11, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 11, 2022

E2E Tests Published Test Results

    2 files      2 suites   1h 40m 26s ⏱️
  89 tests   81 ✔️ 3 💤 5
186 runs  172 ✔️ 6 💤 8

For more details on these failures, see this check.

Results for commit 1f1bcfe.

♻️ This comment has been updated with latest results.

Dashboard fails with ```failed restoring revision 21: deployments.apps "ourapp" is forbidden: User "system:serviceaccount:argo-rollouts:argo-rollouts-dashboard" cannot patch resource "deployments" in API group "apps" in the namespace "ournamespace"``` when trying to rollback `Rollout` defined using existing `Deployment` and `workloadRef` config.
Adding `patch` verb for `deployments` should fix it.

Signed-off-by: tukak <[email protected]>
@zachaller
Copy link
Collaborator

Can you run make codegen that is why the test is not passing

@zachaller zachaller added this to the v1.4 milestone Nov 12, 2022
@sonarcloud
Copy link

sonarcloud bot commented Nov 14, 2022

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@tukak
Copy link
Contributor Author

tukak commented Nov 14, 2022

@zachaller thanks for the hint, it passes now

@zachaller zachaller merged commit 22ff2c4 into argoproj:master Nov 14, 2022
@tukak tukak deleted the patch-1 branch November 14, 2022 15:01
thedevelopnik pushed a commit to thedevelopnik/argo-rollouts that referenced this pull request Nov 17, 2022
* Add patch verb to deployment resource

Dashboard fails with ```failed restoring revision 21: deployments.apps "ourapp" is forbidden: User "system:serviceaccount:argo-rollouts:argo-rollouts-dashboard" cannot patch resource "deployments" in API group "apps" in the namespace "ournamespace"``` when trying to rollback `Rollout` defined using existing `Deployment` and `workloadRef` config.
Adding `patch` verb for `deployments` should fix it.

Signed-off-by: tukak <[email protected]>

* Generate dashboard-manifest.yaml
Signed-off-by: tukak <[email protected]>

Signed-off-by: tukak <[email protected]>
Signed-off-by: Dave Sudia <[email protected]>
jandersen-plaid pushed a commit to jandersen-plaid/argo-rollouts that referenced this pull request Nov 26, 2022
* Add patch verb to deployment resource

Dashboard fails with ```failed restoring revision 21: deployments.apps "ourapp" is forbidden: User "system:serviceaccount:argo-rollouts:argo-rollouts-dashboard" cannot patch resource "deployments" in API group "apps" in the namespace "ournamespace"``` when trying to rollback `Rollout` defined using existing `Deployment` and `workloadRef` config.
Adding `patch` verb for `deployments` should fix it.

Signed-off-by: tukak <[email protected]>

* Generate dashboard-manifest.yaml
Signed-off-by: tukak <[email protected]>

Signed-off-by: tukak <[email protected]>
Gallardot pushed a commit to Gallardot/argo-rollouts that referenced this pull request Nov 27, 2022
* Add patch verb to deployment resource

Dashboard fails with ```failed restoring revision 21: deployments.apps "ourapp" is forbidden: User "system:serviceaccount:argo-rollouts:argo-rollouts-dashboard" cannot patch resource "deployments" in API group "apps" in the namespace "ournamespace"``` when trying to rollback `Rollout` defined using existing `Deployment` and `workloadRef` config.
Adding `patch` verb for `deployments` should fix it.

Signed-off-by: tukak <[email protected]>

* Generate dashboard-manifest.yaml
Signed-off-by: tukak <[email protected]>

Signed-off-by: tukak <[email protected]>
Signed-off-by: Gallardot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants