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

[DCA] [orchestrator] add pv and pvc rbac #365

Merged
merged 2 commits into from
Aug 26, 2021
Merged

Conversation

nammn
Copy link
Contributor

@nammn nammn commented Aug 25, 2021

What does this PR do?

add pv and pvc rbac

Motivation

collect pv and pvc for orchestrator

Additional Notes

Anything else we should know when reviewing?

Describe your test plan

Write there any instructions and details you may have to test your PR.

@nammn nammn requested a review from a team as a code owner August 25, 2021 07:46
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request does not contain a valid label. Please add one of the following labels: bug, enhancement, documentation

@nammn nammn requested a review from a team August 25, 2021 07:47
@nammn nammn added the enhancement New feature or request label Aug 25, 2021
@@ -1359,6 +1359,17 @@ func buildClusterAgentClusterRole(dda *datadoghqv1alpha1.DatadogAgent, name, age
datadoghqv1alpha1.GetVerb,
},
})

// PV and PVC
rbacRules = append(rbacRules, rbacv1.PolicyRule{
Copy link
Collaborator

Choose a reason for hiding this comment

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

it could be good to add unit-test

Copy link
Collaborator

@clamoriniere clamoriniere left a comment

Choose a reason for hiding this comment

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

could you also add RBAC in this file https://github.com/DataDog/datadog-operator/blob/main/controllers/datadogagent_controller.go#L108
like this the Operator RBAC will be automatically generated, to allow him to create the cluster-checks-runner or dca rbac

you will need to run: make generate after updating this file

@nammn nammn added this to the v0.7 milestone Aug 25, 2021
@nammn nammn requested a review from a team as a code owner August 26, 2021 07:40
@clamoriniere clamoriniere changed the base branch from main to v0.7 August 26, 2021 07:41
@clamoriniere clamoriniere removed the request for review from a team August 26, 2021 07:41
@clamoriniere clamoriniere merged commit bf28eca into v0.7 Aug 26, 2021
@clamoriniere clamoriniere deleted the nnguyen/activate-pv-pvc branch August 26, 2021 07:54
@clamoriniere clamoriniere mentioned this pull request Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants