Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove automation around app installation #39

Merged
merged 1 commit into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading