func CreateSecurityProfileCRD(config *rest.Config) error {
	client, err := apiextv1client.NewForConfig(config)
	if err != nil {
		return errors.Wrap(err, "error creating apiextensions/v1 client")
	}

	crdClient := client.CustomResourceDefinitions()

	_, err = crdClient.Create(SecurityProfileCRD)
	if err != nil && apierrors.IsAlreadyExists(err) {
		return nil
	} else if err != nil {
		return errors.Wrap(err, "error creating CRD")
	}

	return nil
}
// CreateSecurityProfileCRD - Creates SecurityProfile v1 CRDs
Creates SecurityProfile v1 CRDs
// CreateSecurityProfileCRD - Creates SecurityProfile v1 CRDs
func CreateSecurityProfileCRD(config *rest.Config) error {
	client, err := apiextv1client.NewForConfig(config)
	if err != nil {
		return errors.Wrap(err, "error creating apiextensions/v1 client")
	}
	crdClient := client.CustomResourceDefinitions()
	_, err = crdClient.Create(SecurityProfileCRD)
	if err != nil && apierrors.IsAlreadyExists(err) {
		return nil
	} else if err != nil {
		return errors.Wrap(err, "error creating CRD")
	}
	return nil
}
func CreateSecurityProfileCRD ( config * rest . Config ) error { client , err := apiextv1client . NewForConfig ( config ) if err != nil { return errors . Wrap ( err , " " ) } crdClient := client . CustomResourceDefinitions ( ) _ , err = crdClient . Create ( SecurityProfileCRD ) if err != nil && apierrors . IsAlreadyExists ( err ) { return nil } else if err != nil { return errors . Wrap ( err , " " ) } return nil }
Creates SecurityProfile v1 CRDs
Creates SecurityProfile v1 CRDs