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 ( | |
"fmt" | |
"github.com/gophercloud/gophercloud" | |
"github.com/gophercloud/gophercloud/openstack" | |
"github.com/gophercloud/gophercloud/openstack/blockstorage/v3/volumes" | |
) |
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/virt-api/validating-webhook/validating-webhook.go b/pkg/virt-api/validating-webhook/validating-webhook.go | |
index f714e93d..2a158889 100644 | |
--- a/pkg/virt-api/validating-webhook/validating-webhook.go | |
+++ b/pkg/virt-api/validating-webhook/validating-webhook.go | |
@@ -25,6 +25,7 @@ import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
+ "regexp" | |
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
# To run you'll need to create an LVM VG named cinder-volumes on the node that will run the cinderlib-lvm pod | |
# Make sure you enable privileged on your K8's cluster (ie if you're running hack/local-up-cluster.sh you'll need: | |
# `ALLOW_PRIVILEGED=true hack/local-up-cluster.sh` | |
# The manifest here should handle the rest, note connect/attach is a work in progress, however provisioning works | |
# There is a bug with provisioning however, the resultant LV's are 12M in size, even though we're requesting 1G | |
# There also seems to be some locking contention of LVM2, and I haven't identified exactly where that's coming from | |
# yet, but I haven't seen it in BlockBox | |
apiVersion: storage.k8s.io/v1 | |
kind: StorageClass | |
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
# Based on centos | |
FROM centos:7.4.1708 | |
LABEL maintainers="Gorka Eguileor <[email protected]>" | |
LABEL description="Cinderlib CSI Plugin" | |
RUN yum update -y && yum install -y epel-release \ | |
https://repos.fedorapeople.org/repos/openstack/openstack-pike/rdo-release-pike-1.noarch.rpm | |
RUN yum update -y && yum install -y targetcli \ | |
iscsi-initiator-utils \ | |
device-mapper-multipath \ |
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
<disk type='network' device='cdrom'> | |
<driver name='qemu' type='raw'/> | |
<source protocol="http" name="/alpine/v3.8/releases/x86_64/alpine-standard-3.8.0-x86_64.iso"> | |
<host name="http://dl-cdn.alpinelinux.org" port="80"/> | |
</source> | |
<target dev='hde' bus='ide' tray='closed'/> | |
<readonly/> | |
</disk> | |
# Fails update, see: https://bugzilla.redhat.com/show_bug.cgi?id=1353296 |
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
call plug#begin('~/.local/share/nvim/plugged') | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
Plug 'tpope/vim-rhubarb' | |
Plug 'bling/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'christooomey/vim-tmux-navigator' | |
Plug 'Shougo/vimshell.vim' | |
Plug 'Shougo/vimproc.vim', {'do' : 'make'} | |
Plug 'airblade/vim-gitgutter' |
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
# ========================== | |
# === General settings === | |
# ========================== | |
# set -g default-terminal "xterm-256color" | |
set -g default-terminal "tmux-256color" | |
set -g terminal-overrides ',xterm-256color:Tc' | |
set -g history-limit 20000 | |
set -g buffer-limit 20 | |
set -sg escape-time 0 |
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 controller | |
import "time" | |
// General constants we use for various labels and checks | |
const ( |
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/cmd/cdi-controller/controller.go b/cmd/cdi-controller/controller.go | |
index a20c815..6937e7f 100644 | |
--- a/cmd/cdi-controller/controller.go | |
+++ b/cmd/cdi-controller/controller.go | |
@@ -2,9 +2,9 @@ package main | |
import ( | |
"flag" | |
- "fmt" | |
"os" |