This file contains hidden or 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
#!/bin/bash | |
# Work around dumb ENV var for AWS config settings that are only good in current session | |
# Messed with env var init tricks, but at the end of the day, just much easier to write | |
# a proper credentials file out, then it's good for all sessions | |
# alias `awslogin="aws-login <account> <user> && update-aws-creds.sh"` | |
cat >~/.aws/credentials <<EOF | |
[default] | |
aws_access_key_id=$AWS_ACCESS_KEY_ID |
This file contains hidden or 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
apiVersion: eksctl.io/v1alpha5 | |
kind: ClusterConfig | |
metadata: | |
version: "1.21" | |
name: <CLUSTER_NAME> | |
region: us-west-2 | |
availabilityZones: [us-west-2a, us-west-2b, us-west-2c] | |
iam: | |
withOIDC: true | |
vpc: |
This file contains hidden or 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
#!/bin/bash | |
VERSION="release-5.0" | |
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$VERSION/client/config/crd/snapshot.storage.k8s.io_volumesnapshotclasses.yaml | |
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$VERSION/client/config/crd/snapshot.storage.k8s.io_volumesnapshotcontents.yaml | |
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$VERSION/client/config/crd/snapshot.storage.k8s.io_volumesnapshots.yaml | |
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$VERSION/deploy/kubernetes/snapshot-controller/rbac-snapshot-controller.yaml | |
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/$VERSION/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml |
This file contains hidden or 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
package main | |
import ( | |
"context" | |
"fmt" | |
"io/ioutil" | |
"log" | |
hgc "github.com/mittwald/go-helm-client" | |
"helm.sh/helm/v3/pkg/repo" |
This file contains hidden or 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
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: |
This file contains hidden or 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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
labels: | |
control-plane: controller-manager | |
name: nvcloud-system | |
--- | |
apiVersion: apiextensions.k8s.io/v1 | |
kind: CustomResourceDefinition | |
metadata: |
This file contains hidden or 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
--- | |
# Simple nginx ingress example | |
# Test using `curl -kL http://<elb>/apple` | |
kind: Pod | |
apiVersion: v1 | |
metadata: | |
name: apple-app | |
labels: | |
app: apple | |
spec: |
This file contains hidden or 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
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{ |
This file contains hidden or 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
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) |
This file contains hidden or 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
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) { |