Skip to main content

Loading custom Chart version for Shift

Loading custom Chart version for Shift sub-services

Scope:  How to load a specific "chart" and "version" overriding the default Chart package for a KOBIL Shift service.

By default the KOBIL Shift operator will use the configuration parameters "registry", "repository", "chart" and "version" (see Shift Chart package - file <root>/version.yaml). To load a custom "chart" and "version" it is required to customize the configuration so the Shift operator will use that custom chart & version.

Here is the default Shift metaconfiguration file "values.yaml" for section "IDP"(idpCore):

Default values.yaml

# -- Configuration for idp-core
idpCore:
  enabled: true
  repository: https://charts.kobil.com
  replicaCount: 1

Customized "values.yaml" with custom "chart" and "version" parameter:

Set specific component chart version

# -- Configuration for idp-core
idpCore:
  enabled: true
 chart: idp-core-custom
  version: 1.22.0-rc.234567
 repository: https://custom.repo.net
 replicaCount: 1

Then run the "helm upgrade" for the Shift-package which is loading the new custom chart "idp-core-custom" instead of default "idpCore" and with the custom version "1.22.0-rc.234567". Validate the loaded "chart" and "version" by checking the KOBIL CRDs "servicegroups". This should display "chart" and "version" when customization is successfully implemented:

Validate ServiceGroups configuration

# check for the KOBIL servicegroup CRD

kubectl get servicegroups
NAME READY SERVICES
shift-kobil-shift-ast true {"ast-client-properties":{"chart":"ast-client-properties","version":"7.1.5"},"ast-key-protection":{"chart":"ast-key-protection","version":"0.4.0"},"ast-localization":{"chart":"ast-localization","version":"0.8.0"},"ast-stream":{"chart":"ast-stream","version":"4.0.3"},"ast-tms":{"chart":"ast-tms","version":"0.19.0"},"ast-version":{"chart":"ast-version","version":"9.1.2"},"ast-webhooks":{"chart":"ast-webhooks","version":"3.1.6"},"astca":{"chart":"astca","version":"5.3.0"},"astclientmanagement":{"chart":"astclientmanagement","version":"6.4.0"},"astcpb":{"chart":"astcpb","version":"3.2.2"},"astlogin":{"chart":"astlogin","version":"4.5.0"}}

shift-kobil-shift-idp true {"idp-core":{**"chart":"idp-core-custom"**,**"version":"1.22.0-rc.234567"**},"idp-scp-connector":{"chart":"idp-scp-connector","version":"1.1.1"}}

shift-kobil-shift-kafka true {"kafka":{"chart":"kafka","version":"0.13.0"}}

shift-kobil-shift-scp true {"scp-addressbook":{"chart":"scp-addressbook","version":"3.54.0"},"scp-gateway":{"chart":"scp-gateway","version":"3.72.0"},"scp-notifier":{"chart":"scp-notifier","version":"0.41.0"}}