forked from suse-edge/Factory
Compare commits
1 Commits
kubevirt_c
...
sriov_upda
Author | SHA256 | Date | |
---|---|---|---|
6910ab6577
|
@@ -210,7 +210,3 @@ staging_build:
|
|||||||
source_package: kiwi-builder-image
|
source_package: kiwi-builder-image
|
||||||
source_project: isv:SUSE:Edge:Factory
|
source_project: isv:SUSE:Edge:Factory
|
||||||
target_project: isv:SUSE:Edge:Factory:Staging
|
target_project: isv:SUSE:Edge:Factory:Staging
|
||||||
- branch_package:
|
|
||||||
source_package: kubevirt-chart
|
|
||||||
source_project: isv:SUSE:Edge:Factory
|
|
||||||
target_project: isv:SUSE:Edge:Factory:Staging
|
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
#!BuildTag: %%IMG_PREFIX%%sriov-crd-chart:302.0.0_up0.4.0-%RELEASE%
|
|
||||||
#!BuildTag: %%IMG_PREFIX%%sriov-crd-chart:302.0.0_up0.4.0
|
|
||||||
apiVersion: v2
|
|
||||||
appVersion: 1.3.1
|
|
||||||
description: A Helm chart for KubeVirt
|
|
||||||
icon: https://raw.githubusercontent.com/cncf/artwork/main/projects/kubevirt/icon/color/kubevirt-icon-color.svg
|
|
||||||
name: kubevirt
|
|
||||||
type: application
|
|
||||||
version: 302.0.0+up0.4.0
|
|
@@ -1,8 +0,0 @@
|
|||||||
<services>
|
|
||||||
<service mode="buildtime" name="kiwi_metainfo_helper"/>
|
|
||||||
<service name="replace_using_env" mode="buildtime">
|
|
||||||
<param name="file">Chart.yaml</param>
|
|
||||||
<param name="eval">IMG_PREFIX=$(rpm --macros=/root/.rpmmacros -E %{?img_prefix})</param>
|
|
||||||
<param name="var">IMG_PREFIX</param>
|
|
||||||
</service>
|
|
||||||
</services>
|
|
@@ -1 +0,0 @@
|
|||||||
KubeVirt is a virtual machine management add-on for Kubernetes. The aim is to provide a common ground for virtualization solutions on top of Kubernetes.
|
|
File diff suppressed because it is too large
Load Diff
@@ -1,2 +0,0 @@
|
|||||||
Verify that all KubeVirt components are installed correctly:
|
|
||||||
kubectl get all -n {{ .Release.Namespace }}
|
|
@@ -1,62 +0,0 @@
|
|||||||
{{/*
|
|
||||||
Expand the name of the chart.
|
|
||||||
*/}}
|
|
||||||
{{- define "kubevirt.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 "kubevirt.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 "kubevirt.chart" -}}
|
|
||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Common labels
|
|
||||||
*/}}
|
|
||||||
{{- define "kubevirt.labels" -}}
|
|
||||||
helm.sh/chart: {{ include "kubevirt.chart" . }}
|
|
||||||
{{ include "kubevirt.selectorLabels" . }}
|
|
||||||
{{- if .Chart.AppVersion }}
|
|
||||||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
|
||||||
{{- end }}
|
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Selector labels
|
|
||||||
*/}}
|
|
||||||
{{- define "kubevirt.selectorLabels" -}}
|
|
||||||
app.kubernetes.io/name: {{ include "kubevirt.name" . }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Create the name of the service account to use
|
|
||||||
*/}}
|
|
||||||
{{- define "kubevirt.serviceAccountName" -}}
|
|
||||||
{{- if .Values.serviceAccount.create }}
|
|
||||||
{{- default (include "kubevirt.fullname" .) .Values.serviceAccount.name }}
|
|
||||||
{{- else }}
|
|
||||||
{{- default "default" .Values.serviceAccount.name }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
@@ -1,47 +0,0 @@
|
|||||||
{{/* Hook annotations */}}
|
|
||||||
{{- define "kubevirt.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 "kubevirt.namespaceHook.annotations" -}}
|
|
||||||
{{ template "kubevirt.hook.annotations" merge (dict "hookType" "pre-install") . }}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/* CRD upgrading hook annotations */}}
|
|
||||||
{{- define "kubevirt.crdUpgradeHook.annotations" -}}
|
|
||||||
{{ template "kubevirt.hook.annotations" merge (dict "hookType" "pre-upgrade") . }}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/* Custom resource uninstalling hook annotations */}}
|
|
||||||
{{- define "kubevirt.crUninstallHook.annotations" -}}
|
|
||||||
{{ template "kubevirt.hook.annotations" merge (dict "hookType" "pre-delete") . }}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/* CRD uninstalling hook annotations */}}
|
|
||||||
{{- define "kubevirt.crdUninstallHook.annotations" -}}
|
|
||||||
{{ template "kubevirt.hook.annotations" merge (dict "hookType" "post-delete") . }}
|
|
||||||
{{- end -}}
|
|
||||||
|
|
||||||
{{/* Namespace modifying hook name */}}
|
|
||||||
{{- define "kubevirt.namespaceHook.name" -}}
|
|
||||||
{{ include "kubevirt.fullname" . }}-namespace-modify
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/* CRD upgrading hook name */}}
|
|
||||||
{{- define "kubevirt.crdUpgradeHook.name" -}}
|
|
||||||
{{ include "kubevirt.fullname" . }}-crd-upgrade
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/* Custom resource uninstalling hook name */}}
|
|
||||||
{{- define "kubevirt.crUninstallHook.name" -}}
|
|
||||||
{{ include "kubevirt.fullname" . }}-uninstall
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{/* CRD uninstalling hook name */}}
|
|
||||||
{{- define "kubevirt.crdUninstallHook.name" -}}
|
|
||||||
{{ include "kubevirt.fullname" . }}-crd-uninstall
|
|
||||||
{{- end }}
|
|
@@ -1,55 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
name: {{ template "kubevirt.crdUninstallHook.name" . }}
|
|
||||||
{{ template "kubevirt.crdUninstallHook.annotations" (dict "hookWeight" 1) }}
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRole
|
|
||||||
metadata:
|
|
||||||
name: {{ template "kubevirt.crdUninstallHook.name" . }}
|
|
||||||
{{ template "kubevirt.crdUninstallHook.annotations" (dict "hookWeight" 1) }}
|
|
||||||
rules:
|
|
||||||
- apiGroups: [ "apiextensions.k8s.io" ]
|
|
||||||
resources: [ "customresourcedefinitions" ]
|
|
||||||
resourceNames:
|
|
||||||
- "kubevirts.kubevirt.io"
|
|
||||||
verbs: [ "delete" ]
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRoleBinding
|
|
||||||
metadata:
|
|
||||||
name: {{ template "kubevirt.crdUninstallHook.name" . }}
|
|
||||||
{{ template "kubevirt.crdUninstallHook.annotations" (dict "hookWeight" 2) }}
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
name: {{ template "kubevirt.crdUninstallHook.name" . }}
|
|
||||||
roleRef:
|
|
||||||
kind: ClusterRole
|
|
||||||
name: {{ template "kubevirt.crdUninstallHook.name" . }}
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
---
|
|
||||||
apiVersion: batch/v1
|
|
||||||
kind: Job
|
|
||||||
metadata:
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
name: {{ template "kubevirt.crdUninstallHook.name" . }}
|
|
||||||
{{ template "kubevirt.crdUninstallHook.annotations" (dict "hookWeight" 3) }}
|
|
||||||
spec:
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
name: {{ template "kubevirt.crdUninstallHook.name" . }}
|
|
||||||
spec:
|
|
||||||
serviceAccountName: {{ template "kubevirt.crdUninstallHook.name" . }}
|
|
||||||
restartPolicy: {{ .Values.hookRestartPolicy }}
|
|
||||||
containers:
|
|
||||||
- name: {{ template "kubevirt.crdUninstallHook.name" . }}
|
|
||||||
image: {{ .Values.hookImage }}
|
|
||||||
args:
|
|
||||||
- delete
|
|
||||||
- customresourcedefinitions
|
|
||||||
- kubevirts.kubevirt.io
|
|
||||||
securityContext:
|
|
||||||
{{- toYaml .Values.hookSecurityContext | nindent 12 }}
|
|
@@ -1,80 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ConfigMap
|
|
||||||
metadata:
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
name: kubevirt-crd-manifest
|
|
||||||
{{ template "kubevirt.crdUpgradeHook.annotations" (dict "hookWeight" 1) }}
|
|
||||||
data:
|
|
||||||
crd: |-
|
|
||||||
{{ $.Files.Get "crds/kubevirt.yaml" | nindent 4 }}
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
name: {{ template "kubevirt.crdUpgradeHook.name" . }}
|
|
||||||
{{ template "kubevirt.crdUpgradeHook.annotations" (dict "hookWeight" 2) }}
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRole
|
|
||||||
metadata:
|
|
||||||
name: {{ template "kubevirt.crdUpgradeHook.name" . }}
|
|
||||||
{{ template "kubevirt.crdUpgradeHook.annotations" (dict "hookWeight" 2) }}
|
|
||||||
rules:
|
|
||||||
- apiGroups: [ "" ]
|
|
||||||
resources: [ "configmaps" ]
|
|
||||||
resourceNames:
|
|
||||||
- "kubevirt-crd-manifest"
|
|
||||||
verbs: [ "get" ]
|
|
||||||
- apiGroups: [ "apiextensions.k8s.io" ]
|
|
||||||
resources: [ "customresourcedefinitions" ]
|
|
||||||
resourceNames:
|
|
||||||
- "kubevirts.kubevirt.io"
|
|
||||||
verbs: [ "get", "patch" ]
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRoleBinding
|
|
||||||
metadata:
|
|
||||||
name: {{ template "kubevirt.crdUpgradeHook.name" . }}
|
|
||||||
{{ template "kubevirt.crdUpgradeHook.annotations" (dict "hookWeight" 3) }}
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
name: {{ template "kubevirt.crdUpgradeHook.name" . }}
|
|
||||||
roleRef:
|
|
||||||
kind: ClusterRole
|
|
||||||
name: {{ template "kubevirt.crdUpgradeHook.name" . }}
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
---
|
|
||||||
apiVersion: batch/v1
|
|
||||||
kind: Job
|
|
||||||
metadata:
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
name: {{ template "kubevirt.crdUpgradeHook.name" . }}
|
|
||||||
{{ template "kubevirt.crdUpgradeHook.annotations" (dict "hookWeight" 4) }}
|
|
||||||
spec:
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
name: {{ template "kubevirt.crdUpgradeHook.name" . }}
|
|
||||||
spec:
|
|
||||||
serviceAccountName: {{ template "kubevirt.crdUpgradeHook.name" . }}
|
|
||||||
restartPolicy: {{ .Values.hookRestartPolicy }}
|
|
||||||
containers:
|
|
||||||
- name: {{ template "kubevirt.crdUpgradeHook.name" . }}
|
|
||||||
securityContext:
|
|
||||||
{{- toYaml .Values.hookSecurityContext | nindent 12 }}
|
|
||||||
image: {{ .Values.hookImage }}
|
|
||||||
args:
|
|
||||||
- apply
|
|
||||||
- -f
|
|
||||||
- /etc/manifests/crd.yaml
|
|
||||||
volumeMounts:
|
|
||||||
- name: crd-volume
|
|
||||||
mountPath: /etc/manifests
|
|
||||||
volumes:
|
|
||||||
- name: crd-volume
|
|
||||||
configMap:
|
|
||||||
name: kubevirt-crd-manifest
|
|
||||||
items:
|
|
||||||
- key: crd
|
|
||||||
path: crd.yaml
|
|
File diff suppressed because it is too large
Load Diff
@@ -1,71 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
name: {{ template "kubevirt.crUninstallHook.name" . }}
|
|
||||||
{{ template "kubevirt.crUninstallHook.annotations" (dict "hookWeight" 1) }}
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: Role
|
|
||||||
metadata:
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
name: {{ template "kubevirt.crUninstallHook.name" . }}
|
|
||||||
{{ template "kubevirt.crUninstallHook.annotations" (dict "hookWeight" 1) }}
|
|
||||||
rules:
|
|
||||||
- apiGroups: [ "kubevirt.io" ]
|
|
||||||
resources: [ "kubevirts" ]
|
|
||||||
resourceNames:
|
|
||||||
- "kubevirt"
|
|
||||||
verbs: [ "get", "list", "delete" ]
|
|
||||||
- apiGroups: [ "apps" ]
|
|
||||||
resources: [ "deployments", "daemonsets" ]
|
|
||||||
verbs: [ "get", "list" ]
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: RoleBinding
|
|
||||||
metadata:
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
name: {{ template "kubevirt.crUninstallHook.name" . }}
|
|
||||||
{{ template "kubevirt.crUninstallHook.annotations" (dict "hookWeight" 2) }}
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
name: {{ template "kubevirt.crUninstallHook.name" . }}
|
|
||||||
roleRef:
|
|
||||||
kind: Role
|
|
||||||
name: {{ template "kubevirt.crUninstallHook.name" . }}
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
---
|
|
||||||
apiVersion: batch/v1
|
|
||||||
kind: Job
|
|
||||||
metadata:
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
name: {{ template "kubevirt.crUninstallHook.name" . }}
|
|
||||||
{{ template "kubevirt.crUninstallHook.annotations" (dict "hookWeight" 3) }}
|
|
||||||
spec:
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
name: {{ template "kubevirt.crUninstallHook.name" . }}
|
|
||||||
spec:
|
|
||||||
serviceAccountName: {{ template "kubevirt.crUninstallHook.name" . }}
|
|
||||||
restartPolicy: {{ .Values.hookRestartPolicy }}
|
|
||||||
containers:
|
|
||||||
- name: {{ template "kubevirt.crUninstallHook.name" . }}
|
|
||||||
image: {{ .Values.hookImage }}
|
|
||||||
securityContext:
|
|
||||||
{{- toYaml .Values.hookSecurityContext | nindent 12 }}
|
|
||||||
args:
|
|
||||||
- delete
|
|
||||||
- kubevirt
|
|
||||||
- kubevirt
|
|
||||||
- name: {{ template "kubevirt.crUninstallHook.name" . }}-cleanup
|
|
||||||
image: {{ .Values.hookImage }}
|
|
||||||
securityContext:
|
|
||||||
{{- toYaml .Values.hookSecurityContext | nindent 12 }}
|
|
||||||
args:
|
|
||||||
- wait
|
|
||||||
- --for=delete
|
|
||||||
- deployments/virt-api
|
|
||||||
- deployments/virt-controller
|
|
||||||
- daemonsets/virt-handler
|
|
||||||
- --timeout=60s
|
|
@@ -1,32 +0,0 @@
|
|||||||
apiVersion: kubevirt.io/v1
|
|
||||||
kind: KubeVirt
|
|
||||||
metadata:
|
|
||||||
name: kubevirt
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
spec:
|
|
||||||
{{- with .Values.kubevirt.configuration }}
|
|
||||||
configuration:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.kubevirt.customizeComponents }}
|
|
||||||
customizeComponents:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
imagePullPolicy: {{ .Values.kubevirt.imagePullPolicy }}
|
|
||||||
{{- with .Values.kubevirt.infra }}
|
|
||||||
infra:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.kubevirt.uninstallStrategy }}
|
|
||||||
uninstallStrategy: {{ .Values.kubevirt.uninstallStrategy }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.kubevirt.workloadUpdateStrategy }}
|
|
||||||
workloadUpdateStrategy:
|
|
||||||
{{- toYaml . | nindent 4 }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.kubevirt.monitorNamespace }}
|
|
||||||
monitorNamespace: {{ .Values.kubevirt.monitorNamespace }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.kubevirt.monitorAccount }}
|
|
||||||
monitorAccount: {{ .Values.kubevirt.monitorAccount }}
|
|
||||||
{{- end }}
|
|
@@ -1,60 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
name: {{ template "kubevirt.namespaceHook.name" . }}
|
|
||||||
{{ template "kubevirt.namespaceHook.annotations" (dict "hookWeight" 1) }}
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRole
|
|
||||||
metadata:
|
|
||||||
name: {{ template "kubevirt.namespaceHook.name" . }}
|
|
||||||
{{ template "kubevirt.namespaceHook.annotations" (dict "hookWeight" 1) }}
|
|
||||||
rules:
|
|
||||||
- apiGroups: [ "" ]
|
|
||||||
resources: [ "namespaces" ]
|
|
||||||
resourceNames:
|
|
||||||
- {{ .Release.Namespace | quote }}
|
|
||||||
verbs: [ "get", "patch" ]
|
|
||||||
- apiGroups: [ "management.cattle.io" ] # Rancher
|
|
||||||
resources: [ "projects" ]
|
|
||||||
verbs: [ "updatepsa" ]
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRoleBinding
|
|
||||||
metadata:
|
|
||||||
name: {{ template "kubevirt.namespaceHook.name" . }}
|
|
||||||
{{ template "kubevirt.namespaceHook.annotations" (dict "hookWeight" 2) }}
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
name: {{ template "kubevirt.namespaceHook.name" . }}
|
|
||||||
roleRef:
|
|
||||||
kind: ClusterRole
|
|
||||||
name: {{ template "kubevirt.namespaceHook.name" . }}
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
---
|
|
||||||
apiVersion: batch/v1
|
|
||||||
kind: Job
|
|
||||||
metadata:
|
|
||||||
namespace: {{ .Release.Namespace }}
|
|
||||||
name: {{ template "kubevirt.namespaceHook.name" . }}
|
|
||||||
{{ template "kubevirt.namespaceHook.annotations" (dict "hookWeight" 3) }}
|
|
||||||
spec:
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
name: {{ template "kubevirt.namespaceHook.name" . }}
|
|
||||||
spec:
|
|
||||||
serviceAccountName: {{ template "kubevirt.namespaceHook.name" . }}
|
|
||||||
restartPolicy: {{ .Values.hookRestartPolicy }}
|
|
||||||
containers:
|
|
||||||
- name: {{ template "kubevirt.namespaceHook.name" . }}
|
|
||||||
securityContext:
|
|
||||||
{{- toYaml .Values.hookSecurityContext | nindent 12 }}
|
|
||||||
image: {{ .Values.hookImage }}
|
|
||||||
args:
|
|
||||||
- label
|
|
||||||
- namespace
|
|
||||||
- {{ .Release.Namespace }}
|
|
||||||
- kubevirt.io=
|
|
||||||
- pod-security.kubernetes.io/enforce=privileged
|
|
@@ -1,34 +0,0 @@
|
|||||||
operator:
|
|
||||||
image: registry.suse.com/suse/sles/15.6/virt-operator
|
|
||||||
version: 1.3.1-150600.5.9.1
|
|
||||||
pullPolicy: IfNotPresent
|
|
||||||
|
|
||||||
kubevirt:
|
|
||||||
# Holds kubevirt configurations. Same as the virt-configMap.
|
|
||||||
configuration: {}
|
|
||||||
customizeComponents: {}
|
|
||||||
# The ImagePullPolicy to use.
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
# Selectors and tolerations that should apply to KubeVirt infrastructure components.
|
|
||||||
infra: {}
|
|
||||||
# Specifies if KubeVirt can be deleted if workloads are still present.
|
|
||||||
# This is mainly a precaution to avoid accidental data loss.
|
|
||||||
uninstallStrategy: ""
|
|
||||||
# WorkloadUpdateStrategy defines at the cluster level how to handle automated workload updates.
|
|
||||||
workloadUpdateStrategy: {}
|
|
||||||
# Optionally enable ServiceMonitor for prometheus, see
|
|
||||||
# https://kubevirt.io/user-guide/user_workloads/component_monitoring/
|
|
||||||
monitorAccount: ""
|
|
||||||
monitorNamespace: ""
|
|
||||||
|
|
||||||
hookImage: rancher/kubectl:v1.30.2
|
|
||||||
hookRestartPolicy: OnFailure
|
|
||||||
hookSecurityContext:
|
|
||||||
seccompProfile:
|
|
||||||
type: RuntimeDefault
|
|
||||||
runAsNonRoot: true
|
|
||||||
runAsUser: 1000
|
|
||||||
allowPrivilegeEscalation: false
|
|
||||||
capabilities:
|
|
||||||
drop:
|
|
||||||
- ALL
|
|
@@ -1,5 +1,5 @@
|
|||||||
#!BuildTag: %%IMG_PREFIX%%sriov-crd-chart:1.3.0-%RELEASE%
|
#!BuildTag: %%IMG_PREFIX%%sriov-crd-chart:302.0.0_up1.4.0-%RELEASE%
|
||||||
#!BuildTag: %%IMG_PREFIX%%sriov-crd-chart:1.3.0
|
#!BuildTag: %%IMG_PREFIX%%sriov-crd-chart:302.0.0_up1.4.0
|
||||||
annotations:
|
annotations:
|
||||||
catalog.cattle.io/experimental: "true"
|
catalog.cattle.io/experimental: "true"
|
||||||
catalog.cattle.io/hidden: "true"
|
catalog.cattle.io/hidden: "true"
|
||||||
@@ -10,4 +10,4 @@ apiVersion: v2
|
|||||||
description: Installs the CRDs for the SR-IOV operator
|
description: Installs the CRDs for the SR-IOV operator
|
||||||
name: sriov-crd
|
name: sriov-crd
|
||||||
type: application
|
type: application
|
||||||
version: 1.3.0
|
version: 302.0.0+up1.4.0
|
||||||
|
@@ -1,19 +1,19 @@
|
|||||||
#!BuildTag: %%IMG_PREFIX%%sriov-network-operator-chart:1.3.0-%RELEASE%
|
#!BuildTag: %%IMG_PREFIX%%sriov-network-operator-chart:302.0.0_up1.4.0-%RELEASE%
|
||||||
#!BuildTag: %%IMG_PREFIX%%sriov-network-operator-chart:1.3.0
|
#!BuildTag: %%IMG_PREFIX%%sriov-network-operator-chart:302.0.0_up1.4.0
|
||||||
annotations:
|
annotations:
|
||||||
catalog.cattle.io/auto-install: sriov-crd=match
|
catalog.cattle.io/auto-install: sriov-crd=match
|
||||||
catalog.cattle.io/experimental: "true"
|
catalog.cattle.io/experimental: "true"
|
||||||
catalog.cattle.io/namespace: cattle-sriov-system
|
catalog.cattle.io/namespace: cattle-sriov-system
|
||||||
catalog.cattle.io/os: linux
|
catalog.cattle.io/os: linux
|
||||||
catalog.cattle.io/permits-os: linux
|
catalog.cattle.io/permits-os: linux
|
||||||
catalog.cattle.io/upstream-version: 1.3.0
|
catalog.cattle.io/upstream-version: 1.4.0
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
appVersion: v1.3.0
|
appVersion: v1.4.0
|
||||||
dependencies:
|
dependencies:
|
||||||
- condition: sriov-nfd.enabled
|
- condition: sriov-nfd.enabled
|
||||||
name: sriov-nfd
|
name: sriov-nfd
|
||||||
repository: file://./charts/sriov-nfd
|
repository: file://./charts/sriov-nfd
|
||||||
version: 0.15.6
|
version: 0.15.7
|
||||||
description: SR-IOV network operator configures and manages SR-IOV networks in the
|
description: SR-IOV network operator configures and manages SR-IOV networks in the
|
||||||
kubernetes cluster
|
kubernetes cluster
|
||||||
home: https://github.com/k8snetworkplumbingwg/sriov-network-operator
|
home: https://github.com/k8snetworkplumbingwg/sriov-network-operator
|
||||||
@@ -25,4 +25,4 @@ name: sriov-network-operator
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/k8snetworkplumbingwg/sriov-network-operator
|
- https://github.com/k8snetworkplumbingwg/sriov-network-operator
|
||||||
type: application
|
type: application
|
||||||
version: 1.3.0
|
version: 302.0.0+up1.4.0
|
||||||
|
@@ -38,9 +38,20 @@ For additional information and methods for installing Helm, refer to the officia
|
|||||||
|
|
||||||
### Deploy SR-IOV Network Operator
|
### Deploy SR-IOV Network Operator
|
||||||
|
|
||||||
|
#### Deploy from OCI repo
|
||||||
|
|
||||||
```
|
```
|
||||||
|
$ helm install -n sriov-network-operator --create-namespace --version 1.3.0 --set sriovOperatorConfig.deploy=true sriov-network-operator oci://ghcr.io/k8snetworkplumbingwg/sriov-network-operator-chart
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Deploy from project sources
|
||||||
|
|
||||||
|
```
|
||||||
|
# Clone project
|
||||||
|
$ git clone https://github.com/k8snetworkplumbingwg/sriov-network-operator.git ; cd sriov-network-operator
|
||||||
|
|
||||||
# Install Operator
|
# Install Operator
|
||||||
$ helm install -n sriov-network-operator --create-namespace --wait sriov-network-operator ./
|
$ helm install -n sriov-network-operator --create-namespace --wait --set sriovOperatorConfig.deploy=true sriov-network-operator ./deployment/sriov-network-operator-chart
|
||||||
|
|
||||||
# View deployed resources
|
# View deployed resources
|
||||||
$ kubectl -n sriov-network-operator get pods
|
$ kubectl -n sriov-network-operator get pods
|
||||||
@@ -128,3 +139,13 @@ This section contains general parameters that apply to both the operator and dae
|
|||||||
| `images.sriovDevicePlugin` | SR-IOV device plugin image |
|
| `images.sriovDevicePlugin` | SR-IOV device plugin image |
|
||||||
| `images.resourcesInjector` | Resources Injector image |
|
| `images.resourcesInjector` | Resources Injector image |
|
||||||
| `images.webhook` | Operator Webhook image |
|
| `images.webhook` | Operator Webhook image |
|
||||||
|
|
||||||
|
### Extra objects parameters
|
||||||
|
|
||||||
|
**Disclaimer**:
|
||||||
|
|
||||||
|
Please note that any resources deployed using the `extraDeploy` in this Helm chart are the sole responsibility of the user. It is important to review and understand the implications of these deployed resources. The maintainers of this Helm chart take no responsibility for any issues or damages caused by the deployment or operation of these resources.
|
||||||
|
|
||||||
|
| Name | description |
|
||||||
|
| ---- | ------------|
|
||||||
|
|`extraDeploy`| Array of extra objects to deploy with the release |
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
appVersion: v0.15.6
|
appVersion: v0.15.7
|
||||||
description: Detects hardware features available on each node in a Kubernetes cluster,
|
description: Detects hardware features available on each node in a Kubernetes cluster,
|
||||||
and advertises those features using node labels
|
and advertises those features using node labels
|
||||||
home: https://github.com/kubernetes-sigs/node-feature-discovery
|
home: https://github.com/kubernetes-sigs/node-feature-discovery
|
||||||
@@ -11,4 +11,4 @@ name: sriov-nfd
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/kubernetes-sigs/node-feature-discovery
|
- https://github.com/kubernetes-sigs/node-feature-discovery
|
||||||
type: application
|
type: application
|
||||||
version: 0.15.6
|
version: 0.15.7
|
||||||
|
@@ -3,7 +3,7 @@ image:
|
|||||||
# This should be set to 'IfNotPresent' for released version
|
# This should be set to 'IfNotPresent' for released version
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
# tag, if defined will use the given image tag, else Chart.AppVersion will be used
|
# tag, if defined will use the given image tag, else Chart.AppVersion will be used
|
||||||
tag: v0.15.6-build20240822
|
tag: v0.15.7-build20241113
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
|
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
|
8
sriov-network-operator-chart/templates/extra-list.yaml
Normal file
8
sriov-network-operator-chart/templates/extra-list.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{{- range .Values.extraDeploy }}
|
||||||
|
---
|
||||||
|
{{- if typeIs "string" . }}
|
||||||
|
{{- tpl . $ }}
|
||||||
|
{{- else }}
|
||||||
|
{{- tpl (. | toYaml) $ }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
@@ -20,6 +20,8 @@ spec:
|
|||||||
maxUnavailable: 33%
|
maxUnavailable: 33%
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
|
annotations:
|
||||||
|
openshift.io/required-scc: restricted-v2
|
||||||
labels:
|
labels:
|
||||||
name: sriov-network-operator
|
name: sriov-network-operator
|
||||||
spec:
|
spec:
|
||||||
|
@@ -96,26 +96,27 @@ supportedExtraNICs: []
|
|||||||
images:
|
images:
|
||||||
operator:
|
operator:
|
||||||
repository: rancher/hardened-sriov-network-operator
|
repository: rancher/hardened-sriov-network-operator
|
||||||
tag: v1.3.0-build20240816
|
tag: v1.4.0-build20241113
|
||||||
sriovConfigDaemon:
|
sriovConfigDaemon:
|
||||||
repository: rancher/hardened-sriov-network-config-daemon
|
repository: rancher/hardened-sriov-network-config-daemon
|
||||||
tag: v1.3.0-build20240816
|
tag: v1.4.0-build20241113
|
||||||
sriovCni:
|
sriovCni:
|
||||||
repository: rancher/hardened-sriov-cni
|
repository: rancher/hardened-sriov-cni
|
||||||
tag: v2.8.1-build20240820
|
tag: v2.8.1-build20241113
|
||||||
ibSriovCni:
|
ibSriovCni:
|
||||||
repository: rancher/hardened-ib-sriov-cni
|
repository: rancher/hardened-ib-sriov-cni
|
||||||
tag: v1.1.1-build20240816
|
tag: v1.1.1-build20241113
|
||||||
sriovDevicePlugin:
|
sriovDevicePlugin:
|
||||||
repository: rancher/hardened-sriov-network-device-plugin
|
repository: rancher/hardened-sriov-network-device-plugin
|
||||||
tag: v3.7.0-build20240816
|
tag: v3.8.0-build20241114
|
||||||
resourcesInjector:
|
resourcesInjector:
|
||||||
repository: rancher/hardened-sriov-network-resources-injector
|
repository: rancher/hardened-sriov-network-resources-injector
|
||||||
tag: v1.6.0-build20240816
|
tag: v1.6.0-build20241113
|
||||||
webhook:
|
webhook:
|
||||||
repository: rancher/hardened-sriov-network-webhook
|
repository: rancher/hardened-sriov-network-webhook
|
||||||
tag: v1.3.0-build20240816
|
tag: v1.4.0-build20241113
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
|
extraDeploy: []
|
||||||
global:
|
global:
|
||||||
cattle:
|
cattle:
|
||||||
systemDefaultRegistry: ""
|
systemDefaultRegistry: ""
|
||||||
|
Reference in New Issue
Block a user