Fix comment.

This commit is contained in:
Michael Lipp 2023-08-09 13:41:19 +02:00
parent cc77a81f8e
commit b79ddcf05c

View file

@ -105,7 +105,7 @@ public class VmWatcher extends Component {
// Get existing CRs (VMs) // Get existing CRs (VMs)
Set<String> known = new HashSet<>(); Set<String> known = new HashSet<>();
for (var version : vmOpApiVersions) { for (var version : vmOpApiVersions) {
// Start a watcher for each existing CRD version. // Get all known CR instances.
coa.getAPIResources(VM_OP_GROUP, version) coa.getAPIResources(VM_OP_GROUP, version)
.getResources().stream() .getResources().stream()
.filter(r -> Constants.VM_OP_KIND_VM.equals(r.getKind())) .filter(r -> Constants.VM_OP_KIND_VM.equals(r.getKind()))