Skip to content

Conversation

gacevicljubisa
Copy link
Member

No description provided.

statefulSetsMap := make(map[string]*v1.StatefulSet)

for _, name := range statefulSetNames {
statefulSet, err := c.k8sClient.StatefulSet.Get(ctx, name, namespace)
Copy link
Contributor

Choose a reason for hiding this comment

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

When passing a non-existent StatefulSet, the command triggers a panic error:
./dist/beekeeper nuke --namespace=local --stateful-sets="non-existant-bootnode" --restart-args="bee,start,--config=.bee.yaml"

In this case, the statefulSet is nil, which causes the panic.

Copy link
Member Author

@gacevicljubisa gacevicljubisa Oct 21, 2025

Choose a reason for hiding this comment

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

Thanks. I will make a warning and skip

@gacevicljubisa gacevicljubisa merged commit ca1b14d into master Oct 21, 2025
3 checks passed
@gacevicljubisa gacevicljubisa deleted the nuke-stateful-sets branch October 21, 2025 14:56
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