Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions deployment/backup_profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ enabled: "{{ backup_enabled | default(false) }}"
# The engine resolves the value from version_file — without it every backup would
# be labelled "unknown" and the gate would match all of them regardless of the
# version actually running.
version_label: "meta.erag/solution-version"
version_label: "chatbot-toolkit.intel.com/solution-version"
version_file: "{{ backup_profile_dir }}/version.yaml"
version_key: "solution_version"

Expand Down Expand Up @@ -100,11 +100,7 @@ exclude_resources:
- replicasets.apps
- events
- endpoints
# Both groups, while the gmc.opea.io to gmc.erag.intel.com rename is in flight —
# the same pair app_pipeline's teardown lists. A backup taken on one release and
# replayed on the other would otherwise carry a stale pipeline resource back.
- gmconnectors.gmc.erag.intel.com
- gmconnectors.gmc.opea.io
- gmconnectors.gmc.chatbot-toolkit.intel.com
- validatingwebhookconfigurations.admissionregistration.k8s.io
- mutatingwebhookconfigurations.admissionregistration.k8s.io
- instrumentations.opentelemetry.io
Expand Down Expand Up @@ -193,7 +189,7 @@ post_restore:
# Named after the Keycloak custom resource, which the platform's keycloak
# role creates as `keycloak`. There is no variable for it on either side.
name: keycloak
annotation: "meta.erag/restore-resync"
annotation: "chatbot-toolkit.intel.com/restore-resync"
ignore_errors: true

# Both halves of the API gateway have to be pushed after a replay, for different
Expand All @@ -209,7 +205,7 @@ post_restore:
api_version: apps/v1
kind: Deployment
name: "{{ apisix_helm_release_name | default('auth-apisix') }}-ingress-controller"
annotation: "meta.erag/restore-resync"
annotation: "chatbot-toolkit.intel.com/restore-resync"
ignore_errors: true

# The data plane reads its routing table from its store once, at startup. The
Expand All @@ -224,7 +220,7 @@ post_restore:
api_version: apps/v1
kind: Deployment
name: "{{ apisix_helm_release_name | default('auth-apisix') }}"
annotation: "meta.erag/restore-resync"
annotation: "chatbot-toolkit.intel.com/restore-resync"
ignore_errors: true

# -----------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions deployment/components/apisix/templates/k8s-api-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ rules:
- apiGroups: ["apps"]
resources: [deployments/status, statefulsets/status, replicasets/status, daemonsets/status]
verbs: [get]
- apiGroups: ["gmc.erag.intel.com"]
- apiGroups: ["gmc.chatbot-toolkit.intel.com"]
resources: [gmconnectors]
verbs: [get, list, watch]
- apiGroups: ["gmc.erag.intel.com"]
- apiGroups: ["gmc.chatbot-toolkit.intel.com"]
resources: [gmconnectors/status]
verbs: [get]
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.15.0
name: gmconnectors.gmc.erag.intel.com
name: gmconnectors.gmc.chatbot-toolkit.intel.com
spec:
group: gmc.erag.intel.com
group: gmc.chatbot-toolkit.intel.com
names:
kind: GMConnector
listKind: GMConnectorList
Expand Down
6 changes: 3 additions & 3 deletions deployment/components/gmc/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ rules:
- update
- watch
- apiGroups:
- gmc.erag.intel.com
- gmc.chatbot-toolkit.intel.com
resources:
- gmconnectors
verbs:
Expand All @@ -86,13 +86,13 @@ rules:
- update
- watch
- apiGroups:
- gmc.erag.intel.com
- gmc.chatbot-toolkit.intel.com
resources:
- gmconnectors/finalizers
verbs:
- update
- apiGroups:
- gmc.erag.intel.com
- gmc.chatbot-toolkit.intel.com
resources:
- gmconnectors/status
verbs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: gmc-status-reader
rules:
- apiGroups:
- gmc.erag.intel.com
- gmc.chatbot-toolkit.intel.com
resources:
- gmconnectors/status
verbs:
Expand Down
2 changes: 1 addition & 1 deletion deployment/roles/app_inference_models/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ inference_model_ready_delay: 10
# app.kubernetes.io/part-of=llminferenceservice on the Deployments and pods it
# creates for these CRs, so reusing that key would put two different values for
# the same key on one object graph.
inference_owner_label: "erag.intel.com/managed-by=app_inference_models"
inference_owner_label: "toolkit-manager.intel.com/layer=chatbot"

# Serving kinds model-manager may create — the runtime decides which
# (vllm → LLMInferenceService, openvino → InferenceService), so both are queried.
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,3 @@
label: "{{ item.key }}"
no_log: "{{ secure_logs | default(true) | bool }}"
when: _app_keycloak_config_platform_admin.resources | default([]) | length > 0

- name: "app_keycloak_config | install | Remove the Grafana SSO earlier releases injected"
ansible.builtin.include_tasks: _remove_grafana_sso.yaml
4 changes: 0 additions & 4 deletions deployment/roles/app_keycloak_config/tasks/teardown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,3 @@
label: "{{ item.metadata.name }}"
when: _kc_cfg_jobs.resources | default([]) | length > 0

# --- Phase 3: Remove the Grafana SSO earlier releases injected ---

- name: "app_keycloak_config | teardown | Remove the Grafana SSO earlier releases injected"
ansible.builtin.include_tasks: _remove_grafana_sso.yaml
1 change: 0 additions & 1 deletion deployment/roles/app_keycloak_config/vars/kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
# SPDX-License-Identifier: Apache-2.0
---
_keycloak_config_fixed_uids: true
_keycloak_config_grafana_operator: false
2 changes: 0 additions & 2 deletions deployment/roles/app_keycloak_config/vars/openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
---
# Its Jobs are applied without Helm, so the post-renderer never sees them.
_keycloak_config_fixed_uids: false
# Grafana is the Grafana Operator's instance (core roles/observability).
_keycloak_config_grafana_operator: true
4 changes: 2 additions & 2 deletions deployment/roles/app_password_mgmt/defaults/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# SPDX-License-Identifier: Apache-2.0

---
managed_secret_label: "meta.erag/has-generated-passwords"
password_mappings_annotation: "meta.erag/password-mappings"
managed_secret_label: "chatbot-toolkit.intel.com/has-generated-passwords"
password_mappings_annotation: "chatbot-toolkit.intel.com/password-mappings"
log_dir: "{{ undef() }}"
rag_log_dir: "{{ log_dir }}/rag" # app_pre_install
password_file: "{{ rag_log_dir }}/default_credentials.yaml"
Expand Down
6 changes: 3 additions & 3 deletions deployment/roles/app_password_mgmt/tasks/markup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
namespace: "{{ undef() }}"
secret_name: "{{ undef() }}"
password_mappings: "{{ undef() }}"
managed_secret_label: "meta.erag/has-generated-passwords"
password_mappings_annotation: "meta.erag/password-mappings"
managed_secret_label: "chatbot-toolkit.intel.com/has-generated-passwords"
password_mappings_annotation: "chatbot-toolkit.intel.com/password-mappings"

block:
- name: "app_password_mgmt | Label secret with managed secret indicator"
Expand Down Expand Up @@ -47,7 +47,7 @@
name: "{{ secret_name }}"
namespace: "{{ namespace }}"
annotations:
meta.erag/password-mappings: "{{ password_mappings_annotation_value | trim }}"
chatbot-toolkit.intel.com/password-mappings: "{{ password_mappings_annotation_value | trim }}"
merge_type: merge
register: annotate_secret_result
until: annotate_secret_result is succeeded
Expand Down
2 changes: 1 addition & 1 deletion deployment/roles/app_pipeline/tasks/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@

- name: "app_pipeline | Wait for GMConnector to be ready"
kubernetes.core.k8s_info:
api_version: gmc.erag.intel.com/v1alpha3
api_version: gmc.chatbot-toolkit.intel.com/v1alpha3
kind: GMConnector
name: "{{ pipeline_type }}"
namespace: "{{ pipeline_namespace }}"
Expand Down
14 changes: 4 additions & 10 deletions deployment/roles/app_pipeline/tasks/teardown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@
kubernetes.core.k8s_info:
api_version: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
name: gmconnectors.gmc.erag.intel.com
name: gmconnectors.gmc.chatbot-toolkit.intel.com
register: _gmconnector_crd

- name: "app_pipeline | Delete GMConnector resources to allow graceful workload teardown"
kubernetes.core.k8s:
state: absent
api_version: gmc.erag.intel.com/v1alpha3
api_version: gmc.chatbot-toolkit.intel.com/v1alpha3
kind: GMConnector
namespace: "{{ pipeline_namespace }}"
delete_all: true
Expand Down Expand Up @@ -122,16 +122,10 @@

# The GMConnector CRD ships in the chart's crds/ directory, which helm uninstall
# never removes. Delete it explicitly so teardown leaves no stale API group behind.
# Both groups are listed while the gmc.opea.io -> gmc.erag.intel.com rename is in flight.
- name: "app_pipeline | Delete GMConnector CRDs"
- name: "app_pipeline | Delete GMConnector CRD"
kubernetes.core.k8s:
api_version: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
name: "{{ item }}"
name: gmconnectors.gmc.chatbot-toolkit.intel.com
state: absent
loop:
- gmconnectors.gmc.erag.intel.com
- gmconnectors.gmc.opea.io
loop_control:
label: "{{ item }}"
failed_when: false
2 changes: 1 addition & 1 deletion deployment/roles/app_pipeline/tasks/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

- name: "app_pipeline | Check GMConnector CRD"
kubernetes.core.k8s_info:
api_version: gmc.erag.intel.com/v1alpha3
api_version: gmc.chatbot-toolkit.intel.com/v1alpha3
kind: GMConnector
name: "{{ pipeline_type }}"
namespace: "{{ pipeline_namespace }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ spec:
enable: true
config:
scheme: https
uri: /apis/gmc.erag.intel.com/v1alpha3/namespaces/{{ pipeline_namespace }}/gmconnectors/{{ pipeline_type }}/status
uri: /apis/gmc.chatbot-toolkit.intel.com/v1alpha3/namespaces/{{ pipeline_namespace }}/gmconnectors/{{ pipeline_type }}/status
4 changes: 2 additions & 2 deletions deployment/roles/app_post_install/tasks/mesh_metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{%- for r in _mesh_pods.results -%}
{%- set _ = out.append({'name': r.item.name ~ '-metrics', 'namespace': r.item.namespace,
'selector': r.item.pods, 'ports': [r.item.port],
'labels': {'erag-metrics-exception': 'true'},
'labels': {'chatbot-toolkit.intel.com/metrics-exception': 'true'},
'key': r.item.namespace ~ '/' ~ r.item.name ~ '-metrics',
'deployed': r.resources | length > 0}) -%}
{%- endfor -%}
Expand Down Expand Up @@ -73,7 +73,7 @@
kubernetes.core.k8s_info:
api_version: security.istio.io/v1
kind: PeerAuthentication
label_selectors: [erag-metrics-exception=true]
label_selectors: [chatbot-toolkit.intel.com/metrics-exception=true]
register: _mesh_existing

- name: "app_post_install | mesh | Remove the exceptions this run did not create"
Expand Down
2 changes: 1 addition & 1 deletion deployment/scripts/compose_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def compose_pipeline(pipeline_dir, enabled_variants, template_vars):

