Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenShift Elastisearch Operator => 'namespaces "openshift-operators-redhat" not found' error #54

Closed
sjbylo opened this issue Sep 7, 2021 · 3 comments

Comments

@sjbylo
Copy link

sjbylo commented Sep 7, 2021

  1. Getting error:
$ oc apply -k https://github.com/redhat-cop/gitops-catalog/elastisearch-operator/overlays/stable
Error from server (NotFound): error when creating "https://github.com/redhat-cop/gitops-catalog/elastisearch-operator/overlays/stable": namespaces "openshift-operators-redhat" not found

Works if you change the namespace by removing "-redhat" from all the following files:

gitops-catalog/elastisearch-operator/overlays/stable/kustomization.yaml
gitops-catalog/elastisearch-operator//overlays/5.0/kustomization.yaml
gitops-catalog/elastisearch-operator//overlays/4.6/kustomization.yaml
gitops-catalog/elastisearch-operator//base/kustomization.yaml
gitops-catalog/elastisearch-operator//base/elastisearch-subscription.yaml
  1. Also, suggest to rename the dir from "elastisearch" to "elasticsearch" (add the 'c')
@sjbylo sjbylo changed the title OpenShift Elastisearch Operator => "namespaces "openshift-operators-redhat" not found" error OpenShift Elastisearch Operator => 'namespaces "openshift-operators-redhat" not found' error Sep 7, 2021
@pittar
Copy link
Collaborator

pittar commented Sep 8, 2021

Thanks @sjbylo

  1. It looks like the base kustomization.yaml file specifies the namespace openshift-operators-redhat (as recommended by the operator install instructions), however, there is no namespace yaml file provided. I think it would be best to include the namespace resource in the base dir, since it is the recommended namespace. For now, you can pre-create the openshift-operators-redhat namespace, or include a namespace resource in your own repo and simply include the catalog overlay as a base in your kustomization.yaml file.

  2. I agree, the directory name should be updated to include the c.

I'll make the updates, test them out, then submit a PR.

@pittar
Copy link
Collaborator

pittar commented Sep 8, 2021

@sjbylo PR for part 1 of this issue:
#55

@pittar
Copy link
Collaborator

pittar commented Sep 21, 2021

Fixed with PR #60

Next step will be rename the base folder. There's another issue opened for that, so closing this one.

@pittar pittar closed this as completed Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants