//GetMissingGVS gets the missing GVs
GetMissingGVS gets the missing GVs
// GetMissingGVS gets the missing GVs
func GetMissingGVS(cfg *rest.Config) (missingGVS []schema.GroupVersion, err error) {
	log.Info("Get missing GVS")
	missingGVS = make([]schema.GroupVersion, 0)
	c, err := discovery.NewDiscoveryClientForConfig(cfg)
	if err != nil {
		return missingGVS, err
	}
	for _, atmf := range AddToManagerFuncs {
		for _, gv := range atmf.MandatoryGroupVersions {
			err := discovery.ServerSupportsVersion(c, gv)
			if err != nil {
				log.Info(fmt.Sprintf("%s-%s is missing", gv.Group, gv.Version))
				missingGVS = append(missingGVS, gv)
			}
		}
	}
	return missingGVS, nil
}
func GetMissingGVS ( cfg * rest . Config ) ( missingGVS [ ] schema . GroupVersion , err error ) { log . Info ( " " ) missingGVS = make ( [ ] schema . GroupVersion , 0 ) c , err := discovery . NewDiscoveryClientForConfig ( cfg ) if err != nil { return missingGVS , err } for _ , atmf := range AddToManagerFuncs { for _ , gv := range atmf . MandatoryGroupVersions { err := discovery . ServerSupportsVersion ( c , gv ) if err != nil { log . Info ( fmt . Sprintf ( " " , gv . Group , gv . Version ) ) missingGVS = append ( missingGVS , gv ) } } } return missingGVS , nil }
GetMissingGVS gets the missing GVs
GetMissingGVS gets the missing GVs