Skip to content

Instantly share code, notes, and snippets.

(docker rm -f manager node1 node2;docker network rm mynet;rm -f cmds)&>/dev/null
bold=$(tput bold)
normal=$(tput sgr0)
function doit() {
set +e
echo -n $bold"$ "
if [[ "$SKIP" == "" ]]; then read -s -n 1 ; fi
echo -n $*$normal" "
(docker rm -f manager node1 node2;docker network rm mynet;rm -f cmds)&>/dev/null
bold=$(tput bold)
normal=$(tput sgr0)
function doit() {
set +e
echo -n $bold"$ "
if [[ "$SKIP" == "" ]]; then read -s -n 1 ; fi
echo -n $*$normal" "
(docker swarm leave --force;docker rm -f node1;docker service rm $(docker service ls -q))&>/dev/null
bold=$(tput bold)
normal=$(tput sgr0)
function doit() {
set +e
echo -n $bold"$ "
if [[ "$SKIP" == "" ]]; then read -s -n 1 ; fi
echo -n $*$normal" "
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"io"
"net"
"os"
all: init build test lint
.PHONY: format coverage
# If DOCKER is defined then make it the full docker cmd line we want to use
ifneq ($(origin DOCKER),undefined)
DOCKER=docker run --rm -ti \
-v $(PWD):/go/src/github.com/kubernetes-incubator/service-catalog \
scbuildimage
endif
apiVersion: v1
kind: PersistentVolume
metadata:
name: local-volume-test
labels:
type: local
spec:
capacity:
storage: 5Gi
accessModes:

word

two words

with-dashes

with'punct

with ' punct

with . dot

with ... dots

{
"_id": "apsMyserviceParametersDemo_id",
"catalog": {
"bindable": true,
"name": "apsMyserviceParametersDemo",
"tags": [
"big_data",
"ibm_created"
],
"version": "",

Table of Contents

line link

section 1

section

Section

section 1

section 1

@duglin
duglin / PodPreset Ramblings
Last active July 12, 2017 20:46
PodPreset Ramblings
Some aspects that influence my thinking on this:
- having PodPresets in a Binding is causing problems
- first, because we'll be constantly chasing the real PodPreset definition
- second, because we actually don't want a full PodPreset with all of its features,
we just need the bits related to Secrets
- third, PodPresets (as of now) are immutable
- we need to allow for people to specify more than one LabelSelector at a time to support
upgrading of apps
- as long as the LabelSelector is immutable and embedded in a Binding we should separate the
idea of asking for creds from linking the creds to an app to allow for changing LabelSelectors