Eai 1320 update domain#264
Draft
pwistbac wants to merge 12 commits into
Draft
Conversation
…sters in airm api
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.
Domain Update Playbook - Complete Action Summary
Entry Point: update-domain.yaml
Pre-Tasks
Phase 1: Validation (validate.yaml)
Phase 2: Certificates (certificates.yaml)
Display DNS Requirements
- Shows required A records: *.{NEW_DOMAIN} and k8s.{NEW_DOMAIN}
- Shows kaytoo command for silogen.ai domains
Confirm Domain Update
Handle Certificates (based on CERT_OPTION)
If CERT_OPTION = "generate":
- CN: {NEW_DOMAIN}
- SANs: k8s.{NEW_DOMAIN}, kc.{NEW_DOMAIN}, *.{NEW_DOMAIN}
If CERT_OPTION = "provide":
If CERT_OPTION = "cert-manager":
Phase 3: Core Configuration Update (update_config.yaml)
Display Update Summary
Update ConfigMap
- Sets DOMAIN: {NEW_DOMAIN}
Update OpenBao Secret
Update cluster-values Repository (GitOps)
Update Keycloak Clients (update_keycloak.yaml)
- update_client() - updates redirect URIs
- update_client_post_logout_uris() - updates post-logout redirect URIs
- update_client_root_url() - updates rootUrl
- update_client_admin_url() - updates adminUrl
- Gets Keycloak token using client_credentials grant
- Updates each client by looking up UUID by clientId
- Updates: AIRM UI Client, ArgoCD, Gitea, Minio clients
Update AIRM Cluster Records (update_airm_clusters.yaml)
- Gets access token from Keycloak
- Fetches all clusters from /api/clusters
- For each cluster:
Trigger ArgoCD Sync
- argocd.argoproj.io/refresh: hard
- bloom.domain.update/timestamp: {timestamp}
Phase 4: Verification (verify.yaml)
If not DRY_RUN:
Display Post-Update Instructions
- Update DNS records
- Wait for ArgoCD sync (5-10 minutes)
- Update external references (kubeconfig, integrations)
- Test application access at new domain
Summary Statistics
Resources Updated:
Jobs Created:
External APIs Used: