Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
580dfc4
change name for menu item for preview (#3533)
csantanapr May 5, 2021
56d5097
Added detail per issue #3425 (#3514)
RichardJJG May 11, 2021
08df9a4
Update knative/community files (#3553)
knative-automation May 12, 2021
59494a1
tracing cm fix (#3506)
Shashankft9 May 12, 2021
702b26b
remove unnecessary requrirements to do a release (#3563)
csantanapr May 12, 2021
135e998
#3543 fix link (#3567)
abrennan89 May 13, 2021
401db7d
Replace xip.io with sslip.io (#3574)
benjamintanweihao May 14, 2021
3728a93
Update actions (#3535)
knative-automation May 14, 2021
b20e599
Update common github actions (#3552)
knative-automation May 14, 2021
9de8ab7
upgrade to latest dependencies (#3505)
knative-automation May 14, 2021
b5b2063
Remove responsive-revision-gc config (#3545)
nak3 May 14, 2021
f0264b1
Fixes #3117 and broken links (#3569)
abrennan89 May 14, 2021
3b42f9d
Update shortcodes.md (#3550)
javajon May 14, 2021
3211289
:lipstick: slight change to ordered delivery guarantees (#3536)
matzew May 17, 2021
f756f1a
Add knative-release-leads to OWNERS (#3586)
May 17, 2021
c9ce88e
add approvers ux (#3587)
csantanapr May 17, 2021
22c1511
Update the default value (#3530)
RichieEscarez May 18, 2021
8751c19
Adding notes on KafkaSource usage (#3596)
matzew May 18, 2021
42fb8a1
Update actions (#3581)
knative-automation May 18, 2021
4ab8007
Remove python pycache (#3594)
nak3 May 18, 2021
3d98fc4
Use correct setting in ClusterIssue setting (#3595)
nak3 May 18, 2021
f8e75be
fix broken link #3568 #3577 (#3579)
novahe May 18, 2021
1974a07
merging main into mkdocs
May 19, 2021
a9036c0
fix Netlify build
May 19, 2021
f86d92a
Merge branch 'mkdocs' into mkdocs
May 19, 2021
612e0d3
Added Snippets folder and hidden Beta Contributor guide
May 19, 2021
fb2307a
Merge branch 'mkdocs' of https://github.com/omerbensaadon/docs into m…
May 19, 2021
73c45d9
Update docs/eventing/event-registry.md
May 19, 2021
1b9e7f2
whitespace
May 19, 2021
fa8921d
Merge branch 'mkdocs' of https://github.com/omerbensaadon/docs into m…
May 19, 2021
2e51f40
more whitespace
May 19, 2021
b3e0280
removing this bit because linting is killing me
May 19, 2021
4ef9781
ok really the last one
May 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/knative-boilerplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ jobs:

steps:

- name: Set up Go 1.15.x
- name: Set up Go 1.16.x
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.16.x
id: go

- name: Check out code
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/knative-go-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
name: Build
strategy:
matrix:
go-version: [1.15.x]
go-version: [1.16.x]
platform: [ubuntu-latest]

runs-on: ${{ matrix.platform }}
Expand All @@ -43,7 +43,13 @@ jobs:
- name: Check out code
uses: actions/checkout@v2

- id: go_mod
uses: andstor/file-existence-action@v1
with:
files: go.mod

- name: Build
if: ${{ steps.go_mod.outputs.files_exists == 'true' }}
run: |
tags="$(grep -I -r '// +build' . | \
grep -v '^./vendor/' | \
Expand All @@ -55,5 +61,4 @@ jobs:
tr '\n' ' ')"

echo "Building with tags: ${tags}"
go test -vet=off -tags "${tags}" -run=^$ ./... | grep -v "no test" || true

go test -vet=off -tags "${tags}" -exec echo ./...
2 changes: 1 addition & 1 deletion .github/workflows/knative-go-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
name: Unit Tests
strategy:
matrix:
go-version: [1.15.x]
go-version: [1.16.x]
platform: [ubuntu-latest]

runs-on: ${{ matrix.platform }}
Expand Down
26 changes: 8 additions & 18 deletions .github/workflows/knative-releasability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ jobs:
env:
#########################################
# Update this section each release. #
RELEASE: 'v0.22'
SLACK_CHANNEL: 'release-22'
RELEASE: 'v0.23'
SLACK_CHANNEL: 'release-23'
#########################################

steps:
Expand All @@ -54,10 +54,10 @@ jobs:
echo "SLACK_WEBHOOK=exists" >> $GITHUB_ENV
fi

- name: Set up Go 1.15.x
- name: Set up Go 1.16.x
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.16.x

- name: Install Dependencies
run: GO111MODULE=on go get knative.dev/test-infra/buoy@main
Expand Down Expand Up @@ -110,25 +110,15 @@ jobs:
# If we don't run `git status` before the "git diff-index" it seems
# to list every file that's been touched by codegen.
git status
FOUND_DIFF=0
for x in $(git diff-index --name-only HEAD --); do
if [ "$(basename $x)" = "go.mod" ]; then
continue
elif [ "$(basename $x)" = "go.sum" ]; then
continue
elif [ "$(basename $x)" = "modules.txt" ]; then
continue
fi
echo "Found non-module diff: $x"
FOUND_DIFF=1
break
done

CHANGED="$(git diff-index --name-only HEAD --)"

# If we see no changes after the upgrade, then we are up to date.
if [[ "$FOUND_DIFF" -eq "0" ]]; then
if [[ "$CHANGED" == "" ]]; then
echo "VERIFY_MESSAGE=${{ github.repository }} up to date." >> $GITHUB_ENV
else
echo "VERIFY_MESSAGE=${{ github.repository }} is out of date." >> $GITHUB_ENV
echo "The following files are changed: $CHANGED"
echo 'current=false' >> $GITHUB_ENV
fi

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/knative-release-notes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.16.x

- name: Install Dependencies
run: GO111MODULE=on go get k8s.io/release/cmd/release-notes
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/knative-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
importpath: golang.org/x/tools/cmd/goimports

steps:
- name: Set up Go 1.15.x
- name: Set up Go 1.16.x
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.16.x
id: go

- name: Check out code
Expand Down Expand Up @@ -89,10 +89,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up Go 1.15.x
- name: Set up Go 1.16.x
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.16.x
id: go

- name: Check out code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/knative-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
name: Verify Deps and Codegen
strategy:
matrix:
go-version: [1.15.x]
go-version: [1.16.x]
platform: [ubuntu-latest]

runs-on: ${{ matrix.platform }}
Expand Down
2 changes: 2 additions & 0 deletions OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ approvers:
- docs-writers
- technical-oversight-committee
- steering-committee
- knative-release-leads
- ux-wg-leads
reviewers:
- docs-writers
- docs-reviewers
4 changes: 0 additions & 4 deletions OWNERS_ALIASES
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,10 @@ aliases:
pkg-configmap-reviewers:
- dprotaso
- mattmoor
- mdemirhan
- vagababov
pkg-configmap-writers:
- dprotaso
- mattmoor
- mdemirhan
- vagababov
pkg-controller-reviewers:
- dprotaso
Expand Down Expand Up @@ -209,11 +207,9 @@ aliases:
- evankanderson
- julz
serving-observability-reviewers:
- mdemirhan
- skonto
- yanweiguo
serving-observability-writers:
- mdemirhan
- yanweiguo
serving-reviewers:
- julz
Expand Down
14 changes: 7 additions & 7 deletions blog/articles/set-up-a-local-knative-environment-with-kind.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,15 +218,15 @@ kourier.ingress.networking.knative.dev

To get the same experience that you would when using a cluster that has DNS names set up, you can add a “magic” DNS provider.

_nip.io_ provides a wildcard DNS setup that will automatically resolve to the IP address you put in front of nip.io.
_sslip.io_ provides a wildcard DNS setup that will automatically resolve to the IP address you put in front of sslip.io.

To patch the domain configuration for Knative Serving using nip.io, enter the command:
To patch the domain configuration for Knative Serving using sslip.io, enter the command:

```bash
$ kubectl patch configmap/config-domain \
--namespace knative-serving \
--type merge \
--patch '{"data":{"127.0.0.1.nip.io":""}}'
--patch '{"data":{"127.0.0.1.sslip.io":""}}'
```

If you want to validate that the patch command was successful, run the command:
Expand All @@ -239,7 +239,7 @@ $ kubectl describe configmap/config-domain --namespace knative-serving
... (abbreviated for readability)
Data
====
127.0.0.1.nip.io:
127.0.0.1.sslip.io:
----
...
```
Expand Down Expand Up @@ -329,20 +329,20 @@ $ kubectl get ksvc

```bash
NAME URL LATESTCREATED LATESTREADY READY REASON
helloworld-go http://helloworld-go.default.127.0.0.1.nip.io helloworld-go-fqqs6 Unknown RevisionMissing
helloworld-go http://helloworld-go.default.127.0.0.1.sslip.io helloworld-go-fqqs6 Unknown RevisionMissing
```

```bash
NAME URL LATESTCREATED LATESTREADY READY REASON
helloworld-go http://helloworld-go.default.127.0.0.1.nip.io helloworld-go-fqqs6 helloworld-go-fqqs6 True
helloworld-go http://helloworld-go.default.127.0.0.1.sslip.io helloworld-go-fqqs6 helloworld-go-fqqs6 True
```

The final step is to test your application, by checking that the code returns what you expect. You can do this by sending a cURL request to the URL listed above.

Because this example mapped port 80 of the host to be forwarded to the cluster and set the DNS, you can use the exact URL.

```bash
$ curl -v http://helloworld-go.default.127.0.0.1.nip.io
$ curl -v http://helloworld-go.default.127.0.0.1.sslip.io
```

```bash
Expand Down
5 changes: 2 additions & 3 deletions community/samples/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ something isn't working, lend a helping hand and fix it in a PR.

[Learn more about the lifespan of samples](https://github.com/knative/docs/tree/main/CONTRIBUTING.md#user-focused-content)

[**See all Knative code samples**](../../docs/samples.md)
[**See all Knative code samples**](../../docs/samples)

### Interactive serving sample

Expand All @@ -30,7 +30,7 @@ Knative Serving sample apps.

| Sample Name | Description | Language(s) |
| ----------- | ----------- | ----------- |
| Hello World | A quick introduction to Knative Serving that highlights how to deploy an app. | [Clojure](./serving/helloworld-clojure/README.md), [Dart](./serving/helloworld-dart/README.md), [Elixir](./serving/helloworld-elixir/README.md), [Haskell](./serving/helloworld-haskell/README.md), [Java - Micronaut](./serving/helloworld-java-micronaut/README.md), [Java - Quarkus](./serving/helloworld-java-quarkus/README.md), [R - Go Server](./serving/helloworld-r/README.md), [Rust](./serving/helloworld-rust/README.md), [Swift](./serving/helloworld-swift/README.md), [Vertx](./serving/helloworld-vertx/README.md) |
| Hello World | A quick introduction to Knative Serving that highlights how to deploy an app. | [Clojure](./serving/helloworld-clojure/), [Dart](./serving/helloworld-dart/), [Elixir](./serving/helloworld-elixir/), [Haskell](./serving/helloworld-haskell/), [Java - Micronaut](./serving/helloworld-java-micronaut/), [Java - Quarkus](./serving/helloworld-java-quarkus/), [R - Go Server](./serving/helloworld-r/), [Rust](./serving/helloworld-rust/), [Swift](./serving/helloworld-swift/), [Vertx](./serving/helloworld-vertx/) |
| Machine Learning | A quick introduction to using Knative Serving to serve machine learning models | [Python - BentoML](./serving/machinelearning-python-bentoml)

#### Eventing and Eventing Resources samples
Expand All @@ -45,4 +45,3 @@ Knative `kn` Client sample workflows and apps.
| Sample Name | Description |
| ----------- | ----------- |
| [knfun](https://github.com/maximilien/knfun) | Knative micro-functions (Twitter and Watson APIs) demo using the `kn` client. |

7 changes: 3 additions & 4 deletions community/samples/serving/helloworld-clojure/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ specified, it will use "World" as the TARGET.
## Prerequisites

- A Kubernetes cluster with Knative installed and DNS configured. Follow the
[installation instructions](../../../../docs/install/README.md) if you need to create
[installation instructions](../../../../docs/install/) if you need to create
one.
- [Docker](https://www.docker.com) installed and running on your local machine,
and a Docker Hub account configured (we'll use it for a container registry).
Expand Down Expand Up @@ -142,14 +142,14 @@ folder) you're ready to build and deploy the sample app.
```
kubectl get ksvc helloworld-clojure --output=custom-columns=NAME:.metadata.name,URL:.status.url
NAME URL
helloworld-clojure http://helloworld-clojure.default.1.2.3.4.xip.io
helloworld-clojure http://helloworld-clojure.default.1.2.3.4.sslip.io
```

1. Now you can make a request to your app and see the result. Replace
the URL below with the URL returned in the previous command.

```shell
curl http://helloworld-clojure.default.1.2.3.4.xip.io
curl http://helloworld-clojure.default.1.2.3.4.sslip.io
Hello World!
```

Expand All @@ -160,4 +160,3 @@ To remove the sample app from your cluster, delete the service record:
```shell
kubectl delete --filename service.yaml
```

6 changes: 3 additions & 3 deletions community/samples/serving/helloworld-dart/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ that you can use for testing. It reads in the env variable `TARGET` and prints
## Prerequisites

- A Kubernetes cluster with Knative installed and DNS configured. Follow the
[installation instructions](../../../../docs/install/README.md) if you need to create
[installation instructions](../../../../docs/install/) if you need to create
one.
- [Docker](https://www.docker.com) installed and running on your local machine,
and a Docker Hub account configured (we'll use it for a container registry).
Expand Down Expand Up @@ -140,14 +140,14 @@ folder) you're ready to build and deploy the sample app.
```
kubectl get ksvc helloworld-dart --output=custom-columns=NAME:.metadata.name,URL:.status.url
NAME URL
helloworld-dart http://helloworld-dart.default.1.2.3.4.xip.io
helloworld-dart http://helloworld-dart.default.1.2.3.4.sslip.io
```

1. Now you can make a request to your app and see the result. Replace
the URL below with the URL returned in the previous command.

```shell
curl http://helloworld-dart.default.1.2.3.4.xip.io
curl http://helloworld-dart.default.1.2.3.4.sslip.io
Hello Dart Sample v1
```

Expand Down
9 changes: 4 additions & 5 deletions community/samples/serving/helloworld-deno/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cd knative-docs/docs/serving/samples/hello-world/helloworld-deno
## Before you begin

- A Kubernetes cluster with Knative installed. Follow the
[installation instructions](../../../../docs/install/README.md) if you need to
[installation instructions](../../../../docs/install/) if you need to
create one.
- [Docker](https://www.docker.com) installed and running on your local machine,
and a Docker Hub account configured (we'll use it for a container registry).
Expand Down Expand Up @@ -121,20 +121,20 @@ folder) you're ready to build and deploy the sample app.

```shell
NAME URL
helloworld-deno http://helloworld-deno.default.1.2.3.4.xip.io
helloworld-deno http://helloworld-deno.default.1.2.3.4.sslip.io
```

1. Now you can make a request to your app and see the result. Replace
the URL below with the URL returned in the previous command.

```shell
curl http://helloworld-deno.default.1.2.3.4.xip.io
curl http://helloworld-deno.default.1.2.3.4.sslip.io
```

Example:

```shell
curl http://helloworld-deno.default.1.2.3.4.xip.io
curl http://helloworld-deno.default.1.2.3.4.sslip.io
[1] "Hello R Sample v1!"
```

Expand All @@ -147,4 +147,3 @@ To remove the sample app from your cluster, delete the service record:
```shell
kubectl delete --filename service.yaml
```

4 changes: 2 additions & 2 deletions community/samples/serving/helloworld-elixir/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@ above.
kubectl get ksvc helloworld-elixir --output=custom-columns=NAME:.metadata.name,URL:.status.url

NAME URL
helloworld-elixir http://helloworld-elixir.default.1.2.3.4.xip.io
helloworld-elixir http://helloworld-elixir.default.1.2.3.4.sslip.io
```

1. Now you can make a request to your app to see the results. Replace
`{IP_ADDRESS}` with the address you see returned in the previous step.

```shell
curl http://helloworld-elixir.default.1.2.3.4.xip.io
curl http://helloworld-elixir.default.1.2.3.4.sslip.io

...
# HTML from your application is returned.
Expand Down
Loading