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

Adjust behavior for pod labels #521

Merged
merged 2 commits into from
Jan 13, 2023
Merged

Conversation

endzyme
Copy link
Contributor

@endzyme endzyme commented Jan 5, 2023

Change log description

Pod labels from the Spec.Pod.Labels were previously not propagated to the StatefulSet.Template.

Purpose of the change

Resolves #511

What the code does

  • Adds the Spec.Pod.Labels to the creation of the StatefulSet template
  • Adds docs to note the differences between the two Label locations in the ZookeeperCluster CRD and denotes priority order

How to verify it

  • Add labels to the Spec.Pod.Labels and expect to have it show up in the pod labels

@codecov
Copy link

codecov bot commented Jan 5, 2023

Codecov Report

Base: 85.11% // Head: 85.12% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (f8b1935) compared to base (8076745).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #521   +/-   ##
=======================================
  Coverage   85.11%   85.12%           
=======================================
  Files          12       12           
  Lines        1612     1613    +1     
=======================================
+ Hits         1372     1373    +1     
  Misses        155      155           
  Partials       85       85           
Impacted Files Coverage Δ
api/v1beta1/zookeepercluster_types.go 98.80% <ø> (ø)
pkg/zk/generators.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Pod labels from the Spec.Pod.Labels were previously not propagated to
the StatefulSet.Template. This change notes the differences between the
two Label locations in the ZookeeperCluster CRD and denotes priority
ordering.

Signed-off-by: Nick Huanca <[email protected]>
@endzyme endzyme force-pushed the fix-pod-label-spec branch from c6736e9 to 4fed284 Compare January 5, 2023 04:39
@amuraru
Copy link
Contributor

amuraru commented Jan 12, 2023

looks good to me.

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 66fcc71 into pravega:master Jan 13, 2023
@endzyme
Copy link
Contributor Author

endzyme commented Jan 15, 2023

Thanks all!

@endzyme
Copy link
Contributor Author

endzyme commented Jan 15, 2023

Any idea when the next release will be?

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.

Pod Labels not applied to StatefulSet
3 participants