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

[Docs] Clarify node-labels are additive or destructive #949

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

addyess
Copy link
Contributor

@addyess addyess commented Jan 10, 2025

Overview

Indicate to users that the charm config node-labels is both additive and destructive and can be used for either purpose.

@addyess addyess requested a review from a team as a code owner January 10, 2025 22:20
@addyess addyess changed the title Clarify node-labels are additive or destructive [Docs] Clarify node-labels are additive or destructive Jan 10, 2025
@addyess
Copy link
Contributor Author

addyess commented Jan 10, 2025

This may need a troubleshooting page on its own. Right @nhennigan ?

Copy link
Contributor

@bschimke95 bschimke95 left a comment

Choose a reason for hiding this comment

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

Generally LGTM, minor comments and questions.

# Add/Remove custom node labels
# Using <key>=<value> one can ensure the label is added to all the nodes of this application
# Using <key>=- one can ensure the label is removed from all the nodes of this application
node-labels: "environment=production zone=us-east-1 node-role.kubernetes.io/worker=-"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand the use-case of the removal syntax. Could you elaborate on why this is needed?

A node-label that is not defined here is not set as part of the bootstrapping process. Why/from where should a node get the labels in that phase?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, do we apply those node-labels on top of the default labels?

# Troubleshooting

This page provides techniques for troubleshooting common {{product}}
issues dealing specifically with the charm
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Missing . at the end




<!-- LINKS -->
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I guess we don't need that.

issues dealing specifically with the charm


## Adjusting kubernetes node labels
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Kubernetes?

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.

2 participants