v1.2.0 does not respect NAMESPACE variable.
0xc1c4da opened this issue · comments
0xc1c4da commented
Attempting to execute
NAMESPACE=mynamespace
VERSION=v1.2.0
kubectl apply -n "${NAMESPACE}" -f "https://github.com/kiegroup/kogito-cloud-operator/releases/download/${VERSION}/kogito-operator.yaml"
results in the following error
You must pass '--namespace=kogito-operator-system' to perform this operation.
the namespace from the provided object "kogito-operator-system" does not match the namespace "mynamespace".
Using NAMESPACE=kogito-operator-system
results in a valid deloyment
Tarun Khandelwal commented
Hi, @jarradh thank you for opening the issue :)
The YAML installer we have deploys the operator in its own namespace kogito-operator-namespace
and watches all the objects in the whole cluster(cluster-wide deployment). So the NAMESPACE
var is not respected, it is hard-coded in the yaml itself. I agree we need to update our README and describe more about the behaviour of this installation.