Skip to content

Instantly share code, notes, and snippets.

View j-griffith's full-sized avatar

John Griffith j-griffith

  • Bozeman, Montana
View GitHub Profile
package main
import (
"context"
"fmt"
"io/ioutil"
"log"
hgc "github.com/mittwald/go-helm-client"
"helm.sh/helm/v3/pkg/repo"
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.1
creationTimestamp: null
name: nuclei.omniverse.nvidia.io
spec:
group: omniverse.nvidia.io
names:
apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: controller-manager
name: nvcloud-system
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
---
# Simple nginx ingress example
# Test using `curl -kL http://<elb>/apple`
kind: Pod
apiVersion: v1
metadata:
name: apple-app
labels:
app: apple
spec:
Kind: "ClusterRole",
},
ObjectMeta: metav1.ObjectMeta{
Name: "kubevirt.io:admin",
Labels: map[string]string{
virtv1.AppLabel: "",
"rbac.authorization.k8s.io/aggregate-to-admin": "true",
},
},
Rules: []rbacv1.PolicyRule{
type Node struct {
// Role indicates details for the type of node specified (controlPlane, Worker, Bootstrap, LoadBalancer etc)
Role string `yaml:"Type"`
// CPUCount specifies the number of virtual CPUs to assign to the specified node type (must satsify template requirements)
// +optional
CPUCount int `yaml:"CPUCount"`
// DiskSizeGB specifies the size of the root disk for the specified node type (must satsify template requirements)
// +optional
DiskSizeGB int `yaml:"DiskSizeGB"`
// MemSizeGB specifies the amount of memory in GB for the specified node type (must satsify template requirements)
diff --git a/pkg/controller/controller.go b/pkg/controller/controller.go
index 4dda40950..f9fb0bc85 100644
--- a/pkg/controller/controller.go
+++ b/pkg/controller/controller.go
@@ -745,12 +745,12 @@ func removePrefixedParameters(param map[string]string) (map[string]string, error
// currently we provide Snapshot and PVC, the default case allows the provisioner to still create a volume
// so that an external controller can act upon it. Additional DataSource types can be added here with
// an appropriate implementation function
-func (p *csiProvisioner) getVolumeContentSource(options controller.ProvisionOptions) (*csi.VolumeContentSource, error) {
+func (p *csiProvisioner) getVolumeContentSource(options controller.ProvisionOptions, provisionerFSType string) (*csi.VolumeContentSource, error) {
#!/bin/bash
DNF=$(which dnf)
APT=$(which apt)
if [[ ! -z $APT ]]; then
sudo apt update -y
sudo apt install -y \
qemu-kvm \
libvirt-clients \
libvirt-daemon-system \
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: kubevirt-hpp
labels:
k8s-app: kubevirt-hpp
namespace: kube-system
spec:
selector:
matchLabels:
"----------------------------------------------
" Plugin management
"
" Download vim-plug from the URL below and follow the installation
" instructions:
" https://github.com/junegunn/vim-plug
"----------------------------------------------
call plug#begin('~/.vim/plugged')
" Dependencies