selkies-project / selkies-operator

K8s operator for per-user stateful workloads
https://selkies.io
Apache License 2.0
72 stars 13 forks source link

[Fix] Bug with brokerappconfig added to the cluster but not showing up in App Launcher Portal #52

Closed reisbel closed 2 years ago

reisbel commented 2 years ago

Changes:

[Fix] Bug with the brokerappconfig added to the cluster but not showing up in App Launcher Portal because the bundle source directory does not exist.

Workaround

Deleting the pod-broker pod, after it is auto-created, all bundles are downloaded and the app should be visible in the portal.

How to reproduce it?

Option 1 - Adding and removing brokerappconfig with the same name

  1. Create a brokerappconfig with the name "test" (other text works, too)
  2. See the app in the launcher portal
  3. Delete the brokerappconfig
  4. Don't see the app in the launcher portal
  5. Create a new brokerappconfig with the same name & description (either same or different image)
  6. Don't see the app in the launcher portal

Option 2 - Manually deleting bundle source directory

CTX="REPLACE_WITH_VALID_CONTEXT"
APP_NAME="REPLACE_WITH_VALID_APP_NAME"
POD=$(kubectl --context $CTX get pod -n pod-broker-system -l app=pod-broker --field-selector=status.phase=Running -o jsonpath='{..metadata.name}')
kubectl --context $CTX exec -c app-finder -n pod-broker-system $POD -- rm -Rf apps/$APP_NAME