// GetOrCreateNamespace gets or creates namespace unless namespace exists
GetOrCreateNamespace gets or creates namespace unless namespace exists
// GetOrCreateNamespace gets or creates namespace unless namespace exists
func (m *AppManager) GetOrCreateNamespace() (*apiv1.Namespace, error) {
	namespaceClient := m.client.Namespaces()
	ns, err := namespaceClient.Get(m.namespace, metav1.GetOptions{})
	if err != nil && errors.IsNotFound(err) {
		obj := buildNamespaceObject(m.namespace)
		ns, err = namespaceClient.Create(obj)
		return ns, err
	}
	return ns, err
}
func ( m * AppManager ) GetOrCreateNamespace ( ) ( * apiv1 . Namespace , error ) { namespaceClient := m . client . Namespaces ( ) ns , err := namespaceClient . Get ( m . namespace , metav1 . GetOptions { } ) if err != nil && errors . IsNotFound ( err ) { obj := buildNamespaceObject ( m . namespace ) ns , err = namespaceClient . Create ( obj ) return ns , err } return ns , err }
GetOrCreateNamespace gets or creates namespace unless namespace exists
GetOrCreateNamespace gets or creates namespace unless namespace exists