Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

fix logic missing check seed name while choosing shoot #298

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/cmd/operate.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func operate(provider, arguments string) {
checkError(err)
var filteredShoots []gardencorev1beta1.Shoot
for _, s := range shootList.Items {
if s.Name == target.Stack()[2].Name {
if s.Name == target.Stack()[2].Name && *s.Spec.SeedName == target.Stack()[1].Name {
filteredShoots = append(filteredShoots, s)
}
}
Expand Down