// CreateWorkflowResourceDefinitionIfRequired Create the workflows CRD if it doesn't already exist
CreateWorkflowResourceDefinitionIfRequired Create the workflows CRD if it doesn't already exist
// CreateWorkflowResourceDefinitionIfRequired Create the workflows CRD if it doesn ' t already exist
func CreateWorkflowResourceDefinitionIfRequired(definitions extensionsclient.CustomResourceDefinitionInterface) error {
	_, err := definitions.Get(workflowsv1.WorkflowsCustomResource, metav1.GetOptions{})
	if err != nil {
		log.Debugf("Creating custom resource definition for workflows in Kubernetes")
		err = createWorkflowResourceDefinition(definitions)
		if err != nil {
			return err
		}
	}
	return nil
}
func CreateWorkflowResourceDefinitionIfRequired ( definitions extensionsclient . CustomResourceDefinitionInterface ) error { _ , err := definitions . Get ( workflowsv1 . WorkflowsCustomResource , metav1 . GetOptions { } ) if err != nil { log . Debugf ( " " ) err = createWorkflowResourceDefinition ( definitions ) if err != nil { return err } } return nil }
CreateWorkflowResourceDefinitionIfRequired Create the workflows CRD if it doesn't already exist
CreateWorkflowResourceDefinitionIfRequired Create the workflows CRD if it doesn ' t already exist