suppress check error on get
This commit is contained in:
@@ -212,10 +212,7 @@ func (k *KubernetesService) CreateRoleBinding(ctx context.Context, ns string, ro
|
|||||||
// namespace: namespace, service-account, role and role-binding. Idempotent — if
|
// namespace: namespace, service-account, role and role-binding. Idempotent — if
|
||||||
// the namespace already exists the call is a no-op.
|
// the namespace already exists the call is a no-op.
|
||||||
func (k *KubernetesService) ProvisionExecutionNamespace(ctx context.Context, ns string) error {
|
func (k *KubernetesService) ProvisionExecutionNamespace(ctx context.Context, ns string) error {
|
||||||
existing, err := k.GetNamespace(ctx, ns)
|
existing, _ := k.GetNamespace(ctx, ns)
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if existing != nil {
|
if existing != nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user