# 5. Build final GMConnector
gmconnector = {
'apiVersion': 'gmc.erag.intel.com/v1alpha3',
'apiVersion': 'gmc.chatbot-toolkit.intel.com/v1alpha3',
'kind': 'GMConnector',
'metadata': {
'name': pipeline_meta['name'],
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration/models.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Changing the embedding model changes the vector dimensions and invalidates the e

LLM replica count and CPU allocation are calculated to fit the LLM, embedding, and reranking models together inside one NUMA node. Changing any model's size may affect the replica count of all three.

Only models labeled `app.kubernetes.io/part-of=erag` are managed by the installer. Models deployed by hand or by Intel® Inference Toolkit are left alone.
Only models labeled `toolkit-manager.intel.com/layer=chatbot` are managed by the installer. Models deployed by hand or by Intel® Inference Toolkit are left alone.

## Model catalog reference

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Images built from `src/comps/*/impl/microservice/Dockerfile`, published to `dock

## GMC Operator

The GMC operator (`src/gmc/`) is a kubebuilder-based controller that composes microservices into a working pipeline. It defines the CRD `GMConnector` (API group `gmc.erag.intel.com`, version `v1alpha3`) with three router types:
The GMC operator (`src/gmc/`) is a kubebuilder-based controller that composes microservices into a working pipeline. It defines the CRD `GMConnector` (API group `gmc.chatbot-toolkit.intel.com`, version `v1alpha3`) with three router types:

| Router | Purpose | Example |
|--------|---------|---------|
Expand Down
4 changes: 2 additions & 2 deletions src/gmc/PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This file is used to track the info used to scaffold your project
# and allow the plugins properly work.
# More info: https://book.kubebuilder.io/reference/project-config.html
domain: erag.intel.com
domain: chatbot-toolkit.intel.com
layout:
- go.kubebuilder.io/v4
projectName: gmconnector
Expand All @@ -15,7 +15,7 @@ resources:
crdVersion: v1
namespaced: true
controller: true
domain: erag.intel.com
domain: chatbot-toolkit.intel.com
group: gmc
kind: GMConnector
path: erag.intel.com/gmc/api/v1alpha3
Expand Down
4 changes: 2 additions & 2 deletions src/gmc/api/v1alpha3/groupversion_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// Package v1alpha3 contains API Schema definitions for the gmc v1alpha3 API group
// +kubebuilder:object:generate=true
// +groupName=gmc.erag.intel.com
// +groupName=gmc.chatbot-toolkit.intel.com
package v1alpha3

import (
Expand All @@ -15,7 +15,7 @@ import (

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "gmc.erag.intel.com", Version: "v1alpha3"}
GroupVersion = schema.GroupVersion{Group: "gmc.chatbot-toolkit.intel.com", Version: "v1alpha3"}

// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
Expand Down
2 changes: 1 addition & 1 deletion src/gmc/api/v1alpha3/validating_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (r *GMConnector) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// +kubebuilder:webhook:verbs=create;update,path=/validate-gmc-erag-intel-com-v1alpha3-gmconnector,mutating=false,failurePolicy=fail,groups=gmc.erag.intel.com,resources=gmconnectors,versions=v1alpha3,name=vgmcconnector.gmc.erag.intel.com,sideEffects=None,admissionReviewVersions=v1
// +kubebuilder:webhook:verbs=create;update,path=/validate-gmc-chatbot-toolkit-intel-com-v1alpha3-gmconnector,mutating=false,failurePolicy=fail,groups=gmc.chatbot-toolkit.intel.com,resources=gmconnectors,versions=v1alpha3,name=vgmcconnector.gmc.chatbot-toolkit.intel.com,sideEffects=None,admissionReviewVersions=v1

var _ webhook.Validator = &GMConnector{}

Expand Down
2 changes: 1 addition & 1 deletion src/gmc/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func main() {
WebhookServer: webhookServer,
HealthProbeBindAddress: probeAddr,
LeaderElection: enableLeaderElection,
LeaderElectionID: "6aba56f0.erag.intel.com",
LeaderElectionID: "6aba56f0.chatbot-toolkit.intel.com",
// Step down voluntarily when the manager stops so a new leader can take
// over without waiting out the full lease. The process exits right after
// the manager stops, so releasing on cancel is safe here.
Expand Down
Loading