Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Test: multiple namespace support in the Kabanero Operator #77

Closed
smcclem opened this issue Oct 1, 2019 · 3 comments
Closed

Test: multiple namespace support in the Kabanero Operator #77

smcclem opened this issue Oct 1, 2019 · 3 comments
Assignees

Comments

@smcclem
Copy link
Member

smcclem commented Oct 1, 2019

kabanero-io/kabanero-operator#196

Pipelines needs to make sure it can deploy an application into any arbitrary namespace, according to the support delivered in issued 196 for the operator.

This should not have an impact, but we need to verify.

@smcclem smcclem self-assigned this Oct 1, 2019
@smcclem
Copy link
Member Author

smcclem commented Oct 3, 2019

I tested the namespace support with the java-spring-boot2 project. I added the namespace metadata to my app-deploy.yaml. The app deploy worked as part of the pipeline run to the correct namespace. However, I did not yet add a target namespace to my kabanero install for the new namespace, and yet the app was still deployed. This might be a operator bug.

[root@periapt1 test]# oc get appsody applications
No resources found.
[root@periapt1 test]# oc project production
Now using project "production" on server "https://periapt1.fyre.ibm.com:8443".
[root@periapt1 test]# oc get appsodyapplications
NAME IMAGE EXPOSED RECONCILED AGE
test2 index.docker.io/smcclem/java-spring-boot2 true 19m
[root@periapt1 test]#

@smcclem
Copy link
Member Author

smcclem commented Oct 4, 2019

Ok, so the tests pass. The issue in the last comment was wrong. The appsody operator had not touched the app deployed into my production namespace. Once I set the target namespace, it all worked.

[root@periapt1 test]# oc get appsodyapplication --all-namespaces=true
NAMESPACE NAME IMAGE EXPOSED RECONCILED AGE
kabanero appsody7 index.docker.io/smcclem/java-microprofile true True 8h
production test2 index.docker.io/smcclem/java-spring-boot2 true True 9h

@nastacio
Copy link

nastacio commented Apr 3, 2020

See issue #290, hardcoding one target namespace in the application code repository is a workaround, not actual support for multiple namespaces.

The same application cannot be deployed to multiple namespaces, at least not without editing the application code repository right before each deployment, which is not realistic.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants