diff --git a/README.md b/README.md index 2b1243f..9461716 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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. diff --git a/templates/kotsadm-application.yaml b/templates/kotsadm-application.yaml deleted file mode 100644 index 6e46c7c..0000000 --- a/templates/kotsadm-application.yaml +++ /dev/null @@ -1,9 +0,0 @@ -{{- if .Values.kotsApplication }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: kotsadm-application-metadata -data: - application.yaml: | -{{ indent 4 .Values.kotsApplication }} -{{- end }} diff --git a/templates/kotsadm-config.yaml b/templates/kotsadm-config.yaml index 94c75d5..9cc0ad1 100644 --- a/templates/kotsadm-config.yaml +++ b/templates/kotsadm-config.yaml @@ -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 }} diff --git a/templates/kotsadm-default-configvalues.yaml b/templates/kotsadm-default-configvalues.yaml deleted file mode 100644 index 9e9b7db..0000000 --- a/templates/kotsadm-default-configvalues.yaml +++ /dev/null @@ -1,12 +0,0 @@ -{{ if .Values.automation.config.values }} -apiVersion: v1 -kind: Secret -metadata: - labels: - kots.io/automation: configvalues - {{- include "admin-console.labels" . | nindent 4 }} - name: kotsadm-default-configvalues -type: Opaque -data: - configvalues: {{ .Values.automation.config.values | b64enc }} -{{ end }} \ No newline at end of file diff --git a/templates/kotsadm-default-license.yaml b/templates/kotsadm-default-license.yaml deleted file mode 100644 index ad2cc02..0000000 --- a/templates/kotsadm-default-license.yaml +++ /dev/null @@ -1,15 +0,0 @@ -{{ if .Values.automation.license.slug }} -apiVersion: v1 -kind: Secret -metadata: - annotations: - kots.io/airgap: "false" - labels: - kots.io/app: {{ .Values.automation.license.slug }} - kots.io/automation: license - {{- include "admin-console.labels" . | nindent 4 }} - name: kotsadm-default-license -type: Opaque -data: - license: {{ .Values.automation.license.data | b64enc }} -{{ end }} \ No newline at end of file diff --git a/values.yaml.tmpl b/values.yaml.tmpl index 8aba86c..b2dc89f 100644 --- a/values.yaml.tmpl +++ b/values.yaml.tmpl @@ -12,14 +12,6 @@ minimalRBAC: true isHelmManaged: true embeddedClusterID: "" embeddedClusterVersion: "" -automation: - license: - slug: "" - data: "" - skipPreflights: false - appVersionLabel: "" - config: - values: "" imagePullSecrets: [] nameOverride: ""