Helmule MVP
Basic functionality is there, helmule can mirror helm chart with small modifications
This commit is contained in:
51
helmule/examples/patches/flux-regexp/patch.yaml
Normal file
51
helmule/examples/patches/flux-regexp/patch.yaml
Normal file
@ -0,0 +1,51 @@
|
||||
---
|
||||
name: Remove CRDs leftovers from values
|
||||
targets:
|
||||
- values.yaml
|
||||
before: |-
|
||||
installCRDs: true
|
||||
crds:
|
||||
# -- Add annotations to all CRD resources, e.g. "helm.sh/resource-policy": keep
|
||||
annotations: \{\}
|
||||
after: |-
|
||||
crds:
|
||||
install: true
|
||||
|
||||
# Add seccomp to pod security context
|
||||
podSeccompProfile:
|
||||
type: RuntimeDefault
|
||||
|
||||
# Add seccomp to container security context
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "256Mi"
|
||||
cpu: "500m"
|
||||
|
||||
---
|
||||
name: Append crd install data to helpers
|
||||
targets:
|
||||
- templates/_helper.tpl
|
||||
after: |-
|
||||
{{- define "crdInstall" -}}
|
||||
{{- printf "%s-%s" ( include "name" . ) "crd-install" | replace "+" "_" | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "crdInstallJob" -}}
|
||||
{{- printf "%s-%s-%s" ( include "name" . ) "crd-install" .Chart.AppVersion | replace "+" "_" | replace "." "-" | trimSuffix "-" | trunc 63 -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "crdInstallAnnotations" -}}
|
||||
"helm.sh/hook": "pre-install,pre-upgrade"
|
||||
"helm.sh/hook-delete-policy": "before-hook-creation,hook-succeeded,hook-failed"
|
||||
{{- end -}}
|
||||
|
||||
{{/* Create a label which can be used to select any orphaned crd-install hook resources */}}
|
||||
{{- define "crdInstallSelector" -}}
|
||||
{{- printf "%s" "crd-install-hook" -}}
|
||||
{{- end -}}
|
34
helmule/examples/patches/git/patch-2.diff
Normal file
34
helmule/examples/patches/git/patch-2.diff
Normal file
@ -0,0 +1,34 @@
|
||||
diff --git a/values.yaml b/values.yaml
|
||||
index 7ed6839..2b144ad 100644
|
||||
--- a/values.yaml
|
||||
+++ b/values.yaml
|
||||
@@ -1,6 +1,6 @@
|
||||
image:
|
||||
repository: registry.hub.docker.com/vaultwarden/server
|
||||
- pullPolicy: IfNotPresent
|
||||
+ pullPolicy: Always
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: ""
|
||||
imagePullSecrets: []
|
||||
@@ -10,13 +10,14 @@ podAnnotations: {}
|
||||
podSecurityContext: {}
|
||||
# fsGroup: 2000
|
||||
|
||||
-securityContext: {}
|
||||
-# capabilities:
|
||||
-# drop:
|
||||
-# - ALL
|
||||
-# readOnlyRootFilesystem: true
|
||||
-# runAsNonRoot: true
|
||||
-# runAsUser: 1000
|
||||
+securityContext:
|
||||
+capabilities:
|
||||
+ drop:
|
||||
+ - ALL
|
||||
+
|
||||
+readOnlyRootFilesystem: true
|
||||
+runAsNonRoot: true
|
||||
+runAsUser: 1000
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
13
helmule/examples/patches/git/patch.diff
Normal file
13
helmule/examples/patches/git/patch.diff
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/Chart.yaml b/Chart.yaml
|
||||
index d8995d5..0e5f5a5 100644
|
||||
--- a/Chart.yaml
|
||||
+++ b/Chart.yaml
|
||||
@@ -8,7 +8,7 @@ keywords:
|
||||
- bitwarden
|
||||
- bitwarden_rs
|
||||
maintainers:
|
||||
-- email: allanger@badhouseplants.net
|
||||
+- email: Somebody else
|
||||
name: Nikolai Rodionov
|
||||
url: https://badhouseplants.net
|
||||
name: vaultwarden
|
7
helmule/examples/patches/regexp/patch.yaml
Normal file
7
helmule/examples/patches/regexp/patch.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
name: Add spaces before comments
|
||||
targets:
|
||||
- values.yaml
|
||||
before: |-
|
||||
^.*[\S]+.*#
|
||||
after: " #"
|
Reference in New Issue
Block a user