Skip to content

Commit

Permalink
Merge pull request #119825 from Jefftree/add-gv
Browse files Browse the repository at this point in the history
Move adding GroupVersion log until after an update is confirmed
  • Loading branch information
k8s-ci-robot committed Aug 16, 2023
2 parents 03e845f + 49e00e8 commit 47f7570
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -229,7 +229,6 @@ func (rdm *resourceDiscoveryManager) AddGroupVersion(source Source, groupName st
}

func (rdm *resourceDiscoveryManager) addGroupVersionLocked(source Source, groupName string, value apidiscoveryv2beta1.APIVersionDiscovery) {
klog.Infof("Adding GroupVersion %s %s to ResourceManager", groupName, value.Version)

if rdm.apiGroups == nil {
rdm.apiGroups = make(map[groupKey]*apidiscoveryv2beta1.APIGroupDiscovery)
Expand Down Expand Up @@ -273,6 +272,7 @@ func (rdm *resourceDiscoveryManager) addGroupVersionLocked(source Source, groupN
}
rdm.apiGroups[key] = group
}
klog.Infof("Adding GroupVersion %s %s to ResourceManager", groupName, value.Version)

gv := metav1.GroupVersion{Group: groupName, Version: value.Version}
gvKey := groupVersionKey{
Expand Down

0 comments on commit 47f7570

Please sign in to comment.