Skip to content

Instantly share code, notes, and snippets.

View n3wscott's full-sized avatar

Scott Nichols n3wscott

View GitHub Profile
{
"schemaVersion": 1,
"label": "hello",
"message": "sweet world",
"color": "orange"
}
{
"schemaVersion": 1,
"label": "hello",
"message": "sweet world",
"color": "orange"
}
cat ~/dotfiles/bin/kubectl-delete-ns-9
(
NAMESPACE9=$@
kubectl proxy &
PROXY_PID=$!
kubectl get namespace $NAMESPACE9 -o json |jq '.spec = {"finalizers":[]}' >temp.json
curl -k -H "Content-Type: application/json" -X PUT --data-binary @temp.json 127.0.0.1:8001/api/v1/namespaces/$NAMESPACE9/finalize
kill $PROXY_PID
)
Feedback:
http://staging.knative.tips/eventing/intro/overview/
I would talk about 4 things:
Sources - Producers of events.
Messaging - Point to point event delivery, enables fanout. Abstracts queues.
apiVersion: serving.knative.dev/v1beta1
kind: Service
metadata:
name: graph
spec:
template:
spec:
containers:
- env:
- name: NAMESPACE
package cloudevents
import (
"fmt"
"github.com/google/uuid"
"github.com/knative/pkg/cloudevents"
"net/http"
"time"
)
package main
import (
"github.com/botless/slack/pkg/cloudevents"
"log"
)
type Example struct {
Sequence int `json:"id"`
Message string `json:"message"`
apiVersion: eventing.knative.dev/v1alpha1
kind: Channel
metadata:
name: bot-source
spec:
provisioner:
ref:
apiVersion: eventing.knative.dev/v1alpha1
kind: ClusterProvisioner
name: in-memory-channel
{
"dashboard_url": "http://backupservice.io/some_instance",
"management_api": [{
"discovery_url": "http://backupservice.io/some_instance/protection.yaml",
"adheres_to": "http://storageland.org/backup-restore-spec.md#2.0"
},
{
"discovery_url": "http://backupservice.io/some_instance/protection.yaml",
"adheres_to": "http://storageland.org/explode-spec.md#2.0"
},
{
"$id": "osb://v2/catalog/schemas",
"definitions": {
"A": {
"$id": "foo",
"type": "string"
},
"B": {
"$id": "bar",
"type": "string",