You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.
This is a child of issue #647.
There is a desire to have the stack controller be in appsody mode or odo mode. The stack controller would only be able to read from the repository type that it is configured for.
Some thoughts about how this can be accomplished (not meant to be demands, just ideas):
It would be good if the stack controller did not have to read the Kabanero CR to figure out what mode it's in. The stack controller has no need for the Kabanero CR today.
One option would be to have the kabanero controller set an environment variable (or some other mark) on the stack controller pod to tell it what mode it should be in. The stack controller can then refuse to act on Stack CRs that are in the wrong mode.
The Kabanero controller will determine what mode the stack controller should be in, by looking at the repositories configuration in the Kabanero CR instance. If there are no repositories configured, it's in odo mode, and if there is at least one repository configured, it is in appsody mode. The reasoning behind this decision is that odo mode will only support a Gitops style configuration where the Stack CR instances are applied from a Gitops repository, rather than being created by the kabanero controller as it is reading a stack hub index.
Care must be taken to ensure the kabanero controller doesn't try to delete Stack CR instances created by the Gitops repository when it is in odo mode. The Stack CR instances created by the Gitops repository should have desiredState: active set in the Stack CR instances. This should cause the Kabanero controller to ignore those instances. We'll need to verify that is the case at some point.
The text was updated successfully, but these errors were encountered:
This is a child of issue #647.
There is a desire to have the stack controller be in
appsody mode
orodo mode
. The stack controller would only be able to read from the repository type that it is configured for.Some thoughts about how this can be accomplished (not meant to be demands, just ideas):
The Kabanero controller will determine what mode the stack controller should be in, by looking at the
repositories
configuration in the Kabanero CR instance. If there are norepositories
configured, it's inodo mode
, and if there is at least one repository configured, it is inappsody mode
. The reasoning behind this decision is thatodo mode
will only support a Gitops style configuration where the Stack CR instances are applied from a Gitops repository, rather than being created by the kabanero controller as it is reading a stack hub index.Care must be taken to ensure the kabanero controller doesn't try to delete Stack CR instances created by the Gitops repository when it is in
odo mode
. The Stack CR instances created by the Gitops repository should havedesiredState: active
set in the Stack CR instances. This should cause the Kabanero controller to ignore those instances. We'll need to verify that is the case at some point.The text was updated successfully, but these errors were encountered: