Skip to content

Commit 48b40c5

Browse files
committed
[bitnami/kubevirt-operator]: Add Charts
based on Kubevirt-operator 1.5.2 Signed-off-by: Alexis La Goutte <[email protected]>
1 parent 5e81d2a commit 48b40c5

20 files changed

+9810
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
annotations:
2+
category: Infrastructure
3+
licenses: Apache-2.0
4+
apiVersion: v2
5+
appVersion: 1.5.2
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: KubeVirt is an open source project enabling Kubernetes to orchestrate
13+
virtual machines
14+
home: https://bitnami.com
15+
icon: https://github.com/kubevirt/community/blob/77864f3ab046cb62b8df2f9a7f59ba3e19aaa948/logo/KubeVirt_icon.png
16+
keywords:
17+
- kubevirt
18+
- kubernetes
19+
- infrastructure
20+
- virtualization
21+
maintainers:
22+
- name: Broadcom, Inc. All Rights Reserved.
23+
url: https://github.com/bitnami/charts
24+
name: kubevirt
25+
sources:
26+
- https://github.com/bitnami/charts/tree/main/bitnami/kubevirt
27+
version: 0.1.0
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
In order to replicate the container startup scripts execute this command:
24+
25+
%%ENTRYPOINT and CMD from main container%%
26+
27+
{{- else }}
28+
29+
%%Instructions to access the application depending on the serviceType and other considerations%%
30+
31+
{{- end }}
32+
33+
{{- include "common.warnings.rollingTag" .Values.operator.image }}
34+
{{- include "common.warnings.rollingTag" .Values.%%OTHER_OBJECT_BLOCK%%.image }}
35+
{{- include "%%TEMPLATE_NAME%%.validateValues" . }}
36+
{{- include "common.warnings.modifiedImages" (dict "images" (list .Values.operator.image .Values.%%OTHER_OBJECT_BLOCK%%.image) "context" $) }}
37+
{{- include "common.errors.insecureImages" (dict "images" (list .Values.operator.image .Values.%%OTHER_OBJECT_BLOCK%%.image) "context" $) }}

bitnami/kubevirt-operator/README.md

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

bitnami/kubevirt-operator/crds/KubeVirt.yaml

Lines changed: 6544 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
{{end}}
24+
25+
{{- include "common.warnings.rollingTag" .Values.operator.image }}
26+
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{{/*
2+
Copyright Broadcom, Inc. All Rights Reserved.
3+
SPDX-License-Identifier: APACHE-2.0
4+
*/}}
5+
6+
{{/*
7+
Return the proper operator image name
8+
*/}}
9+
{{- define "operator.image" -}}
10+
{{ include "common.images.image" (dict "imageRoot" .Values.operator.image "global" .Values.global) }}
11+
{{- end -}}
12+
13+
{{/*
14+
Return the proper image name (for the init container volume-permissions image)
15+
*/}}
16+
{{- define "operator.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+
24+
{{- define "operator.imagePullSecrets" -}}
25+
{{- include "common.images.renderPullSecrets" (dict "images" (list .Values.operator.image .Values.volumePermissions.image) "context" $) -}}
26+
{{- end -}}
27+
28+
{{/*
29+
Create the name of the service account to use
30+
*/}}
31+
{{- define "operator.serviceAccountName" -}}
32+
{{- if .Values.serviceAccount.create -}}
33+
{{ default (include "common.names.fullname" .) .Values.serviceAccount.name }}
34+
{{- else -}}
35+
{{ default "default" .Values.serviceAccount.name }}
36+
{{- end -}}
37+
{{- end -}}
38+
39+
{{/*
40+
Return true if cert-manager required annotations for TLS signed certificates are set in the Ingress annotations
41+
Ref: https://cert-manager.io/docs/usage/ingress/#supported-annotations
42+
*/}}
43+
{{- define "operator.ingress.certManagerRequest" -}}
44+
{{ if or (hasKey . "cert-manager.io/cluster-issuer") (hasKey . "cert-manager.io/issuer") }}
45+
{{- true -}}
46+
{{- end -}}
47+
{{- end -}}
48+
49+
{{/*
50+
Compile all warnings into a single message.
51+
*/}}
52+
{{- define "operator.validateValues" -}}
53+
{{- $messages := list -}}
54+
{{- $messages := append $messages (include "operator.validateValues.foo" .) -}}
55+
{{- $messages := append $messages (include "operator.validateValues.bar" .) -}}
56+
{{- $messages := without $messages "" -}}
57+
{{- $message := join "\n" $messages -}}
58+
59+
{{- if $message -}}
60+
{{- printf "\nVALUES VALIDATION:\n%s" $message -}}
61+
{{- end -}}
62+
{{- end -}}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{{- /*
2+
Copyright Broadcom, Inc. All Rights Reserved.
3+
SPDX-License-Identifier: APACHE-2.0
4+
*/}}
5+
6+
{{ if .Values.rbac.clusterrole.create }}
7+
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
8+
kind: ClusterRole
9+
metadata:
10+
name: kubevirt.io:operator
11+
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
12+
app.kubernetes.io/component: operator
13+
operator.kubevirt.io: ""
14+
rbac.authorization.k8s.io/aggregate-to-admin: "true"
15+
{{- if .Values.commonAnnotations }}
16+
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
17+
{{- end }}
18+
rules:
19+
- apiGroups:
20+
- kubevirt.io
21+
resources:
22+
- kubevirts
23+
verbs:
24+
- get
25+
- delete
26+
- create
27+
- update
28+
- patch
29+
- list
30+
- watch
31+
- deletecollection
32+
{{- if .Values.rbac.clusterrole.rules }}
33+
{{- include "common.tplvalues.render" ( dict "value" .Values.rbac.clusterrole.rules "context" $ ) | nindent 2 }}
34+
{{- end }}
35+
{{- end }}
36+

0 commit comments

Comments
 (0)