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

Issue 515: add customized labels support #514

Merged
merged 5 commits into from
Mar 15, 2021

Conversation

realAaronWu
Copy link
Contributor

@realAaronWu realAaronWu commented Mar 10, 2021

Change log description

add controllerPodLabels and segmentStorePodLabels field in the crd, each one is a map with key as the label key and value as the label value.

Purpose of the change

Fixes #515

What the code does

add labels to the controller deployment and pods, and segmentstore sts and pods

How to verify it

deploy pravega with labels set see if labels are attached to pods

Copy link
Contributor

@anishakj anishakj left a comment

Choose a reason for hiding this comment

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

It looks like unit tests are failing. Could you please fix that?

@codecov-io
Copy link

Codecov Report

Merging #514 (d1c4da0) into master (be8bd44) will decrease coverage by 0.03%.
The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #514      +/-   ##
==========================================
- Coverage   71.78%   71.74%   -0.04%     
==========================================
  Files          15       15              
  Lines        3459     3469      +10     
==========================================
+ Hits         2483     2489       +6     
- Misses        870      872       +2     
- Partials      106      108       +2     
Impacted Files Coverage Δ
pkg/apis/pravega/v1beta1/pravegacluster_types.go 25.23% <0.00%> (-0.14%) ⬇️
pkg/controller/pravega/pravega_segmentstore.go 100.00% <ø> (ø)
pkg/apis/pravega/v1beta1/pravega.go 97.72% <100.00%> (+0.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be8bd44...d1c4da0. Read the comment docs.

Signed-off-by: Aaron Wu <[email protected]>
Signed-off-by: Aaron Wu <[email protected]>
Signed-off-by: Aaron Wu <[email protected]>
@realAaronWu realAaronWu force-pushed the feature-add-logging-support branch from e7a5d53 to f79bb56 Compare March 12, 2021 14:42
@realAaronWu realAaronWu changed the title Feature add customized labels support Issue-515 Feature add customized labels support Mar 12, 2021
@realAaronWu realAaronWu changed the title Issue-515 Feature add customized labels support Issue 515: add customized labels support Mar 12, 2021
Copy link
Contributor

@anishakj anishakj left a comment

Choose a reason for hiding this comment

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

LGTM

@anishakj anishakj merged commit c608b78 into pravega:master Mar 15, 2021
CraneShiEMC pushed a commit to CraneShiEMC/pravega-operator that referenced this pull request Mar 16, 2021
* add annotation support

Signed-off-by: Aaron Wu <[email protected]>

* add fields to crds

Signed-off-by: Aaron Wu <[email protected]>

* check nil

Signed-off-by: Aaron Wu <[email protected]>

* add values, update doc, fix UT

Signed-off-by: Aaron Wu <[email protected]>

* add deepcopy generated code

Signed-off-by: Aaron Wu <[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.

Support of customized labels and volume mounts
3 participants