Repository navigation
Rework on-cluster manifests [3] #318
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
Open
mclasmeier
wants to merge
15
commits into
main
Choose a base branch
from
mc/dont-use-manifest-on-redeployments-3
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
4b1316e
Discover namespaces for teardown
mclasmeier 713030a
Introduxe new manifest data types.
mclasmeier 88b7bb0
Don't use on-cluster manifest for new deployments.
mclasmeier efcffce
Adjust shell command to new manifest data types.
mclasmeier 9a69aed
Add debug logs to kubectl invocations for easier debugging, only fire…
mclasmeier 61bbc10
json expr fix for discovery
mclasmeier 13fcb66
cmd/deploy.go
mclasmeier 13a39aa
cmd/shell.go
mclasmeier 9e1c18a
internal/manifest/manifest.go
mclasmeier 64ae932
internal/manifest/manifest_integration_test.go
mclasmeier 957252a
cmd/teardown.go
mclasmeier 8c5dddf
internal/deployer/addons.go
mclasmeier a87d714
internal/deployer/deployer.go
mclasmeier b067ad0
internal/k8s/resource.go
mclasmeier 2f957ea
Simplify tests
mclasmeier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔎 Supported by static analysis
Script executed:
Repository: stackrox/roxie
Length of output: 5734
Script executed:
Repository: stackrox/roxie
Length of output: 29730
Script executed:
Repository: stackrox/roxie
Length of output: 35803
Script executed:
Repository: stackrox/roxie
Length of output: 10832
Do not delete Central when add-on teardown fails.
roxie teardownlogs Helm uninstall errors and then deletes the Central CR. If an uninstall fails before removing a release, a repeat teardown finds no Central CR and skipshelm.ListByPrefix, so the release cannot be retried through this path. Return the add-on teardown error and stop Central teardown until all releases uninstall successfully.Suggested fix
if components.IncludesAddOns() { - d.teardownDiscoveredAddOns(ctx) + if err := d.teardownDiscoveredAddOns(ctx); err != nil { + return fmt.Errorf("tearing down add-ons: %w", err) + } }