Skip to content

On-Prem Agent Helm Chart Deployment Script

This script automates the deployment of the LinearB On-Prem Agent Helm chart. It includes options for specifying chart versions, automatically fetching the latest chart, and customizing deployment settings such as namespaces and registries.


🚀 Features

  • Deploys the On-Prem Agent Helm chart to a specified Kubernetes cluster.
  • Supports specifying chart versions or automatically fetching the latest version.
  • Enables deployment customization with namespace and registry options.
  • Optionally suppresses interactive prompts for seamless automation.

🛠️ Prerequisites

Before running the script, ensure the local-values.yaml file is properly configured at least with the following fields:

  • global.JFROG_USER: Artifactory username.
  • global.JFROG_KEY: Artifactory API key.
  • global.JFROG_HOST: Artifactory registry host.

Optional: Enable Diagnostics

You can optionally enable the OPA Diagnostics tool to validate configuration and test connectivity during deployment. Add the following to your local-values.yaml:

diagnostics:
  enabled: true
  image:
    env:
      plain:
        - name: "ACCOUNT_ID"
          value: "310295"
        - name: "DATADOG_HOST"
          value: "api.datadoghq.com"

For complete diagnostics configuration and usage, see OPA Diagnostics Documentation.


📝 Usage

Run the script with the following options to deploy the On-Prem Agent Helm chart:

Script Options

Option Description Default
--version [VERSION] Deploy a specific chart version. None
--latest Automatically fetch and deploy the latest available chart version. Disabled
--quiet Suppress cluster selection prompt for non-interactive deployment. Disabled
--namespace [NAME] Specify the Kubernetes namespace for deployment. linearb
--registry [URL] Override the default OCI registry URL. Set in config
--dev Use the development registry. Disabled
--help | -h Show the help message and exit.

📋 Examples

Example 1: Deploy a Specific Chart Version

./deploy.sh --version v4.0.0

Example 2: Deploy the Latest Chart Version

./deploy.sh --latest