Skip to content

Commit 6f84e81

Browse files
init
1 parent fda1233 commit 6f84e81

File tree

4 files changed

+131
-0
lines changed

4 files changed

+131
-0
lines changed

charts/vcluster/.helmignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Patterns to ignore when building packages.
2+
# This supports shell glob matching, relative path matching, and
3+
# negation (prefixed with !). Only one pattern per line.
4+
.DS_Store
5+
# Common VCS dirs
6+
.git/
7+
.gitignore
8+
.bzr/
9+
.bzrignore
10+
.hg/
11+
.hgignore
12+
.svn/
13+
# Common backup files
14+
*.swp
15+
*.bak
16+
*.tmp
17+
*.orig
18+
*~
19+
# Various IDEs
20+
.project
21+
.idea/
22+
*.tmproj
23+
.vscode/

charts/vcluster/Chart.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v2
2+
name: vcluster
3+
description: A Helm chart for Kubernetes
4+
type: application
5+
version: 0.28.0-0
6+
appVersion: "0.28.0"
7+
dependencies:
8+
- name: vcluster
9+
version: 0.28.0
10+
repository: https://charts.loft.sh
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{{/*
2+
Expand the name of the chart.
3+
*/}}
4+
{{- define "vcluster.name" -}}
5+
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
6+
{{- end }}
7+
8+
{{/*
9+
Create a default fully qualified app name.
10+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
11+
If release name contains chart name it will be used as a full name.
12+
*/}}
13+
{{- define "cf-vcluster.fullname" -}}
14+
{{- if .Values.fullnameOverride }}
15+
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
16+
{{- else }}
17+
{{- $name := default .Chart.Name .Values.nameOverride }}
18+
{{- if contains $name .Release.Name }}
19+
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
20+
{{- else }}
21+
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
22+
{{- end }}
23+
{{- end }}
24+
{{- end }}
25+
26+
{{/*
27+
Create chart name and version as used by the chart label.
28+
*/}}
29+
{{- define "cf-vcluster.chart" -}}
30+
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
31+
{{- end }}
32+
33+
{{/*
34+
Common labels
35+
*/}}
36+
{{- define "cf-vcluster.labels" -}}
37+
helm.sh/chart: {{ include "vcluster.chart" . }}
38+
{{ include "vcluster.selectorLabels" . }}
39+
{{- if .Chart.AppVersion }}
40+
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
41+
{{- end }}
42+
app.kubernetes.io/managed-by: {{ .Release.Service }}
43+
{{- end }}
44+
45+
{{/*
46+
Selector labels
47+
*/}}
48+
{{- define "cf-vcluster.selectorLabels" -}}
49+
app.kubernetes.io/name: {{ include "vcluster.name" . }}
50+
app.kubernetes.io/instance: {{ .Release.Name }}
51+
{{- end }}
52+
53+
{{/*
54+
Create the name of the service account to use
55+
*/}}
56+
{{- define "cf-vcluster.serviceAccountName" -}}
57+
{{- if .Values.serviceAccount.create }}
58+
{{- default (include "vcluster.fullname" .) .Values.serviceAccount.name }}
59+
{{- else }}
60+
{{- default "default" .Values.serviceAccount.name }}
61+
{{- end }}
62+
{{- end }}

charts/vcluster/values.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
ingress:
2+
internal:
3+
enabled: false
4+
annotations: {}
5+
ingressClassName: "nginx-internal"
6+
# -- Possibility to override backend service name for ingress. If not set default vcluster backend service will be used
7+
backendService: {}
8+
host:
9+
name: "{{ .Release.Name }}"
10+
domain: example.com
11+
public:
12+
enabled: false
13+
ingressClassName: "nginx-public"
14+
# -- Possibility to override backend service name for ingress. If not set default vcluster backend service will be used
15+
backendService: {}
16+
# backendService:
17+
# name: "interceptor-service"
18+
# port: 80
19+
annotations: {}
20+
host:
21+
name: "{{ .Release.Name }}"
22+
domain: example.com
23+
24+
vcluster:
25+
controlPlane:
26+
distro:
27+
k8s:
28+
enabled: true
29+
apiServer:
30+
image:
31+
tag: "v1.30.5"
32+
extraArgs:
33+
- --oidc-issuer-url=https://dexidp.shared-services.cf-infra.com
34+
- --oidc-client-id=vcluster-login
35+
- --oidc-username-claim=email
36+
- --oidc-groups-claim=groups

0 commit comments

Comments
 (0)