Skip to content

Commit 7b013b6

Browse files
committed
[bitnami/cdi-operator]: Add Charts
based on Release 1.62.0
1 parent 1e67c67 commit 7b013b6

File tree

15 files changed

+7300
-0
lines changed

15 files changed

+7300
-0
lines changed

bitnami/cdi-operator/Chart.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
annotations:
2+
category: Infrastructure
3+
licenses: Apache-2.0
4+
apiVersion: v2
5+
appVersion: 1.62.0
6+
dependencies:
7+
- name: common
8+
repository: oci://registry-1.docker.io/bitnamicharts
9+
tags:
10+
- bitnami-common
11+
version: 2.x.x
12+
description: The Containerized Data Importer (CDI) project provides facilities for
13+
enabling Persistent Volume Claims (PVCs) to be used as disks for KubeVirt VMs by
14+
way of DataVolumes.
15+
home: https://bitnami.com
16+
icon: https://github.com/kubevirt/community/blob/77864f3ab046cb62b8df2f9a7f59ba3e19aaa948/logo/KubeVirt_icon.png
17+
keywords:
18+
- kubevirt
19+
- kubernetes
20+
- infrastructure
21+
- virtualization
22+
maintainers:
23+
- name: Broadcom, Inc. All Rights Reserved.
24+
url: https://github.com/bitnami/charts
25+
name: cdi-operator
26+
sources:
27+
- https://kubevirt.io/user-guide/storage/containerized_data_importer/
28+
version: 1.62.0

bitnami/cdi-operator/README.md

Lines changed: 363 additions & 0 deletions
Large diffs are not rendered by default.

bitnami/cdi-operator/crds/cdi-operator.yaml

Lines changed: 5082 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
CHART NAME: {{ .Chart.Name }}
2+
CHART VERSION: {{ .Chart.Version }}
3+
APP VERSION: {{ .Chart.AppVersion }}
4+
5+
Did you know there are enterprise versions of the Bitnami catalog? For enhanced secure software supply chain features, unlimited pulls from Docker, LTS support, or application customization, see Bitnami Premium or Tanzu Application Catalog. See https://www.arrow.com/globalecs/na/vendors/bitnami for more information.
6+
7+
** Please be patient while the chart is being deployed **
8+
9+
{{- if .Values.diagnosticMode.enabled }}
10+
The chart has been deployed in diagnostic mode. All probes have been disabled and the command has been overwritten with:
11+
12+
command: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.command "context" $) | nindent 4 }}
13+
args: {{- include "common.tplvalues.render" (dict "value" .Values.diagnosticMode.args "context" $) | nindent 4 }}
14+
15+
Get the list of pods by executing:
16+
17+
kubectl get pods --namespace {{ include "common.names.namespace" . | quote }} -l app.kubernetes.io/instance={{ .Release.Name }}
18+
19+
Access the pod you want to debug by executing
20+
21+
kubectl exec --namespace {{ include "common.names.namespace" . | quote }} -ti <NAME OF THE POD> -- bash
22+
23+
24+
{{- else }}
25+
26+
27+
{{- end }}
28+
29+
{{- include "common.warnings.rollingTag" .Values.cdioperator.image }}
30+
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{{/*
2+
Copyright Broadcom, Inc. All Rights Reserved.
3+
SPDX-License-Identifier: APACHE-2.0
4+
*/}}
5+
6+
{{/*
7+
Return the proper cdioperator image name
8+
*/}}
9+
{{- define "cdioperator.image" -}}
10+
{{ include "common.images.image" (dict "imageRoot" .Values.cdioperator.image "global" .Values.global) }}
11+
{{- end -}}
12+
13+
{{/*
14+
Return the proper image name (for the init container volume-permissions image)
15+
*/}}
16+
{{- define "cdioperator.volumePermissions.image" -}}
17+
{{- include "common.images.image" ( dict "imageRoot" .Values.volumePermissions.image "global" .Values.global ) -}}
18+
{{- end -}}
19+
20+
{{/*
21+
Return the proper Docker Image Registry Secret Names
22+
*/}}
23+
{{- define "cdioperator.imagePullSecrets" -}}
24+
{{- include "common.images.renderPullSecrets" (dict "images" (list .Values.cdioperator.image .Values.volumePermissions.image) "context" $) -}}
25+
{{- end -}}
26+
27+
{{/*
28+
Create the name of the service account to use
29+
*/}}
30+
{{- define "cdioperator.serviceAccountName" -}}
31+
{{- if .Values.serviceAccount.create -}}
32+
{{ default (include "common.names.fullname" .) .Values.serviceAccount.name }}
33+
{{- else -}}
34+
{{ default "default" .Values.serviceAccount.name }}
35+
{{- end -}}
36+
{{- end -}}
37+
38+
{{/*
39+
Return true if cert-manager required annotations for TLS signed certificates are set in the Ingress annotations
40+
Ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
41+
*/}}
42+
{{- define "cdioperator.ingress.certManagerRequest" -}}
43+
{{ if or (hasKey . "cert-manager.io/cluster-issuer") (hasKey . "cert-manager.io/issuer") }}
44+
{{- true -}}
45+
{{- end -}}
46+
{{- end -}}
47+
48+
{{/*
49+
Compile all warnings into a single message.
50+
*/}}
51+
{{- define "cdioperator.validateValues" -}}
52+
{{- $messages := list -}}
53+
{{- $messages := append $messages (include "cdioperator.validateValues.foo" .) -}}
54+
{{- $messages := append $messages (include "cdioperator.validateValues.bar" .) -}}
55+
{{- $messages := without $messages "" -}}
56+
{{- $message := join "\n" $messages -}}
57+
58+
{{- if $message -}}
59+
{{- printf "\nVALUES VALIDATION:\n%s" $message -}}
60+
{{- end -}}
61+
{{- end -}}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{{- /*
2+
Copyright Broadcom, Inc. All Rights Reserved.
3+
SPDX-License-Identifier: APACHE-2.0
4+
*/}}
5+
6+
apiVersion: cdi.kubevirt.io/v1beta1
7+
kind: CDI
8+
metadata:
9+
name: {{ template "common.names.fullname" . }}
10+
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
11+
spec:
12+
config:
13+
{{- if .Values.cdi.config.podResource }}
14+
podResourceRequirements: {{- toYaml .Values.cdi.config.podResource | nindent 6 }}
15+
{{- else if ne .Values.cdi.config.podResourcePreset "none" }}
16+
podResourceRequirements: {{- include "common.resources.preset" (dict "type" .Values.cdi.config.podResourcePreset) | nindent 6 }}
17+
{{- end }}
18+
featureGates:
19+
{{- range $key, $enabled := .Values.cdi.config.featureGates }}
20+
{{- if $enabled }}
21+
- {{ $key }}
22+
{{- end }}
23+
{{- end }}
24+
{{- with .Values.cdi.config.extraFeatureGates }}
25+
{{- range . }}
26+
- {{ . }}
27+
{{- end }}
28+
{{- end }}
29+
imagePullPolicy: {{ .Values.cdi.pullPolicy }}
30+
infra:
31+
nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.cdi.infra.nodeSelector "context" $) | nindent 6 }}
32+
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.cdi.infra.tolerations "context" .) | nindent 4 }}
33+
workload:
34+
nodeSelector: {{- include "common.tplvalues.render" ( dict "value" .Values.cdi.workload.nodeSelector "context" $) | nindent 6 }}

0 commit comments

Comments
 (0)