- This is very high-level and half baked.
- This is intended to suggest one way that black-box sources could be auto-created in specific circumstances from a declaration of interest in events.
- This assumes a model somewhat similar to Broker and Trigger (called Broker and Rules here) with the following additions:
- The Rule has a filter expression which matches more than event types. I've used CEL here.
- There is a process which propagates "upstream" (i.e. from consumer to origin) the set of filters currently listening.
- We use an annotation,
eventing.knative.dev/filter
, as a way to copy filters from the Rules upstream through the components towards the event origin. Using an annotation allows non-filtering entities (such as Channel or Subscription) to propagate their filters upstream, even though they don't perform any filtering of their own. - This assumes that the user has also made github-enabled secrets available to the
default
serv
This file contains hidden or 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
... | |
- name: config-provider | |
templateRef: | |
kind: ClusterConfigTemplate | |
name: convention-template | |
params: | |
- name: serviceAccount | |
value: default | |
images: | |
- resource: image-provider |
This file contains hidden or 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
#!/bin/sh | |
# Assumes Docker desktop installed | |
# | |
VARIANT="$(uname -sm | tr 'A-Z ' 'a-z-' | sed s/aarch64/arm64/ | sed s/x86_64/amd64/)" | |
FUNC_VARIANT="$(echo $VARIANT | tr '-' '_')" | |
curl -L -o kn https://github.com/knative/client/releases/download/knative-v1.2.0/kn-$VARIANT | |
curl -L -o kn-plugin-quickstart https://github.com/knative-sandbox/kn-plugin-quickstart/releases/download/knative-v1.2.0/kn-quickstart-$VARIANT |
This file contains hidden or 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
serving-istio: | |
primary: | |
github: | |
repo: "knative/serving" | |
include: | |
- ".*.yaml" | |
exclude: | |
- "monitoring.*" | |
- "serving.yaml" | |
- "serving-storage-version-migration.yaml" |
This file contains hidden or 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
{"client":"github","component":"unset","file":"prow/github/client.go:562","func":"k8s.io/test-infra/prow/github.(*client).log","level":"info","msg":"GetOrg(knative-sandbox)","time":"2020-05-20T06:26:35-07:00"} | |
{"client":"github","component":"unset","file":"prow/github/client.go:562","func":"k8s.io/test-infra/prow/github.(*client).log","level":"info","msg":"ListOrgInvitations(knative-sandbox)","time":"2020-05-20T06:26:35-07:00"} | |
{"client":"github","component":"unset","file":"prow/github/client.go:562","func":"k8s.io/test-infra/prow/github.(*client).log","level":"info","msg":"User()","time":"2020-05-20T06:26:36-07:00"} | |
{"client":"github","component":"unset","file":"prow/github/client.go:562","func":"k8s.io/test-infra/prow/github.(*client).log","level":"info","msg":"ListOrgMembers(knative-sandbox, admin)","time":"2020-05-20T06:26:37-07:00"} | |
{"client":"github","component":"unset","file":"prow/github/client.go:562","func":"k8s.io/test-infra/prow/github.(*client).log","level":"info","msg":"ListOrgMembers(knative-sa |
This file contains hidden or 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
apiGroup: security.knative.dev/v1alpha1 | |
kind: PolicyBinding | |
metadata: | |
name: green-service | |
spec: | |
policy: green-policy | |
targets: | |
- apiGroup: serving.knative.dev/v1 | |
kind: Service | |
selector: |
This file contains hidden or 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
apiGroup: security.knative.dev/v1alpha1 | |
kind: Policy | |
metadata: | |
name: green-policy | |
spec: | |
cloudEvent: | |
type: green | |
# Or | |
cloudEventExpressions: | |
- {key: type, operator: In, values: [green]} |
This file contains hidden or 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
// Callback is a generic function to be called by a consumer of validation | |
type Callback struct { | |
callback func(ctx context.Context, unstructured *unstructured.Unstructured) error | |
supportedVerbs map[admissionv1beta1.Operation]bool | |
} | |
func (c Callback) Process(....) { | |
// Do some stuff | |
} |
This file contains hidden or 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
release-notes -start-sha=cb5c1810f2690efa0c434bc81aab3a1d45df497f \ | |
-end-sha=3f73b117b61ee5d8fe5dcedd6cca2c96014329a9 \ | |
-github-org=knative -github-repo=serving -requiredAuthor='' \ | |
-output /tmp/serving-relnotes |
NewerOlder