Skip to content

Instantly share code, notes, and snippets.

@duglin
duglin / disc-sub-primer.md
Last active Jun 4, 2020
Discovery and Subscription Primer - WIP
View disc-sub-primer.md

Discovery and Subscroption Primer - WIP

Abstract

This non-normative document provides an overview of the Discovery and Subscription API specifications. It is meant to complement those specifications to provide additional background and insight into the history and design decisions made during their development. This allows the specification itself to focus on the normative technical details.

View gist:39578372ffc923f52a432238d56d628a
interface CloudEvent {
...
String getSubject();
ZonedDateTime getTime();
Map<String, Object> getExtensions();
Object getExtension(key);
T/Object get(key); // used for spec attrs and extensions
}
interface CloudEventBuilder {
@duglin
duglin / sig-serverless.md
Last active Nov 6, 2020
Proposed SIG-Serverless Charter
View sig-serverless.md

CNCF Serverless SIG Charter

Introduction

This is the charter referred to in “CNCF SIGs” by the CNCF TOC, and consistent with the proposed SIG definition.

Borrowing from the [Serverless

View test.md
  1. line 1
  2. line 2 1.1. line 2.1 1.1. line 2.2
$ some command - console \
View gist:18ff787f76f7ed0515ce7cce7c2d5f9a
package main
import (
"crypto/sha256"
"crypto/tls"
"encoding/json"
"flag"
"fmt"
"io/ioutil"
"net/http"
@duglin
duglin / params.yaml
Last active Jul 27, 2017
params.yaml
View params.yaml
spec:
serviceClassName: user-provided-service
planName: default
parameters:
- name: username # easy name/value pair case
value: root
- name: password # pull value from a secret's key
valueFrom:
secretKeyRef:
name: mySecret1
@duglin
duglin / PodPreset Ramblings
Last active Jul 12, 2017
PodPreset Ramblings
View 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
View parameters
{
"_id": "apsMyserviceParametersDemo_id",
"catalog": {
"bindable": true,
"name": "apsMyserviceParametersDemo",
"tags": [
"big_data",
"ibm_created"
],
"version": "",
View Testing headers.md

word

two words

with-dashes

with'punct

with ' punct

with . dot

with ... dots

View pvc example
apiVersion: v1
kind: PersistentVolume
metadata:
name: local-volume-test
labels:
type: local
spec:
capacity:
storage: 5Gi
accessModes: