// CreateWorkflowsClient Create a K8s client for workflow resources
CreateWorkflowsClient Create a K8s client for workflow resources
// CreateWorkflowsClient Create a K8s client for workflow resources
func CreateWorkflowsClient() (*rest.RESTClient, error) {
	restClientConfig, err := createRestClientConfig()
	if err != nil {
		return nil, err
	}
	restClientConfig.ContentConfig.GroupVersion = &schema.GroupVersion{
		Group:   workflowsv1.WorkflowsGroupName,
		Version: workflowsv1.WorkflowsGroupVersion,
	}
	restClientConfig.APIPath = "/apis"
	schemeBuilder := runtime.NewSchemeBuilder(addKnownTypes)
	scheme := runtime.NewScheme()
	schemeBuilder.AddToScheme(scheme)
	restClientConfig.NegotiatedSerializer =
		serializer.DirectCodecFactory{CodecFactory: serializer.NewCodecFactory(scheme)}
	return rest.RESTClientFor(restClientConfig)
}
func CreateWorkflowsClient ( ) ( * rest . RESTClient , error ) { restClientConfig , err := createRestClientConfig ( ) if err != nil { return nil , err } restClientConfig . ContentConfig . GroupVersion = & schema . GroupVersion { Group : workflowsv1 . WorkflowsGroupName , Version : workflowsv1 . WorkflowsGroupVersion , } restClientConfig . APIPath = " " schemeBuilder := runtime . NewSchemeBuilder ( addKnownTypes ) scheme := runtime . NewScheme ( ) schemeBuilder . AddToScheme ( scheme ) restClientConfig . NegotiatedSerializer = serializer . DirectCodecFactory { CodecFactory : serializer . NewCodecFactory ( scheme ) } return rest . RESTClientFor ( restClientConfig ) }
CreateWorkflowsClient Create a K8s client for workflow resources
CreateWorkflowsClient Create a K8s client for workflow resources