Drop master references to knative repos (#5036)

This commit is contained in:
Markus Thömmes 2021-03-09 10:25:25 +01:00 committed by GitHub
parent 32fc262aaa
commit 37e702765d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 42 additions and 42 deletions

View File

@ -10,7 +10,7 @@ assignees: ''
**Problem**
A short explanation of the problem, including relevant restrictions.
**[Persona:](https://github.com/knative/eventing/blob/master/docs/personas.md)**
**[Persona:](https://github.com/knative/eventing/blob/main/docs/personas.md)**
Which persona is this feature for?
**Exit Criteria**

View File

@ -125,21 +125,21 @@ kubectl -n knative-eventing logs $(kubectl -n knative-eventing get pods -l app=e
## Install Channels
Install the
[In-Memory-Channel](https://github.com/knative/eventing/tree/master/config/channels/in-memory-channel)
[In-Memory-Channel](https://github.com/knative/eventing/tree/main/config/channels/in-memory-channel)
since this is the
[default channel](https://github.com/knative/docs/blob/master/docs/eventing/channels/default-channels.md).
[default channel](https://github.com/knative/docs/blob/main/docs/eventing/channels/default-channels.md).
```shell
ko apply -f config/channels/in-memory-channel/
```
Depending on your needs you might want to install other
[channel implementations](https://github.com/knative/docs/blob/master/docs/eventing/channels/channels-crds.md).
[channel implementations](https://github.com/knative/docs/blob/main/docs/eventing/channels/channels-crds.md).
## Install Broker
Install the
[MT Channel Broker](https://github.com/knative/eventing/tree/master/config/brokers/mt-channel-broker)
[MT Channel Broker](https://github.com/knative/eventing/tree/main/config/brokers/mt-channel-broker)
or any of the other Brokers available inside the `config/brokers/` directory.
```shell
@ -147,7 +147,7 @@ ko apply -f config/brokers/mt-channel-broker/
```
Depending on your needs you might want to install other
[Broker implementations](https://github.com/knative/eventing/tree/master/docs/broker).
[Broker implementations](https://github.com/knative/eventing/tree/main/docs/broker).
## (Optional) Install Sugar controller

View File

@ -3,8 +3,8 @@
[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white)](https://pkg.go.dev/knative.dev/eventing)
[![Go Report Card](https://goreportcard.com/badge/knative/eventing)](https://goreportcard.com/report/knative/eventing)
[![Releases](https://img.shields.io/github/release-pre/knative/eventing.svg)](https://github.com/knative/eventing/releases)
[![LICENSE](https://img.shields.io/github/license/knative/eventing.svg)](https://github.com/knative/eventing/blob/master/LICENSE)
[![codecov](https://codecov.io/gh/knative/eventing/branch/master/graph/badge.svg)](https://codecov.io/gh/knative/eventing)
[![LICENSE](https://img.shields.io/github/license/knative/eventing.svg)](https://github.com/knative/eventing/blob/main/LICENSE)
[![codecov](https://codecov.io/gh/knative/eventing/branch/main/graph/badge.svg)](https://codecov.io/gh/knative/eventing)
[![TestGrid](https://img.shields.io/badge/testgrid-eventing-informational?logo=data:image/x-icon;base64,AAABAAEAICAAAAEACACoCAAAFgAAACgAAAAgAAAAQAAAAAEACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALAAAAFQAAACoAAw0AAAAAVQAGGgAAAABgAAAAgAAKJgAAAACqAA0zAAATTAAAGmYAAB1zAAAmmQAAM8wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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oKCgoKCgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA)](https://testgrid.knative.dev/eventing)
[![Slack](https://img.shields.io/badge/Signup-Knative_Slack-white.svg?logo=slack)](https://slack.knative.dev)
[![Slack](https://img.shields.io/badge/%23eventing-white.svg?logo=slack&color=522a5e)](https://knative.slack.com/archives/C9JP909F0)

View File

@ -54,7 +54,7 @@ const (
// Constants for the underlying HTTP Client transport. These would enable better connection reuse.
// Purposely set them to be equal, as the ingress only connects to its channel.
// These are magic numbers, partly set based on empirical evidence running performance workloads, and partly
// based on what serving is doing. See https://github.com/knative/serving/blob/master/pkg/network/transports.go.
// based on what serving is doing. See https://github.com/knative/serving/blob/main/pkg/network/transports.go.
defaultMaxIdleConnections = 1000
defaultMaxIdleConnectionsPerHost = 1000
defaultMetricsPort = 9092

View File

@ -42,7 +42,7 @@ These are exported by core sources.
## Prometheus Collection
Accessing metrics requires Prometheus and Grafana installed. Follow the
[instructions to install Prometheus and Grafana](https://github.com/knative/docs/blob/master/docs/serving/installing-logging-metrics-traces.md)
[instructions to install Prometheus and Grafana](https://github.com/knative/docs/blob/main/docs/serving/installing-logging-metrics-traces.md)
in namespace `knative-monitoring`.
> _All commands assume root of repo._
@ -116,7 +116,7 @@ And then restart Prometheus.
### Prometheus
Follow the
[instructions to open Prometheus UI](https://github.com/knative/docs/blob/master/docs/serving/accessing-metrics.md#prometheus),
[instructions to open Prometheus UI](https://github.com/knative/docs/blob/main/docs/serving/accessing-metrics.md#prometheus),
then you will access the metrics at
[http://localhost:9090](http://localhost:9090).
@ -130,7 +130,7 @@ kubectl patch configmap grafana-dashboard-definition-knative --patch "$(cat conf
```
Follow the
[instructions to open Grafana dashboard](https://github.com/knative/docs/blob/master/docs/serving/accessing-metrics.md#grafana),
[instructions to open Grafana dashboard](https://github.com/knative/docs/blob/main/docs/serving/accessing-metrics.md#grafana),
then you will access the metrics at
[http://localhost:3000](http://localhost:3000).

View File

@ -152,8 +152,8 @@ Each instantiated Channel (ie, Custom Object) SHOULD have an annotation
indicating which version of the `Channelable` duck type it conforms to. We
currently have these versions:
1. [v1beta1](https://github.com/knative/eventing/blob/master/pkg/apis/duck/v1beta1/channelable_types.go)
1. [v1](https://github.com/knative/eventing/blob/master/pkg/apis/duck/v1/channelable_types.go)
1. [v1beta1](https://github.com/knative/eventing/blob/main/pkg/apis/duck/v1beta1/channelable_types.go)
1. [v1](https://github.com/knative/eventing/blob/main/pkg/apis/duck/v1/channelable_types.go)
So, for example to indicate that the Channel supports v1beta1 duck type, you
should annotate it like so (only showing the annotations):
@ -175,7 +175,7 @@ if no annotation is given, we assume it's `v1alpha1`.
##### v1beta1 Spec
Each channel CRD MUST contain an array of subscribers:
[`spec.subscribers`](https://github.com/knative/eventing/blob/master/pkg/apis/duck/v1beta1/subscribable_types.go)
[`spec.subscribers`](https://github.com/knative/eventing/blob/main/pkg/apis/duck/v1beta1/subscribable_types.go)
Note: The array of subscribers MUST NOT be set directly on the generic Channel
custom object, but rather appended to the backing channel by the subscription
@ -184,7 +184,7 @@ itself.
##### v1 Spec
Each channel CRD MUST contain an array of subscribers:
[`spec.subscribers`](https://github.com/knative/eventing/blob/master/pkg/apis/duck/v1/subscribable_types.go)
[`spec.subscribers`](https://github.com/knative/eventing/blob/main/pkg/apis/duck/v1/subscribable_types.go)
Note: The array of subscribers MUST NOT be set directly on the generic Channel
custom object, but rather appended to the backing channel by the subscription
@ -193,7 +193,7 @@ itself.
#### Channelable and Subscription Delivery Spec
Both Channelable and Subscription have a
[`delivery`](https://github.com/knative/eventing/blob/master/pkg/apis/duck/v1/delivery_types.go)
[`delivery`](https://github.com/knative/eventing/blob/main/pkg/apis/duck/v1/delivery_types.go)
field that allows the user to define the dead letter sink and retries. The
Channelable `spec.delivery` field is global across all the Subscriptions
registered with that particular Channelable, while the Subscription
@ -206,30 +206,30 @@ that particular Subscription.
Each channel CRD MUST have a `status` subresource which contains
- [`address`](https://github.com/knative/pkg/blob/master/apis/duck/v1/addressable_types.go)
- [`subscribers`](https://github.com/knative/eventing/blob/master/pkg/apis/duck/v1beta1/subscribable_types.go)
- [`address`](https://github.com/knative/pkg/blob/main/apis/duck/v1/addressable_types.go)
- [`subscribers`](https://github.com/knative/eventing/blob/main/pkg/apis/duck/v1beta1/subscribable_types.go)
(as an array)
Each channel CRD SHOULD have the following fields in `Status`
- [`observedGeneration`](https://github.com/knative/pkg/blob/master/apis/duck/v1/status_types.go)
- [`observedGeneration`](https://github.com/knative/pkg/blob/main/apis/duck/v1/status_types.go)
MUST be populated if present
- [`conditions`](https://github.com/knative/pkg/blob/master/apis/duck/v1/status_types.go)
- [`conditions`](https://github.com/knative/pkg/blob/main/apis/duck/v1/status_types.go)
(as an array) SHOULD indicate status transitions and error reasons if present
##### v1 Status
Each channel CRD MUST have a `status` subresource which contains
- [`address`](https://github.com/knative/pkg/blob/master/apis/duck/v1/addressable_types.go)
- [`subscribers`](https://github.com/knative/eventing/blob/master/pkg/apis/duck/v1/subscribable_types.go)
- [`address`](https://github.com/knative/pkg/blob/main/apis/duck/v1/addressable_types.go)
- [`subscribers`](https://github.com/knative/eventing/blob/main/pkg/apis/duck/v1/subscribable_types.go)
(as an array)
Each channel CRD SHOULD have the following fields in `Status`
- [`observedGeneration`](https://github.com/knative/pkg/blob/master/apis/duck/v1/status_types.go)
- [`observedGeneration`](https://github.com/knative/pkg/blob/main/apis/duck/v1/status_types.go)
MUST be populated if present
- [`conditions`](https://github.com/knative/pkg/blob/master/apis/duck/v1/status_types.go)
- [`conditions`](https://github.com/knative/pkg/blob/main/apis/duck/v1/status_types.go)
(as an array) SHOULD indicate status transitions and error reasons if present
#### Channel Status
@ -363,7 +363,7 @@ to subscribers using [W3C Tracecontext](https://w3c.github.io/trace-context/),
although internally it MAY use another mechanism(s) to propagate the tracing
information. The Channel SHOULD sample and write traces to the location
specified in
[`config-tracing`](https://github.com/knative/eventing/blob/master/config/config-tracing.yaml).
[`config-tracing`](https://github.com/knative/eventing/blob/main/config/config-tracing.yaml).
Spans emitted by the Channel SHOULD follow the
[OpenTelemetry Semantic Conventions for Messaging Systems](https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/semantic_conventions/messaging.md)

View File

@ -15,7 +15,7 @@ Knative Eventing.
_Note: only Knative leads can create versioned releases._
See https://github.com/knative/test-infra/blob/master/ci for more information on
See https://github.com/knative/test-infra/blob/main/ci for more information on
creating releases.
### Creating a major version release

View File

@ -15,7 +15,7 @@
# limitations under the License.
# Documentation about this script and how to use it can be found
# at https://github.com/knative/test-infra/tree/master/ci
# at https://github.com/knative/test-infra/tree/main/ci
source $(dirname $0)/../vendor/knative.dev/hack/release.sh

View File

@ -49,7 +49,7 @@ const (
// Constants for the underlying HTTP Client transport. These would enable better connection reuse.
// Set them on a 10:1 ratio, but this would actually depend on the Triggers' subscribers and the workload itself.
// These are magic numbers, partly set based on empirical evidence running performance workloads, and partly
// based on what serving is doing. See https://github.com/knative/serving/blob/master/pkg/network/transports.go.
// based on what serving is doing. See https://github.com/knative/serving/blob/main/pkg/network/transports.go.
defaultMaxIdleConnections = 1000
defaultMaxIdleConnectionsPerHost = 100
)

View File

@ -27,7 +27,7 @@ const (
// Defaults for the underlying HTTP Client transport. These would enable better connection reuse.
// Set them on a 10:1 ratio, but this would actually depend on the Subscriptions' subscribers and the workload itself.
// These are magic numbers, partly set based on empirical evidence running performance workloads, and partly
// based on what serving is doing. See https://github.com/knative/serving/blob/master/pkg/network/transports.go.
// based on what serving is doing. See https://github.com/knative/serving/blob/main/pkg/network/transports.go.
defaultMaxIdleConnections = 1000
defaultMaxIdleConnectionsPerHost = 100
)

View File

@ -1,4 +1,4 @@
# Samples
_Knative eventing_ samples have moved to
[the docs repository](https://github.com/knative/docs/tree/master/docs/eventing/samples).
[the docs repository](https://github.com/knative/docs/tree/main/docs/eventing/samples).

View File

@ -21,7 +21,7 @@ community contact's duty (subject to change) is as followed:
### Monday
- Check 'Eventing Triage' Peribolos group
https://github.com/knative/community/blob/master/peribolos/knative.yaml and
https://github.com/knative/community/blob/main/peribolos/knative.yaml and
send a PR to add yourself if you aren't already in there.
- Check the [Eventing test grid](https://testgrid.k8s.io/knative-eventing) for
flakiness to pick a test and focus on fixing it during your week. Once you

View File

@ -129,10 +129,10 @@ automatically._
The [`upload-test-images.sh`](./upload-test-images.sh) script can be used to
build and push the test images used by the e2e tests. It requires:
- [`KO_DOCKER_REPO`](https://github.com/knative/serving/blob/master/DEVELOPMENT.md#environment-setup)
- [`KO_DOCKER_REPO`](https://github.com/knative/serving/blob/main/DEVELOPMENT.md#environment-setup)
to be set
- You to be
[authenticated with your `KO_DOCKER_REPO`](https://github.com/knative/serving/blob/master/DEVELOPMENT.md#environment-setup)
[authenticated with your `KO_DOCKER_REPO`](https://github.com/knative/serving/blob/main/DEVELOPMENT.md#environment-setup)
- [`docker`](https://docs.docker.com/install/) to be installed
`PLATFORM` environment variable is optional. If it is specified, test images
@ -163,4 +163,4 @@ uploading test images, `ko` will build an image from this folder.
## Flags
Flags are similar to those in
[`Knative Serving`](https://github.com/knative/serving/blob/master/test/README.md#flags-1).
[`Knative Serving`](https://github.com/knative/serving/blob/main/test/README.md#flags-1).

View File

@ -2,14 +2,14 @@
Conformance tests verifies knative eventing implementation for expected behavior
described in
[specification](https://github.com/knative/eventing/tree/master/docs/spec).
[specification](https://github.com/knative/eventing/tree/main/docs/spec).
## Running performance tests
Run test with e2e tag and optionally select conformance test
> NOTE: Make sure you have built the
> [test images](https://github.com/knative/eventing/tree/master/test#building-the-test-images)!
> [test images](https://github.com/knative/eventing/tree/main/test#building-the-test-images)!
```shell
ko apply -Rf test/config/

View File

@ -914,7 +914,7 @@ const (
)
// CreateRBACResourcesForBrokers creates required RBAC resources for creating Brokers,
// see https://github.com/knative/docs/blob/master/docs/eventing/broker-trigger.md - Manual Setup.
// see https://github.com/knative/docs/blob/main/docs/eventing/broker-trigger.md - Manual Setup.
func (c *Client) CreateRBACResourcesForBrokers() {
c.CreateServiceAccountOrFail(saIngressName)
c.CreateServiceAccountOrFail(saFilterName)

View File

@ -8,7 +8,7 @@
1. Install Knative eventing and components used in the performance test, such as
MT broker, by following the steps in
https://github.com/knative/eventing/blob/master/DEVELOPMENT.md.
https://github.com/knative/eventing/blob/main/DEVELOPMENT.md.
1. Create a ConfigMap called `config-mako` in your chosen namespace containing
the Mako config file.
@ -23,7 +23,7 @@ kubectl create configmap -n perf-eventing config-mako --from-file=test/performan
kubectl edit configmap -n perf-eventing config-mako
```
[`NewConfigFromMap`](https://github.com/knative/pkg/blob/master/test/mako/config.go#L41)
[`NewConfigFromMap`](https://github.com/knative/pkg/blob/main/test/mako/config.go#L41)
determines the valid keys in this ConfigMap. Current keys are:
- `environment`: Select a Mako config file in the ConfigMap. E.g.
@ -60,7 +60,7 @@ To run a benchmark once, and use the result from `mako-stub` for plotting:
1. Wait until all the pods in namespace `perf-eventing` are completed.
1. Retrieve results from mako-stub using the script in
[knative/pkg](https://github.com/knative/pkg/blob/master/test/mako/stub-sidecar/read_results.sh)
[knative/pkg](https://github.com/knative/pkg/blob/main/test/mako/stub-sidecar/read_results.sh)
where `pod_name` is the name of the aggregator pod:
```
@ -101,7 +101,7 @@ gnuplot -c test/performance/latency-and-thpt-plot.plg data.csv 0.005 480 520
Most eventing binaries under `cmd` package are bootstrapped by either
`sharedmain.Main` in `knative.dev/pkg/injection/sharedmain` or `adapter.Main` in
`knative.dev/eventing/pkg/adapter`. These `Main` helper functions uses the
[profiling](https://github.com/knative/pkg/blob/master/profiling/server.go)
[profiling](https://github.com/knative/pkg/blob/main/profiling/server.go)
package to enable golang profiling by reading the `profiling.enable` flag in the
`config-observability` configmap.