Skip to content

Instantly share code, notes, and snippets.

View lpabon's full-sized avatar

Luis Pabón lpabon

View GitHub Profile
@lpabon
lpabon / 527.diff
Created October 5, 2016 23:35
heketi PR 527
diff --git a/tests/functional/TestKubeSmokeTest/run.sh b/tests/functional/TestKubeSmokeTest/run.sh
index cbc0890..c24b438 100755
--- a/tests/functional/TestKubeSmokeTest/run.sh
+++ b/tests/functional/TestKubeSmokeTest/run.sh
@@ -125,13 +125,13 @@ build_docker_file
kubectl get nodes
./testHeketiRpc.sh; res=$?
+teardown
@lpabon
lpabon / 527-1.diff
Created October 6, 2016 22:50
final fixes
diff --git a/tests/functional/TestKubeSmokeTest/testHeketiRpc.sh b/tests/functional/TestKubeSmokeTest/testHeketiRpc.sh
index c28797a..c04509e 100755
--- a/tests/functional/TestKubeSmokeTest/testHeketiRpc.sh
+++ b/tests/functional/TestKubeSmokeTest/testHeketiRpc.sh
@@ -26,6 +26,29 @@ display_information() {
kubectl get nodes
}
+start_mock_gluster_container() {
+
@lpabon
lpabon / csimain.diff
Created November 29, 2017 19:55
Use CSI server on libopenstorage/openstorage
From 74efc642b42a2b3217facc0b8bf98e6ed965fd66 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luis=20Pab=C3=B3n?= <luis@portworx.com>
Date: Tue, 28 Nov 2017 18:03:12 -0500
Subject: [PATCH] MAIN
---
cmd/osd/main.go | 25 +++++++++++++++++++++++++
csi/csi.go | 2 +-
etc/config/config.yaml | 2 +-
3 files changed, 27 insertions(+), 2 deletions(-)

General:

  • none of the sidecars use CSI_ENDPOINT

external-provisioner:

  • Do we need to setup -provisioner?
  • Shouldn't csi-provisioner.go:96 of the provisioner use the name from returned by the endpoint?
  • Got error:
$ kk logs csi-mock-driver-0 csi-external-provisioner
@lpabon
lpabon / sample.md
Last active September 24, 2018 16:43
Sample doc

Enumerate

Enumerate allows 3 different types of queries as defined below:

  • Query that takes only resource type as input
  • Query that takes resource type and alert type as input and
  • Query that takes resource id, alert type and resource type as input.
@lpabon
lpabon / .vimrc
Created June 11, 2019 22:32
My personal VIMRC
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
@lpabon
lpabon / readme.md
Last active June 11, 2019 23:05
Vim for Golang and markdown development

Assuming this is a new installation of vim. If not, you may want to backup your .vimrc and $HOME/.vim/ directory.

Initial Setup

  • Install vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
@lpabon
lpabon / doc.md
Last active October 26, 2019 11:35
Setting up Portworx with security using a single token

Overview

The following describes how to setup Portworx security with a single token. The goal is for users to be authenticated by Kubernetes, then have a Kubernetes to Portworx token used by all users. This model protects the storage system from unwanted access from outside Kubernetes.

The following is based on Portworx 2.2 with security and CSI.

Download a spec

Generating secrets

@lpabon
lpabon / px-security-2.1.x-k8s.md
Last active November 6, 2019 20:13
Setting up Portworx 2.1.x with security in Kubernetes using a single token

Overview

The following describes how to setup Portworx security with a single token. The goal is for users to be authenticated by Kubernetes, then have a Kubernetes to Portworx token used by all users. This model protects the storage system from unwanted access from outside Kubernetes.

The following is based on Portworx 2.1.x with security.

Download a spec

Generating secrets

@lpabon
lpabon / cncf_appliation_template.md
Last active November 13, 2019 05:07
Example Use Case Template

Use Case: USE CASE TITLE

A brief description about the use case

References

Links to application information and other style

Storage Landscape Summary

Below use ❌ or ✔️ for the Recommended column, then add brief notes. You may choose to add or remove information form the Notes column for ❌ storage stypes.