Skip to content

Commit

Permalink
feat: add annotations / questions for chart
Browse files Browse the repository at this point in the history
Add the annotations for the chart to give a better experience in the app
catalog.

Also, started to add questions to customize the install.

Signed-off-by: Richard Case <richard.case@suse.com>
  • Loading branch information
richardcase committed Oct 27, 2023
1 parent a7a226f commit 85e6ecf
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 1 deletion.
22 changes: 21 additions & 1 deletion charts/rancher-turtles/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
apiVersion: v2
name: rancher-turtles
description: Rancher Turtles
type: application
version: 0.0.0
appVersion: "0.0.0"
description: Rancher Turtles is a extension to Rancher that brings full Cluster API integration to Rancher.
home: https://github.com/rancher-sandbox/rancher-turtles/
icon: https://raw.githubusercontent.com/rancher-sandbox/rancher-turtles/main/logos/capi.svg
keywords:
- rancher
- cluster-api
- capi
- provisioning
dependencies:
- name: cluster-api-operator
version: v0.5.1
repository: https://kubernetes-sigs.github.io/cluster-api-operator
condition: cluster-api-operator.enabled
annotations:
catalog.cattle.io/certified: rancher
catalog.cattle.io/display-name: Rancher Turtles - the Cluster API operator
catalog.cattle.io/kube-version: '>= 1.23.0-0'
catalog.cattle.io/namespace: rancher-turtles-system
catalog.cattle.io/os: linux
catalog.cattle.io/permits-os: linux
catalog.cattle.io/rancher-version: '>= 2.7.7-0'
catalog.cattle.io/release-name: rancher-turtles
catalog.cattle.io/scope: management
catalog.cattle.io/type: cluster-tool


5 changes: 5 additions & 0 deletions charts/rancher-turtles/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Rancher Turtles Chart

This chart installs the Rancher Turtles operator and optionally the Cluster API Operator using Helm.

Chheckout the [documentation](https://docs.rancher-turtles.com) for further information.
5 changes: 5 additions & 0 deletions charts/rancher-turtles/app-readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Rancher Turtles - The Cluster API Extension for Rancher

Rancher Turtles brings enhanced integration of Cluster API with Rancher.

For more information, including a getting started guide, see the [official documentation](https://docs.rancher-turtles.com).
52 changes: 52 additions & 0 deletions charts/rancher-turtles/questions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
namespace: rancher-turtles-system
questions:
- variable: rancherTurtles.features.default
default: "true"
description: "Enable extra features"
label: Enable extra features
type: boolean
show_subquestion_if: false
group: "Rancher Turtles Extra Features"
subquestions:
- variable: rancherTurtles.features.embedded-capi.disabled
default: true
description: "Specify that the Rancher embedded cluster api feature be disabled"
type: boolean
label: Disable Rancher Embedded CAPI
group: "Rancher Turtles Features Settings"
- variable: rancherTurtles.features.rancher-webhook.cleanup
default: true
description: "Specify that the Rancher embedded cluster api webhooks should be removed"
type: boolean
label: Cleanup Rancher Embedded CAPI Webhooks
group: "Rancher Turtles Features Settings"
- variable: rancherTurtles.features.rancher-webhook.kubectlImage
default: "rancher/kubectl"
description: "Specify the image to use when cleaning up the webhooks"
type: string
label: Cleanup Image
group: "Rancher Turtles Features Settings"
- variable: rancherTurtles.features.rancher-kubeconfigs.label
default: true
description: "Specify that the kubeconfigs generated by Rancher should be automatically patched to contain the CAPI expected labels"
type: boolean
label: Label Rancher Kubeconfigs
group: "Rancher Turtles Features Settings"
- variable: cluster-api-operator.enabled
default: "true"
description: "Flag to enable or disable installation of the Cluster API Operator. If you disable this then you will need to manage the CAPI controllers yourself."
label: "Enable Cluster API Operator"
type: boolean
group: "Cluster API Operator"
show_subquestion_if: true
subquestions:
- variable: cluster-api-operator.cert-manager.enabled
default: "false"
description: "Flag to enable or disable installation of cert-manager. If set to false then you will need to install cert-manager manually"
label: "Enable Cert Manager"
type: boolean
- variable: cluster-api-operator.cluster-api.version
default: "v1.4.6"
required: true
description: "Version of the core CAPI controllers to install."
label: "Version"

0 comments on commit 85e6ecf

Please sign in to comment.