Commit Graph

101 Commits

Author SHA1 Message Date
Nader Ziada 9073261f9b
fix broken samples link (#12508) 2022-01-13 12:33:12 -08:00
Markus Thömmes 491f288b3f
Drop master references to knative repos (#10918) 2021-03-10 09:40:25 -08:00
Sam O'Dell 72648094a1 Updating links to docs repo (#3497)
* Fixing broken links to docs repo

* Dropping vendor files from PR

* Minor wording tweaks
2019-04-05 07:56:57 -07:00
Ryan Gregg d43bc6c3cd Move samples to the doc repo (#1360)
* Hide finder indexes

* Remove samples from serving

* Add back the helloworld sample

* Link to docs repo

* Move build-pack samples

* Clean up merge

* Remove helloworld again
2018-07-09 12:21:05 -07:00
Jason Hall c0f11c6e5e Update Build vendor (#1384)
* Update build vendor, fix tests

* Update build.dev references

* update commit

* Update build vendor, fix tests

* update commit

* update

* update build/release.yaml

* Update samples to use revision instead of branch

* update dep
2018-07-01 19:38:26 -07:00
Nghia Tran 22e3cb0f05 Migrate to Istio v1alpha3 Gateway / VirtualService (#1228)
* Move to using Istio v1alpha3 API.

* Removing ingressInformer from controllers since we no longer need.

* Update typo and utilization target for HPA.

* Add README.md to explain how we create these types.

* Update per PR feedback

* Update per PR feedback.

* Add back the timeout settings.

The timeout headers were added when we used v1alpha2 in order to allow
more time for 0->1 scaling.  I accidentally undo that change when
moving to v1alpha3.  This adds it back.

* Run hack/update-codegen.sh.

* Update per PR feedback.

* Update per PR feedback.

* Update per PR feedback.
2018-06-29 11:33:36 -07:00
Matt Moore 1c911fe546 This changes from `demo-domain.com` to `example.com`. (#1400)
We don't own `demo-domain.com`, so configuring it by default presents an abundance of problems.  `example.com` is the canonical placeholder domain, so we will configure that by default.

In the future we will very likely change this to a sane default that will automatically work with intra-cluster DNS, but until then this seems like the most reasonable default.

Fixes: https://github.com/knative/serving/issues/1365
2018-06-28 15:13:15 -07:00
jonjohnsonjr 4a7edb0c10 Rename ela things (#1378)
Notably, ela-prow and elafros-e2e-tests, and image names are left.
2018-06-27 21:37:15 -07:00
Jason Hall 7d7ddd79a7 Remove steren samples and templates (#1367) 2018-06-27 11:02:21 -07:00
Matt Moore 9f64f866d6 Rewrite Copyright headers to Knative Authors. (#1341)
* Rewrite Copyright headers to Knative Authors.

* Drop `All rights reserved` from a few places.
2018-06-25 12:11:20 -07:00
Brenda Chan dbc2f0c95e Adds sample gRPC application (#1261)
* Adds sample gRPC application

* this sample depends on https://github.com/knative/serving/issues/1047 to be complete

* * Adds '-insecure' flag to sample grpc client
* Adds comment that the sample grpc server serves h2c by default
2018-06-20 17:35:18 -07:00
Steren d11a38d857 Add link to service sample in sample index (#1290) 2018-06-20 13:46:18 -07:00
Evan Anderson cca9a053a2 Rename Elafros to Knative in community. (#1041)
* Rename "Elafros" to "Knative" in community docs.

* Update code-of-conduct address to separate from maintainers address.
2018-06-15 12:50:16 -07:00
Yanwei Guo a67cd50dde Make stackdriver agent work for detecting Json log (#1169)
* change fluentd config

* rename

* change kubernetes_metadata version requirement
2018-06-13 14:50:15 -07:00
Zhimin Xiang a314689d98 A sample that shows how to set up Ingress/RouteRule to route traffic based on URI (#924)
* add sample apps for Elafros routing

* temporary debug

* add Ingress and RouteRule to route request according to uri

* Reverse back some code for debugging

* Rename files and fix typepo

* Add some content in README

* add some space

* add ADDRESS and PORTS

* add space

* add space

* delete space

* add space

* add space

* add ADDRESS and PORTS for search

* add ADDRESS and PORTS for entry

* Add content of Exploring section in README.md

* Fulfill the section of How It Works

* fix typos

* revert unnecessary file

* Fix typos

* fix the incorrect container image path

* fix the incorrect container image path

* 1. Add comment in routing.yaml file. 2. Use Elafros service instead of Route and Configuration in sample.yaml 3. Delete Dockerfile and reuse sample/Dockerfile.golang 4. Rewrite README and add a graph

* fix typos

* replace elafros with knative

* delete old paths

* enforce the 80 char a line

* enforce the 80 char a line

* rephrase README

* fix typo of apiVersion after renaming elafros to knative
2018-06-11 16:34:14 -07:00
Matt Moore 3ec60bc397 Move revision condition manipulation to _types.go (#1118)
* Move revision condition manipulation into revision_types.go

This is the Revision equivalent of #1113

This contains two other unrelated changes:
1. Condense the object construction in `revision_test.go`
1. Reorder the `helloworld` yaml to create the configuration first.

The reason for the second "unrelated" change is that I was seeing the route controller marking the Route as "AllTrafficAssigned = False" because the configuration wasn't created yet.

* Update the conditions spec to eliminate wording about elision.

Eliding conditions can come later, it's a premature optimization,
and I'm not sure we're handling conditions well enough to do it
reliably yet.

* Fix test breakages due to setCondition becoming private.

* Add unit test coverage of the condition logic.

* Clarify isBuildDone through local variable names.
2018-06-11 12:48:15 -07:00
jonjohnsonjr 63b52e9283 Rename most ela-* things (#1045)
* Rename most ela-* things

Left `ela-prow` since that is an external dependency that might break.

* Fix filenames

* Revert some e2e test changes

* attempt to fight the Walk function

* Address feedback

* Rearrange yaml order

Attempt to reflect the important-looking order from bazel's build rules.

See: a15e38795b/config/BUILD.bazel (L121-L138)
2018-06-05 11:10:13 -07:00
Matt Moore a1959998ab [WIP] Remove Bazel from knative/serving (#1032) 2018-06-05 07:10:13 -07:00
Matt Moore d0b8b3e076 Add logic to EXPOSE 8080 to our sample Dockerfile. (#1033) 2018-06-02 07:47:11 -07:00
Matt Moore d1da580f92 Replace Elafros with Knative Serving in *.go (#1018)
There is one place we use `Knative-Serving` instead (`pkg/controller/names.go`)
2018-06-01 14:25:11 -07:00
Matt Moore 988b391f8f Rename Elafros to Knative Serving in non-Community markdown files. (#1019) 2018-06-01 13:15:11 -07:00
Scott Andrews ad04171674 Rename the CRD group to serving.knative.dev (#1013)
Other Knative projects use the project name in the CRD group. Now that
the Serving project is no longer called "elafros", the project name
should be included in the CRD group namespace.

This is a breaking change, but aligns well with the other breakages
caused by the rename.

I intentionally did not update name for resource labels or for logging.

In docs there were a few references to CRDs from the build project.
Those CRD groups are now called build.knative.dev.
2018-06-01 12:54:11 -07:00
Ville Aikas 27be32dc69 Rename repo to knative (#1009)
* elafros/elafros -> knative/service

* replace elafros with knative

* changed ela package to serving

* change elafros/build to knative/build and newer version

* things are running mostly

* address build / test failures

* address integration test failures

* repo has not chnaged
2018-05-31 17:21:11 -07:00
Jason Hall 3a55bca143 Migrate samples to use configs from build-tempaltes repo (#980) 2018-05-27 05:52:09 -07:00
Mustafa Demirhan d5cfa5b566 Remove Prometheus Operator dependency (#960)
* Remove the usage of prometheus operator and manage prometheus instances ourselves. This is needed because prometheus operator doesn't work with kubernetes 1.10 yet and we need that support. We are not making use of prometheus operator capabilities yet, so there is no functionality lost.

* Add OWNERS files to monitoring related folders.
2018-05-24 17:31:08 -07:00
jonjohnsonjr b8961323b6 Update README.md (#891) 2018-05-24 10:46:08 -07:00
David Protasowski 32344118aa Update buildpack.yaml (#955)
PACK_REGISTRY_GCR is no longer needed
2018-05-24 10:04:08 -07:00
Matt Moore e5ce740d17 Make Go samples use multi-stage Dockerfiles (#950)
* Consolidate the Dockerfile used for the assorted Go samples.

* Samples should use multi-stage Dockerfile build.

This better reflects what contributors see with bazel/ko and best practices for image construction.

Fixes: https://github.com/elafros/elafros/issues/927
2018-05-23 19:59:07 -07:00
Scott Andrews 5fc52c6014 Fix typo (#941)
https://github.com/elafros/elafros/pull/865#pullrequestreview-122485835
2018-05-23 16:55:07 -07:00
Matt Moore 4cff9b7aef Revert "Use relative symlinks to keep matching OWNERS files in sync. (#942)" (#948)
This reverts commit 95002dad07.
2018-05-23 14:57:07 -07:00
Matt Moore 95002dad07 Use relative symlinks to keep matching OWNERS files in sync. (#942)
These links were created via:
```shell
ln -s -r ./pkg/controller/OWNERS ./cmd/ela-controller/OWNERS
```
2018-05-23 10:13:08 -07:00
Adriano Cunha 4698afc42c Cleanup OWNERS files (#910)
* Cleanup OWNERS files

* removed OWNERS files from //vendor, as they contain external approvers unrelated to Elafros
* added headers to all existing OWNERS files
* removed CODEOWNERS
* updated documentation, updating all references from CODEOWNERS to OWNERS

* Update update-deps.sh to also remove OWNERS files from deps
2018-05-18 08:09:06 -07:00
Matt Moore f6ea39f568 More sample updates (#876)
* Switch from `sed` to `perl` for substitutions.

Fixes: https://github.com/elafros/elafros/issues/856

* Make the sample pre-reqs link to elafros/install.

Fixes: https://github.com/elafros/elafros/issues/852
2018-05-11 11:39:02 -07:00
Matt Moore f34ffb8304 Drop Bazel in autoscale sample (#855)
Related: #677
2018-05-10 12:57:25 -07:00
Matt Moore 85128f8b96 Remove Bazel from telemetrysample (#864)
Related: #677
2018-05-10 12:00:24 -07:00
Matt Moore 33ae9c0438 Remove Bazel from gitwebhook sample (#863)
Related: #677
2018-05-10 10:35:25 -07:00
Matt Moore 96087741f3 Remove Bazel from service sample (#861)
Related: #677
2018-05-10 10:15:24 -07:00
Matt Moore a48fc4e17c Remove Bazel from helloworld sample (#860)
Related: #677
2018-05-10 09:49:25 -07:00
Matt Moore bb83520e30 Partially revert #859 (#866)
This brings back the BUILD files and ability to use ko to deploy things during development, while leaving the README changes and Dockerfile.
2018-05-10 09:27:25 -07:00
Scott Andrews 91d8d5b79b Add buildpack-function sample (#865)
The buildpack-function sample uses the buildpack build template with a
custom buildpack that uses the projectriff node-function-invoker to
host the projectriff node-square sample function into a container that
confirms to the Elafros container spec.

Synced the buildpack build template from elafros/build-templates.
2018-05-09 21:32:24 -07:00
Matt Moore e71c79ab0e Remove Bazel from stock-rest-app sample (#859)
Related: #677
2018-05-09 16:16:24 -07:00
Matt Moore 8d5902c289 Remove Bazel from samples with Build (#851)
* Update the steren-app sample to remove Bazel.

Related: https://github.com/elafros/elafros/issues/677

* Update the steren-fn sample to remove Bazel.

Related: https://github.com/elafros/elafros/issues/677

* Update the thumbnailer sample to remove Bazel.

Related: https://github.com/elafros/elafros/issues/677

* Update the buildpack sample to remove Bazel.

Related: https://github.com/elafros/elafros/issues/677

* Remove the templates/BUILD file.
2018-05-09 13:11:24 -07:00
Matt Moore 5d20b82afe Use import paths as placeholders for our development flow. (#758)
* Use import paths as placeholders for our development flow.

This change adopts the convention of replacing our current placeholder image names (e.g. "ela-queue:latest", which clearly don't exist on DockerHub) with the convention of using the Go import path for the binary that we will containerize and substitute.

I find this convention makes the source of the image clearer, but this is also part of a larger experiment (called `ko`) to explore ways to hedge our bets around Bazel for a faster development flow.

We need to restructure our configs a bit to get a flow equivalent to `:elafros.apply`, but this change is enough to make this work for individual files:

```shell
$ ko apply -f controller.yaml
2018/04/27 08:17:27 Go building github.com/elafros/elafros/cmd/ela-controller
2018/04/27 08:17:27 Go building github.com/elafros/elafros/cmd/ela-autoscaler
2018/04/27 08:17:27 Go building github.com/elafros/elafros/cmd/ela-queue
2018/04/27 08:17:35 Publishing us.gcr.io/convoy-adapter/github.com/elafros/elafros/cmd/ela-autoscaler:latest
2018/04/27 08:17:35 Publishing us.gcr.io/convoy-adapter/github.com/elafros/elafros/cmd/ela-queue:latest
2018/04/27 08:17:36 mounted sha256:eb05f3dbdb543cc610527248690575bacbbcebabe6ecf665b189cf18b541e3ca
2018/04/27 08:17:36 mounted sha256:28ccb4f090043ed4b3e33f78c7834f1e3a97ea0af098dbb326b646c7db68d963
2018/04/27 08:17:36 mounted sha256:8d7d4db448cf93a94bee252850cc619b63873158ae918577f29f3cf0d3c4d090
2018/04/27 08:17:36 mounted sha256:abd64b9bfa74a9afd2a24b87db49f388ea9b9b7a6712a0d12bfd0e53b2c0a900
2018/04/27 08:17:36 mounted sha256:eb05f3dbdb543cc610527248690575bacbbcebabe6ecf665b189cf18b541e3ca
2018/04/27 08:17:36 mounted sha256:fdf0520392d40ef7658a5807c5fc1cde837132c0ea62dc91050b2d1b95e412b7
2018/04/27 08:17:36 Publishing us.gcr.io/convoy-adapter/github.com/elafros/elafros/cmd/ela-controller:latest
2018/04/27 08:17:36 mounted sha256:eb05f3dbdb543cc610527248690575bacbbcebabe6ecf665b189cf18b541e3ca
2018/04/27 08:17:36 pushed us.gcr.io/convoy-adapter/github.com/elafros/elafros/cmd/ela-autoscaler:latest
2018/04/27 08:17:36 Published us.gcr.io/convoy-adapter/github.com/elafros/elafros/cmd/ela-autoscaler@sha256:034b8254249f5fffc3888e5a23f8d8376df60bb8476dcbafe86b17b57f2568a9
2018/04/27 08:17:36 pushed us.gcr.io/convoy-adapter/github.com/elafros/elafros/cmd/ela-queue:latest
2018/04/27 08:17:36 Published us.gcr.io/convoy-adapter/github.com/elafros/elafros/cmd/ela-queue@sha256:c258c53faa724e1c2af7db6c00bf6b347d8b4392349ca9867493b32e9176504b
2018/04/27 08:17:36 mounted sha256:033b2da213a6858a05e109da8548b75f59eaf3729c49d6126b4b505e35067a28
2018/04/27 08:17:36 mounted sha256:d1b13624a3d517c95b3f26d6532f25b261887f1e0a5da26349ba844b2ac956b4
2018/04/27 08:17:37 pushed us.gcr.io/convoy-adapter/github.com/elafros/elafros/cmd/ela-controller:latest
2018/04/27 08:17:37 Published us.gcr.io/convoy-adapter/github.com/elafros/elafros/cmd/ela-controller@sha256:1aafac2f20a7a2b1c9435af4f7dbfa9db4f85f8c18dcb6850f9a9dc11f55d059
deployment "ela-controller" unchanged
```

Eventually, I hope to restructure our configs to enable (something like): `ko apply -R -f config/`

* Update the samples as well.
2018-05-07 13:05:23 -07:00
yanweiguo 1191bd1dbd
A Python simple app (#769)
* added a python simple app

* change //sample/README

* fix the path in readme

* remove Bazel dependency from python sample

* add accessing logs instruction

* removed typo

* resolved comments

* moved to python3
2018-05-03 16:12:05 -07:00
Joseph Burnett 98e34593c9
Add missing golang headers. (#806) 2018-05-03 15:04:03 -07:00
Brenda Chan 720a7d2e1b Updates buildpack template to not use docker (#724)
Signed-off-by: Brenda Chan <brchan@pivotal.io>
2018-04-30 21:49:22 -04:00
Joseph Burnett 0d11738494 (code)owners for scaling (#784)
* Create OWNERS

* Create OWNERS

* Create OWNERS

* Create OWNERS

* Create OWNERS

* Create OWNERS

* Create OWNERS

* Update CODEOWNERS
2018-04-30 11:40:21 -07:00
Evan Anderson 70979a49e8 Update node images to match latest in gae-runtimes (#734) 2018-04-26 12:49:20 -07:00
Mustafa Demirhan 1889c35b85
Fixes the timing bug in telemetry sample. (#718)
Fixes #703

When we migrated from OpenZipkin to OpenCensus libraries, the distributed traces started to appear different than with OpenZipkin. Investigating this with OpenCensus team, it turns out that Open Zipkin closes spans at the end of RoundTrip method vs res.Body.Close() for OpenCensus. OpenCensus' behavior is the correct one here: In our code, instead of using defer res.Body.Close(), we need to do res.Body.Close in order to correctly calculate the span timing information.
2018-04-23 17:48:39 -07:00
Nghia Tran 50a596f7aa Add lifecycle hooks and readiness checks for smoother autoscaling (#670)
* Reduce autoscaling-related 503s by:
(1) Adding readinessProbes and PreStop hooks, and
(2) Gracefully shutting down queue HTTP server.

* Address PR feedback.

* Exclude K8s prober requests from autoscaling consideration.

* Clarifying why we added flag.Parse().
2018-04-20 11:02:17 -07:00