Skip to content

Commit

Permalink
Remove automation around app installation (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh authored Mar 25, 2024
1 parent 320680a commit 4757742
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 81 deletions.
34 changes: 1 addition & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

**Note**: This is not an officially supported way of installing kots. If you're looking for using this in a supported way, check the [kots documentation](https://kots.io/kotsadm/installing/installing-a-kots-app/)


This helm chart allows installing a Replicated kots application by installing kostadm, and automating the install process using helm values.


This helm chart allows installing and configuring KOTS via Helm.

# Usage

Expand All @@ -16,35 +13,6 @@ This helm chart allows installing a Replicated kots application by installing ko
kubectl port-forward -n [NAMESPACE] svc/kotsadm 8800:3000
```

## Automation

If you want to automatically install the kots license, you can do so by setting the following 2 values:

* `automation.license.slug`: The application slug for the application you're installing. For example: `sentry-pro`
* `automation.license.data`: The license yaml content.

```shell
helm upgrade --install [RELEASE_NAME] . --namespace [NAMESPACE] --create-namespace \
--set password=[KOTSADM_PASSWORD] \
--set automation.license.slug=[APP_SLUG] \
--set automation.license.data="$(cat [PATH_TO_LICENSE_YAML])"
kubectl port-forward -n [NAMESPACE] svc/kotsadm 8800:3000
```

If you want to skip pre-flights, you can do so by setting the following value:
* `automation.skipPreflights` (default: `false`)

If you want to specify ConfigValues, you can do so by setting the `automation.config.values`:

```shell
helm upgrade --install [RELEASE_NAME] . --namespace [NAMESPACE] --create-namespace \
--set password=[KOTSADM_PASSWORD] \
--set automation.license.slug=[APP_SLUG] \
--set automation.license.data="$(cat [PATH_TO_LICENSE_YAML])" \
--set automation.config.values="$(cat [PATH_TO_CONFIG_YAML])"
kubectl port-forward -n [NAMESPACE] svc/kotsadm 8800:3000
```

## Local dev

Run build-local.sh script located in the scripts directory of this repository to create a chart.
Expand Down
9 changes: 0 additions & 9 deletions templates/kotsadm-application.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions templates/kotsadm-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,4 @@ data:
initial-app-images-pushed: "false"
minio-enabled-snapshots: "false"
registry-is-read-only: "false"
skip-preflights: {{ .Values.automation.skipPreflights | quote }}
with-minio: "false"
{{- if .Values.automation.appVersionLabel }}
app-version-label: {{ .Values.automation.appVersionLabel | quote }}
{{- end }}
12 changes: 0 additions & 12 deletions templates/kotsadm-default-configvalues.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions templates/kotsadm-default-license.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions values.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ minimalRBAC: true
isHelmManaged: true
embeddedClusterID: ""
embeddedClusterVersion: ""
automation:
license:
slug: ""
data: ""
skipPreflights: false
appVersionLabel: ""
config:
values: ""

imagePullSecrets: []
nameOverride: ""
Expand Down

0 comments on commit 4757742

Please sign in to comment.