Skip to content

chore: replace erag label prefixes and the GMC API group with chatbot-toolkit and toolkit-manager - #242

Open
mik-now wants to merge 4 commits into
intel:release-3.1from
mik-now:chore/inference-owner-label
Open

mik-now wants to merge 4 commits into
intel:release-3.1from
mik-now:chore/inference-owner-label

Conversation

@mik-now

@mik-now mik-now commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor
  • meta.erag/* → chatbot-toolkit.intel.com/* (solution-version, restore-resync, has-generated-passwords, password-mappings)
  • Inference model owner label erag.intel.com/managed-by=app_inference_models → toolkit-manager.intel.com/layer=chatbot, matching the platform ownership labels. models.md now names it.
  • GMConnector API group gmc.erag.intel.com → gmc.chatbot-toolkit.intel.com (CRD, RBAC, operator, webhook, APISIX route, pipeline roles, e2e helper), and the config-hash annotation with it
  • erag-metrics-exception → chatbot-toolkit.intel.com/metrics-exception
  • Dropped cleanup only older releases needed: the Grafana SSO removal in app_keycloak_config, and gmc.opea.io in the pipeline teardown and backup profile
  • Hard replace, no backward compatibility, since 3.0 → 3.1 upgrades aren't supported: existing envs' backups, generated-password Secrets, models and GMConnectors keep the old keys
  • The chart and the GMC image need to come from the same build, an older GMC image still watches the old API group

@sys-aibot

sys-aibot commented Dec 2, 2026 •

Copy link
Copy Markdown

Claude finished @mik-now's task in 1m 5s —— View job


Verdict: needs changes

Correctness

  1. deployment/roles/app_password_mgmt/defaults/main.yaml:5-6: on an existing env, a missing local credentials file now means new passwords. lookup.yaml:15 rebuilds default_credentials.yaml from the Secrets labelled managed_secret_label=true. Existing Secrets still carry meta.erag/has-generated-passwords, so the lookup finds nothing. If the env is upgraded from a machine without the old default_credentials.yaml (a new workstation, a CI agent, or a wiped log_dir), app_generate_password creates new passwords. Those no longer match the ones stored in the existing PostgreSQL, Redis and vector-database volumes. The PR body accepts "no backward compatibility", but this is broken credentials on upgrade, not just stale metadata. Either:

    • have lookup.yaml also query the old label once, or
    • document the break in the release notes / upgrade guide (docs/deployment/) as a manual relabel step (kubectl label secret … chatbot-toolkit.intel.com/has-generated-passwords=true, plus the annotation).

    Fix this →

  2. deployment/roles/app_inference_models/defaults/main.yaml:66: on an existing env, teardown leaves models running. teardown.yaml and query_owned.yaml select only by the new label. Models deployed by 3.0 carry erag.intel.com/managed-by=app_inference_models, so an uninstall before any 3.1 install undeploys nothing. reconcile.yaml:64-101 adopts only models that are still listed in inference_models. Old-labelled models that were dropped from the config are never matched as orphans, so they keep holding CPU/GPU cores. At minimum, document this next to item 1.

  3. deployment/backup_profile.yaml:10: pre-3.1 backups can no longer be selected automatically. They are labelled meta.erag/solution-version, and the restore gate picks only backups whose version label matches. Users need --from <name>. docs/deployment/backup-and-restore.md:42-44 should say so.

DRY / minimal code

  1. deployment/roles/app_password_mgmt/tasks/markup.yaml:10-11: these lines repeat defaults/main.yaml:5-6, which is why this PR had to edit both. include_role … tasks_from: markup.yaml already loads the role defaults. Block vars: also take precedence over role defaults, so callers can't override these keys anyway. Drop the two lines.

  2. deployment/roles/app_password_mgmt/tasks/markup.yaml:50: the annotation key is hard-coded instead of using password_mappings_annotation, so the key now lives in a third place. Build it the same way the label is built at line 23: annotations: "{{ {password_mappings_annotation: password_mappings_annotation_value | trim} }}".

    Fix this →

@jpiaseck jpiaseck left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

….1 cleanup

Hard rename, since 3.0 -> 3.1 upgrades are not supported:
- GMConnector API group gmc.erag.intel.com -> gmc.chatbot-toolkit.intel.com
  (CRD, RBAC, operator, webhook, APISIX route, pipeline roles, e2e helper)
- config-hash annotation -> gmc.chatbot-toolkit.intel.com/config-hash
- erag-metrics-exception -> chatbot-toolkit.intel.com/metrics-exception
- models.md names the model owner label

Removed the cleanup earlier releases needed: the Grafana SSO removal in
app_keycloak_config and the gmc.opea.io CRD in teardown and the backup profile.

The chart and the GMC image must come from the same build.

Signed-off-by: Nowicki, Mikolaj <mikolaj.nowicki@intel.com>
@mik-now mik-now changed the title chore: replace erag label prefixes with chatbot-toolkit and toolkit-manager chore: replace erag label prefixes and the GMC API group with chatbot-toolkit and toolkit-manager Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants