Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Add ability to attach additional labels to NiFi pods #149

Open
mh013370 opened this issue Nov 4, 2021 · 0 comments
Open

Add ability to attach additional labels to NiFi pods #149

mh013370 opened this issue Nov 4, 2021 · 0 comments
Assignees
Labels
community enhancement New feature or request
Milestone

Comments

@mh013370
Copy link
Contributor

mh013370 commented Nov 4, 2021

Feature Request

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like to see
I'd like to attach arbitrary labels to pods that nifikop creates. Specifically, i'd like to label pods with meaningful things as a means to select pods for log aggregation via https://rancher.com/docs/rancher/v2.6/en/logging/

For example:

apiVersion: nifi.orange.com/v1alpha1
kind: NifiCluster
metadata:
  name: simplenifi
spec:
  ...
  pod:
    labels:
      specific-pod-label: "abc"
  nodeConfigGroup:
    default_group:
      nodeLabels:
        my-special-label: "true"
  ...

Describe alternatives you've considered
Annotations can't be used as pod selectors and the only labels applied to the pods nifikop creates match the name of the NiFiCluster CRD under the label nifi_cr. Otherwise, there's not a label that distinguishes multiple nifi clusters deployed by nifikop.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
community enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants