Closed
Conversation
added 15 commits
February 13, 2026 12:17
Three reusable roles for user provisioning on shared OCP clusters: - ocp4_workload_ocpsandbox_keycloak_user: kubeconfig, cluster discovery, Keycloak user creation - ocp4_workload_ocpsandbox_gitea_user: Gitea user and repo migration - ocp4_workload_ocpsandbox_argocd_user: ArgoCD AppProject with RBAC
Use KUBECONFIG env var when set, fall back to ~/.kube/config. Allows concurrent cluster testing without clobbering default kubeconfig.
Deploys a per-user Gitea instance via the Gitea operator CR. The operator is installed at the cluster level by the cluster provisioner; this role creates the CR in the user's sandbox namespace, waits for route and API readiness, and exports gitea_url and gitea_internal_url facts for downstream roles.
Sandbox API may not create the gitea namespace. Create it if missing before deploying the Gitea CR.
The AppProject destination pattern *-{username} doesn't match
namespace names created by the sandbox API (sandbox-{guid}-{suffix}).
Add an extra_destinations list variable so catalog items can
explicitly allow additional namespaces that don't follow the
default naming pattern.
Namespaces are now managed by the sandbox API via cluster_condition. The gitea namespace is requested as a sandbox entry and created/deleted automatically by the sandbox API. No fallback creation or explicit deletion needed in the role.
…, set gitea_user namespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ocp4_workload_ocpsandbox_keycloak_user— kubeconfig setup, cluster discovery, Keycloak user creationocp4_workload_ocpsandbox_gitea_user— Gitea user creation, repository migrationocp4_workload_ocpsandbox_argocd_user— ArgoCD AppProject with user RBACTest plan