Skip to content

Add explicit namespace management to Helm chart #109

Description

@guimou

Summary

Follow the pattern established in rh-ai-community-plugins/brewet#206 to add explicit namespace management to the admin plugin's own Helm chart.

Changes needed

  • Add a namespace helper in chart/templates/_helpers.tpl: .Values.namespace | default .Release.Namespace
  • Add a namespace.yaml template so the chart creates the namespace itself
  • Add namespace: cp-plugins-admin default in chart/values.yaml
  • Explicitly set namespace: {{ include "community-plugins-admin.namespace" . }} on every namespaced resource template (deployments, services, service accounts, etc.)

Why

Ensures the chart is self-contained for namespace creation and consistent with other community plugins. The values.yaml default acts as documentation and a fallback for manual deployments, while the admin plugin's lifecycle service reads the namespace from plugin.yaml when deploying automatically.

Reference

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    phase-4Phase 4: Installed Plugins Page

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions