Skip to content

GITOPS-1550 removed unnecessary roles/rolebindings for target namespace #557

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

Conversation

ciiay
Copy link
Contributor

@ciiay ciiay commented Feb 9, 2022

What type of PR is this?

/kind bug

What does this PR do / why we need it:
When creating a namespace with the manage-by label it creates unnecessary dexServer and redisHa roles and roleBindings on the new namespace. The below namespace test doesn't need these roles/rolebindings.

apiVersion: v1
kind: Namespace
metadata:
   name: test
   labels:
     argocd.argoproj.io/managed-by: openshift-gitops

Have you updated the necessary documentation?

  • Documentation update is required by this PR.
  • Documentation has been updated.

Which issue(s) this PR fixes:

Fixes GITOPS-1550

How to test changes / Special notes to the reviewer:

  1. Create a target namespace with managed-by label of the namespace where Argo CD instance is deployed.
  2. Run
    $ oc get roles -n <target-namespace>
    $ oc get rolebindings -n <target-namespace>
  3. Confirm that no dexServer and redisHa roles/rolebindings are listed for the target namespace

Copy link
Collaborator

@iam-veeramalla iam-veeramalla left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks @ciiay

@iam-veeramalla iam-veeramalla added this to the v0.3.0 milestone Feb 11, 2022
@iam-veeramalla iam-veeramalla merged commit 08fbe04 into argoproj-labs:master Feb 11, 2022
wtam2018 added a commit that referenced this pull request Mar 4, 2022
* Improve docs for custom roles feature (#548)

* add route/ingress host to .status (#514)

* fix: argocd-tls-certs-cm is overwritten on any change (#553)

Signed-off-by: iam-veeramalla <[email protected]>

* add docs for host field in .status (#554)

* GITOPS-1550 removed unnecessary roles/rolebindings for target namespace (#557)

* chore(deps): bump github.com/argoproj/argo-cd/v2 from 2.2.2 to 2.2.4 (#560)

Bumps [github.com/argoproj/argo-cd/v2](https://github.com/argoproj/argo-cd) from 2.2.2 to 2.2.4.
- [Release notes](https://github.com/argoproj/argo-cd/releases)
- [Changelog](https://github.com/argoproj/argo-cd/blob/master/CHANGELOG.md)
- [Commits](argoproj/argo-cd@v2.2.2...v2.2.4)

---
updated-dependencies:
- dependency-name: github.com/argoproj/argo-cd/v2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: update operator capabilities level in CSV (#549)

* feat: bump argo cd to version 2.2.5

* feat: update bundle and manifests to v0.3.0

* Update deploy/olm-catalog/argocd-operator/0.2.0/argocd-operator.v0.2.0.clusterserviceversion.yaml

Co-authored-by: jannfis <[email protected]>

* Update config/manifests/bases/argocd-operator.clusterserviceversion.yaml

Co-authored-by: jannfis <[email protected]>

* Update bundle/manifests/argocd-operator.clusterserviceversion.yaml

Co-authored-by: jannfis <[email protected]>

Co-authored-by: Chetan Banavikalmutt <[email protected]>
Co-authored-by: Regina Scott <[email protected]>
Co-authored-by: Yi Cai <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jaideep Raghunath Rao <[email protected]>
Co-authored-by: William Tam <[email protected]>
Co-authored-by: jannfis <[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