Developing the SDP Helm chart

Installing a local version of SDP

The simplest way of installing SDP from a branch of the ska-sdp-integration repository, is via make targets. For more information and details of the commands see: Running the SDP using make targets.

You may want to update the Helm chart dependencies first:

$ make update-chart-dependencies

This will make sure that you have the latest versions of other charts that SDP depends on.

Install SDP using the charts/ska-sdp chart from the branch of the GitLab repository. This will contain the latest changes you added, or pulled from the master branch:

$ make install-sdp

Testing a component locally

If you are developing one of the components of SDP, you may want to check that your changes work in the integrated system.

Assuming you are using Minikube for the development, first build a local version of the OCI image of the component with your changes. If you are using a remote server, you can use an OCI image from GitLab, which is built on every commit and is saved in the repository’s container registry (this will require GitLab access).

In the following example, we pretend to have updated the SDP Processing Controller and now we want to test it as part of SDP. Once you have built the image, create a file called test.yaml containing the following:

proccontrol:
  image: <my-newly-developed-proc-control-image>
  version: <version-of-new-image>
  imagePullPolicy: IfNotPresent

Update image and version accordingly. You may add other values that are required for your testing. This file will be used to upgrade your SDP deployment:

$ HELM_VALUES=test.yaml make install-sdp

You should see now via kubectl or k9s that the processing controller is being replaced with the version you have built.

Once you have finished testing, you may uninstall SDP with:

$ make uninstall-sdp