-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
44 changed files
with
44,817 additions
and
4 deletions.
There are no files selected for viewing
Binary file added
BIN
+125 KB
assets/rancher-turtles-airgap-resources/rancher-turtles-airgap-resources-0.3.0.tgz
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v2 | ||
appVersion: 0.11.0 | ||
description: Rancher Turtles utility chart for airgap scenarios | ||
home: https://github.com/rancher/turtles/ | ||
icon: https://raw.githubusercontent.com/rancher/turtles/main/logos/capi.svg | ||
name: rancher-turtles-airgap-resources | ||
type: application | ||
version: 0.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Deploy Rancher Turtles in airgapped scenarios | ||
|
||
To simplify deployment of the suse-edge rancher-turtles wrapper chart in airgapped scenarios | ||
this chart deploys the corresponding ConfigMap resources, as described in the | ||
[Rancher Turtles Documentation](https://turtles.docs.rancher.com/getting-started/air-gapped-environment) | ||
|
||
In addition to installing the chart, it will be necessary to adjust the rancher-turtles chart values: | ||
|
||
``` | ||
cluster-api-operator: | ||
cluster-api: | ||
core: | ||
fetchConfig: | ||
selector: "{\"matchLabels\": {\"provider-components\": \"core\"}}" | ||
rke2: | ||
bootstrap: | ||
fetchConfig: | ||
selector: "{\"matchLabels\": {\"provider-components\": \"rke2-bootstrap\"}}" | ||
controlPlane: | ||
fetchConfig: | ||
selector: "{\"matchLabels\": {\"provider-components\": \"rke2-control-plane\"}}" | ||
metal3: | ||
infrastructure: | ||
fetchConfig: | ||
selector: "{\"matchLabels\": {\"provider-components\": \"metal3\"}}" | ||
``` |
46 changes: 46 additions & 0 deletions
46
charts/rancher-turtles-airgap-resources/0.3.0/templates/airgap-cm-core.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
4,382 changes: 4,382 additions & 0 deletions
4,382
charts/rancher-turtles-airgap-resources/0.3.0/templates/airgap-cm-metal3.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
2,743 changes: 2,743 additions & 0 deletions
2,743
charts/rancher-turtles-airgap-resources/0.3.0/templates/airgap-cm-rke2-bootstrap.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
4,500 changes: 4,500 additions & 0 deletions
4,500
charts/rancher-turtles-airgap-resources/0.3.0/templates/airgap-cm-rke2-control-plane.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dependencies: | ||
- name: cluster-api-operator | ||
repository: https://kubernetes-sigs.github.io/cluster-api-operator | ||
version: 0.12.0 | ||
digest: sha256:c167c074ca89ef7a520ec18a5afd380b9edaee513810aa3ac0e0bda51db9c526 | ||
generated: "2024-08-22T14:23:18.589443298Z" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
annotations: | ||
catalog.cattle.io/certified: rancher | ||
catalog.cattle.io/display-name: Rancher Turtles - the Cluster API Extension | ||
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.9.0-1' | ||
catalog.cattle.io/release-name: rancher-turtles | ||
catalog.cattle.io/scope: management | ||
catalog.cattle.io/type: cluster-tool | ||
apiVersion: v2 | ||
appVersion: 0.11.0 | ||
dependencies: | ||
- condition: cluster-api-operator.enabled | ||
name: cluster-api-operator | ||
repository: file://./charts/cluster-api-operator | ||
version: 0.12.0 | ||
description: Rancher Turtles is an extension to Rancher that brings full Cluster API | ||
integration to Rancher. | ||
home: https://github.com/rancher/turtles/ | ||
icon: https://raw.githubusercontent.com/rancher/turtles/main/logos/capi.svg | ||
keywords: | ||
- rancher | ||
- cluster-api | ||
- capi | ||
- provisioning | ||
name: rancher-turtles | ||
type: application | ||
version: 0.3.0+up0.11.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
||
Checkout the [documentation](https://turtles.docs.rancher.com) for further information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
## Changes since test/v0.11.0 | ||
--- | ||
## :chart_with_upwards_trend: Overview | ||
|
||
|
||
_Thanks to all our contributors!_ 😊 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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://turtles.docs.rancher.com). |
23 changes: 23 additions & 0 deletions
23
charts/rancher-turtles/0.3.0+up0.11.0/charts/cluster-api-operator/.helmignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
6 changes: 6 additions & 0 deletions
6
charts/rancher-turtles/0.3.0+up0.11.0/charts/cluster-api-operator/Chart.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v2 | ||
appVersion: 0.12.0 | ||
description: Cluster API Operator | ||
name: cluster-api-operator | ||
type: application | ||
version: 0.12.0 |
24 changes: 24 additions & 0 deletions
24
charts/rancher-turtles/0.3.0+up0.11.0/charts/cluster-api-operator/templates/_helpers.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "capi-operator.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
*/}} | ||
{{- define "capi-operator.fullname" -}} | ||
{{- if .Values.fullnameOverride -}} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- $name := default .Chart.Name .Values.nameOverride -}} | ||
{{- if contains $name .Release.Name -}} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}} | ||
{{- else -}} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
{{- end -}} | ||
{{- end -}} |
56 changes: 56 additions & 0 deletions
56
charts/rancher-turtles/0.3.0+up0.11.0/charts/cluster-api-operator/templates/addon.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Addon provider | ||
{{- if .Values.addon }} | ||
{{- $addons := split ";" .Values.addon }} | ||
{{- $addonNamespace := "" }} | ||
{{- $addonName := "" }} | ||
{{- $addonVersion := "" }} | ||
{{- range $addon := $addons }} | ||
{{- $addonArgs := split ":" $addon }} | ||
{{- $addonArgsLen := len $addonArgs }} | ||
{{- if eq $addonArgsLen 3 }} | ||
{{- $addonNamespace = $addonArgs._0 }} | ||
{{- $addonName = $addonArgs._1 }} | ||
{{- $addonVersion = $addonArgs._2 }} | ||
{{- else if eq $addonArgsLen 2 }} | ||
{{- $addonNamespace = print $addonArgs._0 "-addon-system" }} | ||
{{- $addonName = $addonArgs._0 }} | ||
{{- $addonVersion = $addonArgs._1 }} | ||
{{- else if eq $addonArgsLen 1 }} | ||
{{- $addonNamespace = print $addonArgs._0 "-addon-system" }} | ||
{{- $addonName = $addonArgs._0 }} | ||
{{- else }} | ||
{{- fail "addon provider argument should have the following format helm:v1.0.0 or mynamespace:helm:v1.0.0" }} | ||
{{- end }} | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
annotations: | ||
"helm.sh/hook": "post-install" | ||
"helm.sh/hook-weight": "1" | ||
"argocd.argoproj.io/sync-wave": "1" | ||
name: {{ $addonNamespace }} | ||
--- | ||
apiVersion: operator.cluster.x-k8s.io/v1alpha2 | ||
kind: AddonProvider | ||
metadata: | ||
name: {{ $addonName }} | ||
namespace: {{ $addonNamespace }} | ||
annotations: | ||
"helm.sh/hook": "post-install" | ||
"helm.sh/hook-weight": "2" | ||
"argocd.argoproj.io/sync-wave": "2" | ||
{{- if or $addonVersion $.Values.secretName }} | ||
spec: | ||
{{- end}} | ||
{{- if $addonVersion }} | ||
version: {{ $addonVersion }} | ||
{{- end }} | ||
{{- if $.Values.secretName }} | ||
secretName: {{ $.Values.secretName }} | ||
{{- end }} | ||
{{- if $.Values.secretNamespace }} | ||
secretNamespace: {{ $.Values.secretNamespace }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
55 changes: 55 additions & 0 deletions
55
charts/rancher-turtles/0.3.0+up0.11.0/charts/cluster-api-operator/templates/bootstrap.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Bootstrap provider | ||
{{- if .Values.bootstrap }} | ||
{{- $bootstraps := split ";" .Values.bootstrap }} | ||
{{- $bootstrapNamespace := "" }} | ||
{{- $bootstrapName := "" }} | ||
{{- $bootstrapVersion := "" }} | ||
{{- range $bootstrap := $bootstraps }} | ||
{{- $bootstrapArgs := split ":" $bootstrap }} | ||
{{- $bootstrapArgsLen := len $bootstrapArgs }} | ||
{{- if eq $bootstrapArgsLen 3 }} | ||
{{- $bootstrapNamespace = $bootstrapArgs._0 }} | ||
{{- $bootstrapName = $bootstrapArgs._1 }} | ||
{{- $bootstrapVersion = $bootstrapArgs._2 }} | ||
{{- else if eq $bootstrapArgsLen 2 }} | ||
{{- $bootstrapNamespace = print $bootstrapArgs._0 "-bootstrap-system" }} | ||
{{- $bootstrapName = $bootstrapArgs._0 }} | ||
{{- $bootstrapVersion = $bootstrapArgs._1 }} | ||
{{- else if eq $bootstrapArgsLen 1 }} | ||
{{- $bootstrapNamespace = print $bootstrapArgs._0 "-bootstrap-system" }} | ||
{{- $bootstrapName = $bootstrapArgs._0 }} | ||
{{- else }} | ||
{{- fail "bootstrap provider argument should have the following format kubeadm:v1.0.0 or mynamespace:kubeadm:v1.0.0" }} | ||
{{- end }} | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
annotations: | ||
"helm.sh/hook": "post-install" | ||
"helm.sh/hook-weight": "1" | ||
name: {{ $bootstrapNamespace }} | ||
--- | ||
apiVersion: operator.cluster.x-k8s.io/v1alpha2 | ||
kind: BootstrapProvider | ||
metadata: | ||
name: {{ $bootstrapName }} | ||
namespace: {{ $bootstrapNamespace }} | ||
annotations: | ||
"helm.sh/hook": "post-install" | ||
"helm.sh/hook-weight": "2" | ||
{{- if or $bootstrapVersion $.Values.configSecret.name }} | ||
spec: | ||
{{- end}} | ||
{{- if $bootstrapVersion }} | ||
version: {{ $bootstrapVersion }} | ||
{{- end }} | ||
{{- if $.Values.configSecret.name }} | ||
configSecret: | ||
name: {{ $.Values.configSecret.name }} | ||
{{- if $.Values.configSecret.namespace }} | ||
namespace: {{ $.Values.configSecret.namespace }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
55 changes: 55 additions & 0 deletions
55
...s/rancher-turtles/0.3.0+up0.11.0/charts/cluster-api-operator/templates/control-plane.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Control plane provider | ||
{{- if .Values.controlPlane }} | ||
{{- $controlPlanes := split ";" .Values.controlPlane }} | ||
{{- $controlPlaneNamespace := "" }} | ||
{{- $controlPlaneName := "" }} | ||
{{- $controlPlaneVersion := "" }} | ||
{{- range $controlPlane := $controlPlanes }} | ||
{{- $controlPlaneArgs := split ":" $controlPlane }} | ||
{{- $controlPlaneArgsLen := len $controlPlaneArgs }} | ||
{{- if eq $controlPlaneArgsLen 3 }} | ||
{{- $controlPlaneNamespace = $controlPlaneArgs._0 }} | ||
{{- $controlPlaneName = $controlPlaneArgs._1 }} | ||
{{- $controlPlaneVersion = $controlPlaneArgs._2 }} | ||
{{- else if eq $controlPlaneArgsLen 2 }} | ||
{{- $controlPlaneNamespace = print $controlPlaneArgs._0 "-control-plane-system" }} | ||
{{- $controlPlaneName = $controlPlaneArgs._0 }} | ||
{{- $controlPlaneVersion = $controlPlaneArgs._1 }} | ||
{{- else if eq $controlPlaneArgsLen 1 }} | ||
{{- $controlPlaneNamespace = print $controlPlaneArgs._0 "-control-plane-system" }} | ||
{{- $controlPlaneName = $controlPlaneArgs._0 }} | ||
{{- else }} | ||
{{- fail "controlplane provider argument should have the following format kubeadm:v1.0.0 or mynamespace:kubeadm:v1.0.0" }} | ||
{{- end }} | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
annotations: | ||
"helm.sh/hook": "post-install" | ||
"helm.sh/hook-weight": "1" | ||
name: {{ $controlPlaneNamespace }} | ||
--- | ||
apiVersion: operator.cluster.x-k8s.io/v1alpha2 | ||
kind: ControlPlaneProvider | ||
metadata: | ||
name: {{ $controlPlaneName }} | ||
namespace: {{ $controlPlaneNamespace }} | ||
annotations: | ||
"helm.sh/hook": "post-install" | ||
"helm.sh/hook-weight": "2" | ||
{{- if or $controlPlaneVersion $.Values.configSecret.name }} | ||
spec: | ||
{{- end}} | ||
{{- if $controlPlaneVersion }} | ||
version: {{ $controlPlaneVersion }} | ||
{{- end }} | ||
{{- if $.Values.configSecret.name }} | ||
configSecret: | ||
name: {{ $.Values.configSecret.name }} | ||
{{- if $.Values.configSecret.namespace }} | ||
namespace: {{ $.Values.configSecret.namespace }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
31 changes: 31 additions & 0 deletions
31
...rancher-turtles/0.3.0+up0.11.0/charts/cluster-api-operator/templates/core-conditions.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{{- if or .Values.addon .Values.bootstrap .Values.controlPlane .Values.infrastructure }} | ||
# Deploy core components if not specified | ||
{{- if not .Values.core }} | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
annotations: | ||
"helm.sh/hook": "post-install" | ||
"helm.sh/hook-weight": "1" | ||
name: capi-system | ||
--- | ||
apiVersion: operator.cluster.x-k8s.io/v1alpha2 | ||
kind: CoreProvider | ||
metadata: | ||
name: cluster-api | ||
namespace: capi-system | ||
annotations: | ||
"helm.sh/hook": "post-install" | ||
"helm.sh/hook-weight": "2" | ||
{{- with .Values.configSecret }} | ||
spec: | ||
configSecret: | ||
name: {{ .name }} | ||
{{- if .namespace }} | ||
namespace: {{ .namespace }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
Oops, something went wrong.