Repository navigation
Add in-place operator upgrade that reuses cluster Secrets - #6
Merged
Merged
Conversation
Existing agents can bump CRDs, the operator Helm chart, and Harbor v* images without re-entering hypervisor tokens.
…ing. Updated the operator installation phases to utilize a new function, completeOperatorInstallFromReuse, which consolidates the logic for reusing operator secrets. This change improves error handling and state management during the installation process. Added tests to ensure the new function behaves correctly when the reinstall flag is not set.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nr cluster operator upgradeto bump hypervisor CRDs, the operator Helm chart, and Harborv*images while reusing existing Kubernetes Secrets (no hypervisor token prompt).nr cluster register --resume --reinstall-operatorfollows the same reuse path unless credentials are passed (that path is for rotating tokens).helm.sh/resource-policy=keep), use--reset-then-reuse-valuesso new chart keys apply, pin VNC to Harbor, and wait for the Proxmox exporter like VF/SVM.Test plan
go test ./internal/install/ ./internal/config/ ./internal/cli/golangci-lint run --timeout=5mnr cluster operator upgrade --dry-runshows--reset-then-reuse-values,image.tag=v0.1.3, Harbor VNC repo,crds.enabled=false, no tokens0.1.3/ imagev0.1.3, operator/exporter/alloy/VNC 1/1 Ready, CRDs annotatedkeep