Skip to content

remove non existing nodes when deploying cluster configuration#185

Merged
hippogr merged 3 commits into
devfrom
ruigao/cluster-config-remove-nonexisting-nodes
Jun 24, 2026
Merged

remove non existing nodes when deploying cluster configuration#185
hippogr merged 3 commits into
devfrom
ruigao/cluster-config-remove-nonexisting-nodes

Conversation

@hippogr

@hippogr hippogr commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

remove non existing nodes when deploying cluster configuration

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the cluster-configuration deployment script template to avoid failing during node labeling when the cluster configuration references nodes that are no longer present in the Kubernetes cluster.

Changes:

  • Pre-fetches the current node list from the cluster and builds a set of “existing” nodes to gate labeling operations.
  • Skips labeling for missing nodes and emits a warning to stderr when a configured node is not found.
  • Refactors label command generation to use a hostname template variable for readability.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/cluster-configuration/deploy/start.sh.template Outdated
Comment thread src/cluster-configuration/deploy/start.sh.template Outdated
Comment thread src/cluster-configuration/deploy/start.sh.template Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread src/cluster-configuration/deploy/start.sh.template

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread src/cluster-configuration/deploy/start.sh.template

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@hippogr hippogr merged commit 30f88bd into dev Jun 24, 2026
5 checks passed
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.

4 participants