Skip to content

Commit 57ef4d3

Browse files
committed
some fixes to chart
1 parent 72b3157 commit 57ef4d3

File tree

11 files changed

+61
-457
lines changed

11 files changed

+61
-457
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
charts

helm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: csdp-installer
33
description: A Helm chart used for installing a CSDP runtime
44
type: application
5-
version: 0.1.4
5+
version: 0.1.5
66
appVersion: v0.0.4
77

88
dependencies:

helm/install-values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
csdp-installer:
1+
csdpInstaller:
22
enabled: true
33

44
# CSDP platform details:

helm/templates/job.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
{{- if .Values.csdp-installer.enabled }}
1+
{{- if .Values.csdpInstaller.enabled }}
22
apiVersion: batch/v1
33
kind: Job
44
metadata:
55
name: csdp-installer
66
labels:
77
{{- include "csdp-installer.labels" . | nindent 4 }}
88
spec:
9-
ttlSecondsAfterFinished: {{ .Values.csdp-installer.installer.ttlSecondsAfterFinished }}
10-
backoffLimit: {{ .Values.csdp-installer.installer.backoffLimit }}
9+
ttlSecondsAfterFinished: {{ .Values.csdpInstaller.installer.ttlSecondsAfterFinished }}
10+
backoffLimit: {{ .Values.csdpInstaller.installer.backoffLimit }}
1111
template:
1212
metadata:
1313
labels:
1414
{{- include "csdp-installer.selectorLabels" . | nindent 8 }}
1515
spec:
16-
serviceAccount: {{ .Values.csdp-installer.installer.serviceAccount }}
16+
serviceAccount: {{ .Values.csdpInstaller.installer.serviceAccount }}
1717
restartPolicy: Never
1818
containers:
1919
- name: csdp-installer
20-
image: "{{ .Values.csdp-installer.installer.image.repository }}:{{ .Values.csdp-installer.installer.image.tag | default .Chart.AppVersion }}"
21-
imagePullPolicy: {{ .Values.csdp-installer.installer.imagePullPolicy }}
20+
image: "{{ .Values.csdpInstaller.installer.image.repository }}:{{ .Values.csdpInstaller.installer.image.tag | default .Chart.AppVersion }}"
21+
imagePullPolicy: {{ .Values.csdpInstaller.installer.imagePullPolicy }}
2222
command:
2323
- bash
2424
args:
@@ -88,5 +88,5 @@ spec:
8888
key: gitIntegration.token
8989
optional: true
9090
resources:
91-
{{- toYaml .Values.csdp-installer.installer.resources | nindent 12 }}
91+
{{- toYaml .Values.csdpInstaller.installer.resources | nindent 12 }}
9292
{{ end }}

helm/templates/secret.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
{{- if .Values.csdp-installer.enabled }}
1+
{{- if .Values.csdpInstaller.enabled }}
22
apiVersion: v1
33
kind: Secret
44
metadata:
55
name: csdp-installer
66
stringData:
7-
csdp.url: {{ .Values.csdp-installer.platform.url }}
8-
csdp.token: {{ .Values.csdp-installer.platform.token }}
9-
runtime.name: {{ .Values.csdp-installer.runtime.name }}
10-
runtime.repo: {{ .Values.csdp-installer.runtime.repo }}
11-
runtime.gitToken: {{ .Values.csdp-installer.runtime.gitToken }}
12-
runtime.ingressURL: {{ .Values.csdp-installer.runtime.ingressURL }}
13-
runtime.cluster: {{ .Values.csdp-installer.runtime.cluster }}
14-
{{ end }}
7+
csdp.url: {{ .Values.csdpInstaller.platform.url }}
8+
csdp.token: {{ .Values.csdpInstaller.platform.token }}
9+
runtime.name: {{ .Values.csdpInstaller.runtime.name }}
10+
runtime.repo: {{ .Values.csdpInstaller.runtime.repo }}
11+
runtime.gitToken: {{ .Values.csdpInstaller.runtime.gitToken }}
12+
runtime.ingressURL: {{ .Values.csdpInstaller.runtime.ingressURL }}
13+
runtime.cluster: {{ .Values.csdpInstaller.runtime.cluster }}
14+
{{- end }}

helm/values.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,43 @@ argo-cd:
2727
pullPolicy: IfNotPresent
2828
# -- Tag to use for the application set controller
2929
tag: "v0.4.1"
30+
31+
csdpInstaller:
32+
enabled: false
33+
34+
# CSDP platform details:
35+
platform:
36+
# The Codefresh platform URL
37+
url: <PLATFORM_URL> # if not https://g.codefresh.io, otherwise, leave empty
38+
# Codefresh API Key
39+
token: <PLATFORM_API_KEY>
40+
41+
runtime:
42+
# CSDP runtime name
43+
name: <RUNTIME_NAME>
44+
# CSDP runtime installation repo url
45+
repo: <INSTALLATION_REPO>
46+
# Git authentication token
47+
gitToken: <GIT_TOKEN>
48+
# Ingress URL that will be used to reach to services inside of the cluster
49+
ingressURL: <INGRESS_URL>
50+
# Kubernetes cluster address or name that will be used to identify this cluster
51+
cluster: https://kubernetes.docker.internal:6443
52+
53+
# Controlls the spec of the csdp installer job
54+
installer:
55+
image:
56+
repository: quay.io/codefresh/csdp-installer
57+
pullPolicy: IfNotPresent
58+
# Default tag is the chart appVersion
59+
tag: ""
60+
serviceAccount: argocd-server
61+
ttlSecondsAfterFinished: 600
62+
backoffLimit: 20
63+
resources:
64+
limits:
65+
memory: 256Mi
66+
cpu: "1"
67+
requests:
68+
memory: 128Mi
69+
cpu: "0.2"

kustomize/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
44
- https://github.com/codefresh-io/cli-v2.git/manifests/argo-cd?ref=v0.0.301
5-
- ./runtime-installer.secret.yaml
6-
- ./runtime-installer.job.yaml
5+
- ./csdp-installer.secret.yaml
6+
- ./csdp-installer.job.yaml

kustomize/runtime-installer.job.yaml

Lines changed: 0 additions & 93 deletions
This file was deleted.

kustomize/runtime-installer.secret.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

runtime-installer/Dockerfile

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)