Skip to main content

Using an SDK-Enabled Chart for KOTS Installations

This topic provides information about how to use Helm charts that include the Replicated SDK to support installations with either Helm CLI or Replicated KOTS. For more information about the SDK, see About the Replicated SDK.


Distributing your application as one or more Helm charts is recommended because you can use the same Helm charts to support installations with both KOTS and with the Helm CLI.

If you include the Replicated SDK as a dependency in a Helm chart that you want to use for both KOTS and Helm CLI installations, then you must add a conditional value to exclude the SDK when the chart is installed by KOTS. Excluding the SDK for KOTS installations prevents duplication of instance data in the vendor portal and related APIs, which can be caused when both KOTS and the SDK are reporting data for an instance.


When the SDK is excluded from KOTS installations, the SDK API endpoints are not available. For example, you cannot use the app endpoints to allow your users to check for updates when the SDK is excluded. And, you cannot use the license endpoints to check customer entitlements during runtime. However, KOTS provides access to similar functionality.

If you use any SDK API endpoints in your application, Replicated recommends that you verify that the comparable functionality available through KOTS provides the expected user experience.

For information about checking for updates with KOTS, see Updating an Application. For information about checking license entitlements for KOTS installations, see Checking Entitlements for KOTS.

Exclude the SDK from KOTS Installations

To conditionally exclude the SDK from KOTS installations, do the following for each Helm chart that includes the SDK as a dependency:

  1. In the Chart.yaml, add a condition field to the dependencies entry for the SDK to allow the SDK to be conditionally included or excluded when a value is true or false.


    # Chart.yaml file

    - name: replicated
    repository: oci://
    version: 1.0.0-beta.8
    condition: replicated.enabled

    For more information about adding conditions to dependencies, see Conditions and Tags in the Helm documentation.

  2. Add a value to the values.yaml file to include the SDK by default. Ensure that the field name you use matches what you added to the condition field in the previous step.


    # Helm chart values.yaml

    # Set `enabled: true` to include the SDK by default
    enabled: true
  3. In the HelmChart custom resource that KOTS uses to install the chart, include a value with the same name to disable the SDK for KOTS installations:


    # KOTS HelmChart custom resource

    kind: HelmChart
    name: my-app
    name: my-app
    chartVersion: v1.0.1
    # Add a value with the same name set to `enabled: false`
    # This excludes the SDK from KOTS installations
    enabled: false

    For more information about how KOTS consumes values in the HelmChart custom resource, see values in HelmChart v2.

  4. Add the Helm chart and the HelmChart custom resource to a new release and promote to a development channel. Test the release by installing with KOTS and the Helm CLI in development environments. See Managing Releases with the Vendor Portal or Managing Release with the CLI.

  5. Repeat these steps for each Helm chart in your release that includes the SDK as a dependency.