Remove noisy logging

This commit is contained in:
Darren Shepherd 2021-05-20 12:10:28 -07:00
parent dde5805b76
commit 52f86dce9b
2 changed files with 0 additions and 5 deletions

View File

@ -154,7 +154,6 @@ func (h *handler) refreshAll(ctx context.Context) error {
return nil
}
logrus.Info("Refreshing all schemas")
schemas, err := converter.ToSchemas(h.crd, h.client)
if err != nil {
return err

View File

@ -23,8 +23,6 @@ var (
)
func AddDiscovery(client discovery.DiscoveryInterface, schemasMap map[string]*types.APISchema) error {
logrus.Info("Refreshing all schemas")
groups, resourceLists, err := client.ServerGroupsAndResources()
if gd, ok := err.(*discovery.ErrGroupDiscoveryFailed); ok {
logrus.Errorf("Failed to read API for groups %v", gd.Groups)
@ -78,8 +76,6 @@ func refresh(gv schema.GroupVersion, groupToPreferredVersion map[string]string,
}
gvr := gvk.GroupVersion().WithResource(resource.Name)
logrus.Infof("APIVersion %s/%s Kind %s", gvk.Group, gvk.Version, gvk.Kind)
schema := schemasMap[GVKToVersionedSchemaID(gvk)]
if schema == nil {
schema = &types.APISchema{