This file contains 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
{ | |
"schemaVersion": 1, | |
"label": "hello", | |
"message": "sweet world", | |
"color": "orange" | |
} |
This file contains 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
{ | |
"schemaVersion": 1, | |
"label": "hello", | |
"message": "sweet world", | |
"color": "orange" | |
} |
This file contains 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
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 | |
) |
This file contains 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
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. |
This file contains 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
apiVersion: serving.knative.dev/v1beta1 | |
kind: Service | |
metadata: | |
name: graph | |
spec: | |
template: | |
spec: | |
containers: | |
- env: | |
- name: NAMESPACE |
This file contains 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 cloudevents | |
import ( | |
"fmt" | |
"github.com/google/uuid" | |
"github.com/knative/pkg/cloudevents" | |
"net/http" | |
"time" | |
) |
This file contains 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 ( | |
"github.com/botless/slack/pkg/cloudevents" | |
"log" | |
) | |
type Example struct { | |
Sequence int `json:"id"` | |
Message string `json:"message"` |
This file contains 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
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 |
This file contains 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
{ | |
"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" | |
}, |
This file contains 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
{ | |
"$id": "osb://v2/catalog/schemas", | |
"definitions": { | |
"A": { | |
"$id": "foo", | |
"type": "string" | |
}, | |
"B": { | |
"$id": "bar", | |
"type": "string", |