Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 3.49 KB

CONTRIBUTING.md

File metadata and controls

42 lines (29 loc) · 3.49 KB

Contributing

Checklist

Before making a contribution to the charts in this repository, you will need to ensure the following steps have been done:

  • Run helm template on the changes you're making to ensure they are correctly rendered into Kubernetes manifests.
  • Lint tests have been run for the Chart using the Chart Testing tool and the ct lint command.
  • Chart tests run on a Kind cluster where NetworkPolicies are enforced. KinD's default CNI ignores NetworkPolicies, so CI disables it and installs Calico via hack/install-calico.sh. To reproduce ct install locally, create the cluster with default CNI disabled (networking.disableDefaultCNI: true, networking.podSubnet: "192.168.0.0/16") and run the script before ct install.
  • For the rhdh chart, run ./hack/assert-rendered-values.sh (after helm dependency build charts/rhdh) to check that every rendered image honours global.imageRegistry and that the dynamic plugins volume honours the StorageClass settings. CI runs it too.
  • For each Chart updated, version bumped in the corresponding Chart.yaml according to Semantic Versioning.
  • For each Chart updated, ensure variables are documented in the corresponding values.yaml file and the pre-commit hook has been run with pre-commit run --all-files to generate the corresponding README.md documentation. The pre-commit Workflow will enforce this and warn you if needed.
  • JSON Schema template updated and re-generated the raw schema via the pre-commit hook.
  • If you updated the orchestrator-infra chart, make sure the versions of the Knative CRDs are aligned with the versions of the CRDs installed by the OpenShift Serverless operators declared in the values.yaml file. See Installing Knative Eventing and Knative Serving CRDs for more details.

Sync Lightspeed Core vendored config files

The Lightspeed Core config files under charts/rhdh/files/intelligent-assistant are synced from the upstream redhat-developer/rhdh-intelligent-assistant-configs repository by hack/sync-lightspeed-configs.sh.

Use the default upstream branch:

./hack/sync-lightspeed-configs.sh

Sync from a release branch or a tag:

./hack/sync-lightspeed-configs.sh --ref release-1.9
./hack/sync-lightspeed-configs.sh --ref v0.5.0

Verify the vendored files are already in sync without writing changes:

./hack/sync-lightspeed-configs.sh --ref main --check

The script copies the upstream lightspeed-stack.yaml and rhdh-profile.py files into charts/rhdh/files/intelligent-assistant. The RHDH chart does not vendor a Lightspeed Core secret.yaml; supply provider credentials with intelligentAssistant.existingSecret.

After syncing, preserve the chart-specific commented rag block and its OKP integration TODO in lightspeed-stack.yaml. This temporary downstream patch means --check reports a difference for that file. Choose the upstream branch or tag that matches the Lightspeed Core release you want to vendor.