Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
cardil committed Mar 1, 2024
0 parents commit 643b744
Show file tree
Hide file tree
Showing 4,739 changed files with 1,392,995 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 5 additions & 0 deletions .codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ignore:
- "**/zz_generated*.go" # Ignore generated files.
- "pkg/client"
- "third_party"
- "vendor"
15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file is documented at https://git-scm.com/docs/gitattributes.
# Linguist-specific attributes are documented at
# https://github.com/github/linguist.

**/zz_generated.*.go linguist-generated=true
/pkg/client/** linguist-generated=true
/test/client/** linguist-generated=true

# coverage-excluded is an attribute used to explicitly exclude a path from being included in code
# coverage. If a path is marked as linguist-generated already, it will be implicitly excluded and
# there is no need to add the coverage-excluded attribute
/pkg/**/testing/** coverage-excluded=true
/vendor/** coverage-excluded=true
/test/** coverage-excluded=true
/cmd/**/main.go coverage-excluded=true
14 changes: 14 additions & 0 deletions .github/workflows/knative-go-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2020 The Knative Authors.
# SPDX-License-Identifier: Apache-2.0

# This file is automagically synced here from github.com/knative-extensions/knobots

name: Build

on:
pull_request:
branches: [ 'main', 'release-*' ]

jobs:
build:
uses: knative/actions/.github/workflows/reusable-go-build.yaml@main
17 changes: 17 additions & 0 deletions .github/workflows/knative-go-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2022 The Knative Authors.
# SPDX-License-Identifier: Apache-2.0

# This file is automagically synced here from github.com/knative-extensions/knobots

name: Test

on:
push:
branches: [ 'main', 'release-*' ]

pull_request:
branches: [ 'main', 'release-*' ]

jobs:
test:
uses: knative/actions/.github/workflows/reusable-go-test.yaml@main
17 changes: 17 additions & 0 deletions .github/workflows/knative-security.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2020 The Knative Authors.
# SPDX-License-Identifier: Apache-2.0

# This file is automagically synced here from github.com/knative-extensions/knobots

name: 'Security'

on:
push:
branches: [ 'main', 'release-*' ]

pull_request:
branches: [ 'main', 'release-*' ]

jobs:
analyze:
uses: knative/actions/.github/workflows/reusable-security.yaml@main
14 changes: 14 additions & 0 deletions .github/workflows/knative-stale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2020 The Knative Authors.
# SPDX-License-Identifier: Apache-2.0

# This file is automagically synced here from github.com/knative-extensions/knobots
name: 'Close stale'

on:
schedule:
- cron: '0 1 * * *'

jobs:

stale:
uses: knative/actions/.github/workflows/reusable-stale.yaml@main
15 changes: 15 additions & 0 deletions .github/workflows/knative-style.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2020 The Knative Authors.
# SPDX-License-Identifier: Apache-2.0

# This file is automagically synced here from github.com/knative-extensions/knobots

name: Code Style

on:
pull_request:
branches: [ 'main', 'release-*' ]

jobs:

style:
uses: knative/actions/.github/workflows/reusable-style.yaml@main
26 changes: 26 additions & 0 deletions .github/workflows/knative-verify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2020 The Knative Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# This file is automagically synced here from github.com/knative-extensions/.github
# repo by knobots: https://github.com/knative-extensions/knobots and will be overwritten.

name: Verify

on:
pull_request:
branches: [ 'main', 'release-*' ]

jobs:
verify:
uses: knative/actions/.github/workflows/reusable-verify-codegen.yaml@main
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Operating system temporary files
.DS_Store

# Editor/IDE specific settings
.idea
.vscode/
*.iml

# Temporary output of build tools
bazel-*
*.out
22 changes: 22 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
run:
timeout: 5m

build-tags:
- e2e

skip-dirs:
- pkg/client

linters:
enable:
- asciicheck
- errorlint
- gosec
- prealloc
- revive
- stylecheck
- tparallel
- unconvert
- unparam
disable:
- errcheck
6 changes: 6 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Contribution guidelines

So you want to hack on Knative `knative-serving-wasm`? Yay! Please refer to
Knative's overall
[contribution guidelines](https://www.knative.dev/contributing/) to find out how
you can help.
72 changes: 72 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Development

This doc explains how to setup a development environment so you can get started
[contributing](https://www.knative.dev/contributing/) to Knative
`knative-serving-wasm`. Also take a look at:

- [The pull request workflow](https://knative.dev/community/contributing/reviewing/)

## Getting started

1. Create [a GitHub account](https://github.com/join)
1. Setup
[GitHub access via SSH](https://help.github.com/articles/connecting-to-github-with-ssh/)
1. Install [requirements](#requirements)
1. Set up your [shell environment](#environment-setup)
1. [Create and checkout a repo fork](#checkout-your-fork)

Before submitting a PR, see also [CONTRIBUTING.md](./CONTRIBUTING.md).

### Requirements

You must install these tools:

1. [`go`](https://golang.org/doc/install): The language Knative
`knative-serving-wasm` is built in
1. [`git`](https://help.github.com/articles/set-up-git/): For source control

### Environment setup

To get started you'll need to set these environment variables (we recommend
adding them to your `.bashrc`):

1. `GOPATH`: If you don't have one, simply pick a directory and add
`export GOPATH=...`

1. `$GOPATH/bin` on `PATH`: This is so that tooling installed via `go get` will
work properly.

`.bashrc` example:

```shell
export GOPATH="$HOME/go"
export PATH="${PATH}:${GOPATH}/bin"
```

### Checkout your fork

The Go tools require that you clone the repository to the
`src/github.com/cardil/knative-serving-wasm` directory in your
[`GOPATH`](https://github.com/golang/go/wiki/SettingGOPATH).

To check out this repository:

1. Create your own
[fork of this repo](https://help.github.com/articles/fork-a-repo/)

1. Clone it to your machine:

```shell
mkdir -p ${GOPATH}/src/knative.dev
cd ${GOPATH}/src/knative.dev
git clone git@github.com:${YOUR_GITHUB_USERNAME}/knative-serving-wasm.git
cd knative-serving-wasm
git remote add upstream https://github.com/knative-sandbox/knative-serving-wasm.git
git remote set-url --push upstream no_push
```

_Adding the `upstream` remote sets you up nicely for regularly
[syncing your fork](https://help.github.com/articles/syncing-a-fork/)._

Once you reach this point you are ready to do a full build and deploy as
described below.

0 comments on commit 643b744

Please sign in to comment.