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

feat: add exporter rbac #246

Merged
merged 6 commits into from
Aug 22, 2023
Merged

feat: add exporter rbac #246

merged 6 commits into from
Aug 22, 2023

Conversation

kqzh
Copy link
Contributor

@kqzh kqzh commented Aug 16, 2023

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

Description:

support metrics filter

How do you solve it?

Special notes for your reviewer, ex. impact of this fix, design document, etc:

@kqzh kqzh requested review from MegaByte875 and veezhang August 16, 2023 09:09
@veezhang
Copy link
Contributor

So the operator has permission to create rbac? Is this appropriate?

)

func (e *nebulaExporter) checkExporterRBAC(nc *v1alpha1.NebulaCluster) error {
if err := e.createServiceAccount(nc); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

The rbac of operaotor seems not to be updated, because you need new permissions?

Copy link
Contributor

@MegaByte875 MegaByte875 left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 227 to 231
Collect string `json:"collect,omitempty"`

// Ingore means the regex to ignore metrics
// +optional
Ignore string `json:"ignore,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

I think CollectedRegex and IgnoredRegex more appropriate

@MegaByte875 MegaByte875 merged commit 0137212 into vesoft-inc:master Aug 22, 2023
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.

Exporter does not work on k8
3 participants