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

Add support for replacing outdated CSI holder pods #154

Merged
merged 2 commits into from
Feb 26, 2024

Conversation

simu
Copy link
Member

@simu simu commented Feb 22, 2024

We check the holder pod's metadata.labels.pod-template-generation against the DaemonSet's metadata.generation to identify outdated pods.

The script waits until the node is drained by waiting until no non-daemonset pods are running and then deletes all holder pods on the node if any were identified as outdated.

Checklist

  • The PR has a meaningful title. It will be used to auto-generate the
    changelog.
    The PR has a meaningful description that sums up the change. It will be
    linked in the changelog.
  • PR contains a single logical change (to build a better changelog).
  • Categorize the PR by adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.

@simu simu added the enhancement New feature or request label Feb 22, 2024
@simu simu changed the title Implement support for replacing outdated CSI holder pods Add support for replacing outdated CSI holder pods Feb 22, 2024
@simu simu force-pushed the feat/restart-holder-ds branch 6 times, most recently from bc9534d to 385c133 Compare February 23, 2024 12:42
@simu simu marked this pull request as ready for review February 23, 2024 16:31
@simu simu requested a review from a team February 23, 2024 16:31
We check the holder pod's `metadata.labels.pod-template-generation`
against the DaemonSet's `metadata.generation` to identify outdated pods.

The script waits until the node is drained by waiting until no
non-daemonset pods are running and then deletes all holder pods on the
node if any were identified as outdated.
Apparently the value of that label isn't allowed to contain `:` even
though `:` is a valid character for `ClusterRole` and
`ClusterRoleBinding` resources.
@simu simu merged commit fe79022 into master Feb 26, 2024
10 checks passed
@simu simu deleted the feat/restart-holder-ds branch February 26, 2024 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants