Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
dewitt committed Jan 30, 2018
0 parents commit 7f5da0b
Show file tree
Hide file tree
Showing 3,153 changed files with 906,631 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build --workspace_status_command=./print-workspace-status.sh
run --workspace_status_command=./print-workspace-status.sh
99 changes: 99 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
load("@io_bazel_rules_go//go:def.bzl", "gazelle", "go_binary", "go_library", "go_prefix")

go_prefix("github.com/google/elafros")

gazelle(
name = "gazelle",
external = "vendored",
)

load("@k8s_object//:defaults.bzl", "k8s_object")

k8s_object(
name = "controller",
images = {
"ela-controller:latest": "//cmd/ela-controller:image",
},
template = "controller.yaml",
)

k8s_object(
name = "webhook",
images = {
"ela-webhook:latest": "//cmd/ela-webhook:image",
},
template = "webhook.yaml",
)

k8s_object(
name = "namespace",
template = "namespace.yaml",
)

k8s_object(
name = "serviceaccount",
template = "serviceaccount.yaml",
)

k8s_object(
name = "clusterrolebinding",
template = "clusterrolebinding.yaml",
)

k8s_object(
name = "elaservice",
template = "elaservice.yaml",
)

k8s_object(
name = "elawebhookservice",
template = "elawebhookservice.yaml",
)

k8s_object(
name = "revisiontemplate",
template = "revisiontemplate.yaml",
)

k8s_object(
name = "revision",
template = "revision.yaml",
)

k8s_object(
name = "istio",
template = "@istio_release//:istio.yaml",
)

load("@io_bazel_rules_k8s//k8s:objects.bzl", "k8s_objects")

k8s_objects(
name = "authz",
objects = [
":serviceaccount",
":clusterrolebinding",
],
)

k8s_objects(
name = "crds",
objects = [
":elaservice",
":revisiontemplate",
":revision",
],
)

k8s_objects(
name = "everything",
objects = [
# We depend on Istio.
":istio",
":namespace",
":authz",
":crds",
":controller",
":webhook",
":elawebhookservice",
],
)
24 changes: 24 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# How to contribute

We'd love to accept your patches and contributions to this project. There are
just a few small guidelines you need to follow.

## Contributor License Agreement

Contributions to this project must be accompanied by a Contributor License
Agreement. You (or your employer) retain the copyright to your contribution,
this simply gives us permission to use and redistribute your contributions as
part of the project. Head over to <https://cla.developers.google.com/> to see
your current agreements on file or to sign a new one.

You generally only need to submit a CLA once, so if you've already submitted one
(even if it was for a different project), you probably don't need to do it
again.

## Code reviews

All submissions, including submissions by project members, require review. We
use GitHub pull requests for this purpose. Consult [GitHub Help] for more
information on using pull requests.

[GitHub Help]: https://help.github.com/articles/about-pull-requests/
Loading

0 comments on commit 7f5da0b

Please sign in to comment.