Skip to content

Commit

Permalink
Rename spoke-cluster-proxy -> spoke-cluster-addons
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed May 17, 2024
1 parent 9d54df9 commit 55f6832
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 47 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Spoke Cluster Proxy
name: spoke-cluster-proxy
version: v2024.2.25
description: Spoke Cluster Addons
name: spoke-cluster-addons
version: v2024.5.17
appVersion: v0.0.1
home: https://github.com/kluster-manager/cluster-proxy
icon: https://cdn.appscode.com/images/products/searchlight/icons/android-icon-192x192.png
Expand Down
Original file line number Diff line number Diff line change
@@ -1,49 +1,49 @@
# Spoke Cluster Proxy
# Spoke Cluster Addons

[Spoke Cluster Proxy](https://github.com/kluster-manager/cluster-proxy) - Spoke Cluster Proxy
[Spoke Cluster Addons](https://github.com/kluster-manager/installer) - Spoke Cluster Addons

## TL;DR;

```bash
$ helm repo add appscode https://charts.appscode.com/stable
$ helm repo update
$ helm search repo appscode/spoke-cluster-proxy --version=v2024.2.25
$ helm upgrade -i spoke-cluster-proxy appscode/spoke-cluster-proxy -n c1 --create-namespace --version=v2024.2.25
$ helm search repo appscode/spoke-cluster-addons --version=v2024.5.17
$ helm upgrade -i spoke-cluster-addons appscode/spoke-cluster-addons -n c1 --create-namespace --version=v2024.5.17
```

## Introduction

This chart deploys a Spoke Cluster Proxy on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
This chart deploys a Spoke Cluster Addons on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.

## Prerequisites

- Kubernetes 1.21+

## Installing the Chart

To install/upgrade the chart with the release name `spoke-cluster-proxy`:
To install/upgrade the chart with the release name `spoke-cluster-addons`:

```bash
$ helm upgrade -i spoke-cluster-proxy appscode/spoke-cluster-proxy -n c1 --create-namespace --version=v2024.2.25
$ helm upgrade -i spoke-cluster-addons appscode/spoke-cluster-addons -n c1 --create-namespace --version=v2024.5.17
```

The command deploys a Spoke Cluster Proxy on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation.
The command deploys a Spoke Cluster Addons on the Kubernetes cluster in the default configuration. The [configuration](#configuration) section lists the parameters that can be configured during installation.

> **Tip**: List all releases using `helm list`
## Uninstalling the Chart

To uninstall the `spoke-cluster-proxy`:
To uninstall the `spoke-cluster-addons`:

```bash
$ helm uninstall spoke-cluster-proxy -n c1
$ helm uninstall spoke-cluster-addons -n c1
```

The command removes all the Kubernetes components associated with the chart and deletes the release.

## Configuration

The following table lists the configurable parameters of the `spoke-cluster-proxy` chart and their default values.
The following table lists the configurable parameters of the `spoke-cluster-addons` chart and their default values.

| Parameter | Description | Default |
|----------------------|-------------|----------------------------------------------------|
Expand All @@ -56,12 +56,12 @@ The following table lists the configurable parameters of the `spoke-cluster-prox
Specify each parameter using the `--set key=value[,key=value]` argument to `helm upgrade -i`. For example:

```bash
$ helm upgrade -i spoke-cluster-proxy appscode/spoke-cluster-proxy -n c1 --create-namespace --version=v2024.2.25 --set kubectl.image=ghcr.io/appscode/kubectl-nonroot:1.25
$ helm upgrade -i spoke-cluster-addons appscode/spoke-cluster-addons -n c1 --create-namespace --version=v2024.5.17 --set kubectl.image=ghcr.io/appscode/kubectl-nonroot:1.25
```

Alternatively, a YAML file that specifies the values for the parameters can be provided while
installing the chart. For example:

```bash
$ helm upgrade -i spoke-cluster-proxy appscode/spoke-cluster-proxy -n c1 --create-namespace --version=v2024.2.25 --values values.yaml
$ helm upgrade -i spoke-cluster-addons appscode/spoke-cluster-addons -n c1 --create-namespace --version=v2024.5.17 --values values.yaml
```
18 changes: 18 additions & 0 deletions charts/spoke-cluster-addons/doc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
project:
name: Spoke Cluster Addons
shortName: Spoke Cluster Addons
url: https://github.com/kluster-manager/installer
description: Spoke Cluster Addons
app: a Spoke Cluster Addons
repository:
url: https://charts.appscode.com/stable
name: appscode
chart:
name: spoke-cluster-addons
values: -- generate from values file --
valuesExample: -- generate from values file --
prerequisites:
- Kubernetes 1.21+
release:
name: spoke-cluster-addons
namespace: c1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "spoke-cluster-proxy.name" -}}
{{- define "spoke-cluster-addons.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

Expand All @@ -10,7 +10,7 @@ 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).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "spoke-cluster-proxy.fullname" -}}
{{- define "spoke-cluster-addons.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
Expand All @@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "spoke-cluster-proxy.chart" -}}
{{- define "spoke-cluster-addons.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "spoke-cluster-proxy.labels" -}}
helm.sh/chart: {{ include "spoke-cluster-proxy.chart" . }}
{{ include "spoke-cluster-proxy.selectorLabels" . }}
{{- define "spoke-cluster-addons.labels" -}}
helm.sh/chart: {{ include "spoke-cluster-addons.chart" . }}
{{ include "spoke-cluster-addons.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
Expand All @@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{/*
Selector labels
*/}}
{{- define "spoke-cluster-proxy.selectorLabels" -}}
app.kubernetes.io/name: {{ include "spoke-cluster-proxy.name" . }}
{{- define "spoke-cluster-addons.selectorLabels" -}}
app.kubernetes.io/name: {{ include "spoke-cluster-addons.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "spoke-cluster-proxy.serviceAccountName" -}}
{{- define "spoke-cluster-addons.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "spoke-cluster-proxy.fullname" .) .Values.serviceAccount.name }}
{{- default (include "spoke-cluster-addons.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
Expand All @@ -64,6 +64,6 @@ Create the name of the service account to use
{{/*
Addon manager namespace
*/}}
{{- define "spoke-cluster-proxy.namespace" -}}
{{- define "spoke-cluster-addons.namespace" -}}
{{ ternary .Release.Namespace (required "A valid .Values.addonManagerNamespace is required!" .Values.addonManagerNamespace) (empty .Values.kubeconfigSecretName) }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
apiVersion: batch/v1
kind: Job
metadata:
name: spoke-cluster-proxy-configure-addon
name: spoke-cluster-addons-configure-addon
namespace: {{ .Release.Namespace }}
annotations:
"helm.sh/hook-weight": "2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{{ $content := toString $data }}
{{ $crd := dig "spec" "names" "plural" "" ($content | fromYaml) }}
{{ $job := printf "spoke-cluster-proxy-regcrd-%s" $crd | trunc 52 }}
{{ $job := printf "spoke-cluster-addons-regcrd-%s" $crd | trunc 52 }}
---
apiVersion: v1
kind: ConfigMap
Expand Down
File renamed without changes.
18 changes: 0 additions & 18 deletions charts/spoke-cluster-proxy/doc.yaml

This file was deleted.

0 comments on commit 55f6832

Please sign in to comment.