-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade CDI images Signed-off-by: Atanas Dinov <[email protected]> * make charts Signed-off-by: Atanas Dinov <[email protected]> * make html Signed-off-by: Atanas Dinov <[email protected]> --------- Signed-off-by: Atanas Dinov <[email protected]>
- Loading branch information
1 parent
39b7fc9
commit e8eb325
Showing
19 changed files
with
5,564 additions
and
5 deletions.
There are no files selected for viewing
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,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/ |
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,7 @@ | ||
apiVersion: v2 | ||
appVersion: 1.58.0 | ||
description: A Helm chart for Containerized Data Importer (CDI) | ||
icon: https://raw.githubusercontent.com/cncf/artwork/main/projects/kubevirt/icon/color/kubevirt-icon-color.svg | ||
name: cdi | ||
type: application | ||
version: 0.2.4 |
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,2 @@ | ||
Verify that all CDI components are installed correctly: | ||
kubectl get all -n {{ .Release.Namespace }} |
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,62 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "cdi.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). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "cdi.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 }} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "cdi.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "cdi.labels" -}} | ||
helm.sh/chart: {{ include "cdi.chart" . }} | ||
{{ include "cdi.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "cdi.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "cdi.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create the name of the service account to use | ||
*/}} | ||
{{- define "cdi.serviceAccountName" -}} | ||
{{- if .Values.serviceAccount.create }} | ||
{{- default (include "cdi.fullname" .) .Values.serviceAccount.name }} | ||
{{- else }} | ||
{{- default "default" .Values.serviceAccount.name }} | ||
{{- end }} | ||
{{- end }} |
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,47 @@ | ||
{{/* Hook annotations */}} | ||
{{- define "cdi.hook.annotations" -}} | ||
annotations: | ||
"helm.sh/hook": {{ .hookType }} | ||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded | ||
"helm.sh/hook-weight": {{ .hookWeight | quote }} | ||
{{- end -}} | ||
|
||
{{/* Namespace modifying hook annotations */}} | ||
{{- define "cdi.namespaceHook.annotations" -}} | ||
{{ template "cdi.hook.annotations" merge (dict "hookType" "pre-install") . }} | ||
{{- end -}} | ||
|
||
{{/* CRD upgrading hook annotations */}} | ||
{{- define "cdi.crdUpgradeHook.annotations" -}} | ||
{{ template "cdi.hook.annotations" merge (dict "hookType" "pre-upgrade") . }} | ||
{{- end -}} | ||
|
||
{{/* Custom resource uninstalling hook annotations */}} | ||
{{- define "cdi.crUninstallHook.annotations" -}} | ||
{{ template "cdi.hook.annotations" merge (dict "hookType" "pre-delete") . }} | ||
{{- end -}} | ||
|
||
{{/* CRD uninstalling hook annotations */}} | ||
{{- define "cdi.crdUninstallHook.annotations" -}} | ||
{{ template "cdi.hook.annotations" merge (dict "hookType" "post-delete") . }} | ||
{{- end -}} | ||
|
||
{{/* Namespace modifying hook name */}} | ||
{{- define "cdi.namespaceHook.name" -}} | ||
{{ include "cdi.fullname" . }}-namespace-modify | ||
{{- end }} | ||
|
||
{{/* CRD upgrading hook name */}} | ||
{{- define "cdi.crdUpgradeHook.name" -}} | ||
{{ include "cdi.fullname" . }}-crd-upgrade | ||
{{- end }} | ||
|
||
{{/* Custom resource uninstalling hook name */}} | ||
{{- define "cdi.crUninstallHook.name" -}} | ||
{{ include "cdi.fullname" . }}-uninstall | ||
{{- end }} | ||
|
||
{{/* CRD uninstalling hook name */}} | ||
{{- define "cdi.crdUninstallHook.name" -}} | ||
{{ include "cdi.fullname" . }}-crd-uninstall | ||
{{- end }} |
Oops, something went wrong.