Releases: bazelbuild/rules_k8s
v0.7
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# https://github.com/bazelbuild/rules_docker/#setup
# http_archive("io_bazel_rules_docker", ...)
http_archive(
name = "io_bazel_rules_k8s",
sha256 = "ce5b9bc0926681e2e7f2147b49096f143e6cbc783e71bc1d4f36ca76b00e6f4a",
strip_prefix = "rules_k8s-0.7",
urls = ["https://github.com/bazelbuild/rules_k8s/archive/refs/tags/v0.7.tar.gz"],
)
load("@io_bazel_rules_k8s//k8s:k8s.bzl", "k8s_repositories")
k8s_repositories()
load("@io_bazel_rules_k8s//k8s:k8s_go_deps.bzl", k8s_go_deps = "deps")
k8s_go_deps()
What's Changed
- Update dependency rules_python to v0.0.3 by @renovate-bot in #612
- Update dependency com_github_grpc_grpc to v1.32.0 by @renovate-bot in #611
- Update dependency bazel_gazelle to v0.22.2 by @renovate-bot in #613
- Update dependency io_bazel_rules_go to v0.24.3 by @renovate-bot in #614
- Update dependency io_bazel_rules_go to v0.24.4 by @renovate-bot in #617
- Update dependency rules_python to v0.1.0 by @renovate-bot in #618
- Add s390x support by @srajmane in #615
- Update dependency build_bazel_rules_nodejs to v2.3.0 by @renovate-bot in #616
- Make the kubectl toolchain type public by @person142 in #624
- Remove broken HTTP E2E test by @chases2 in #650
- Add support for Bazel 3.0.0 by @UebelAndre in #639
- Fix e2e tests by @fejta in #655
- fix gazelle by @mariusgrigoriu in #626
- Add Tink AB to list of adopters by @Sebelino in #635
- Allow rules_k8s targets to be invoked within other Bazel targets by @EdSchouten in #634
- Resolver library by @mariusgrigoriu in #628
- Add kubectl toolchain for linux arm64 by @fengye87 in #644
- Update rules_docker by @fejta in #656
- Set .bazelversion to 3.0.0 by @fejta in #657
- Create image with both bazel 3.5.0 and 3.0.0 by @fejta in #658
- Update dependency com_google_protobuf to v3.15.8 by @renovate-bot in #622
- Update dependency rules_python to v0.2.0 by @renovate-bot in #661
- Update dependency com_github_grpc_grpc to v1.37.1 by @renovate-bot in #619
- Update dependency build_bazel_rules_nodejs to v2.3.3 by @renovate-bot in #625
- Use bazel 3.5.0 by @fejta in #659
- Drop support for ubuntu 16 by @fejta in #662
- Add Cookies to Adopters list by @sgammon in #663
- Create image with bazel 4.1.0 and 3.5.0 by @fejta in #664
- Update rules_docker to v0.20.0 by @mishas in #669
- Enable wrapping k8s_objects diff exit codes by @irlevesque in #680
- Do not use constraints from bazel_tools by @limdor in #675
- Added toolchain support for Apple M1 and made toolchain_type public to allow extensions by @lomeshpatel in #697
- Support 5.2.0 by @fejta in #699
- Fix buildifier files by @fejta in #700
- Drop nodejs, java examples by @fejta in #701
- Remove cc from WORKSPACE, gcloud-bazel/BUILD by @fejta in #702
- Drop jsonnet complexity by @fejta in #703
- Delete unused .ci files by @fejta in #706
- Use common args by @fejta in #707
- Drop proto complexity by @fejta in #704
- Update README with updated macos toolchains by @fejta in #705
- Update multiple dependency versions. by @mishas in #673
- Make go_version an argument to deps() by @fejta in #708
- Add ParseTagOption to k8s/go/pkg/resolver by @gonzojive in #698
New Contributors
- @srajmane made their first contribution in #615
- @person142 made their first contribution in #624
- @chases2 made their first contribution in #650
- @UebelAndre made their first contribution in #639
- @Sebelino made their first contribution in #635
- @EdSchouten made their first contribution in #634
- @fengye87 made their first contribution in #644
- @sgammon made their first contribution in #663
- @mishas made their first contribution in #669
- @irlevesque made their first contribution in #680
- @limdor made their first contribution in #675
- @lomeshpatel made their first contribution in #697
- @gonzojive made their first contribution in #698
Full Changelog: v0.6...v0.7
v0.6
-
Added a
.diff
target -
Dependency upgrades
- nodejs to v2.0.2
- rules_go to v0.24.2
- protobuf to v3.13.0
- bazel-gazelle to v0.22.0
- bazel-skylib to v1.0.3
See all commits: v0.5...v0.6
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# https://github.com/bazelbuild/rules_docker/#setup
# http_archive("io_bazel_rules_docker", ...)
http_archive(
name = "io_bazel_rules_k8s",
strip_prefix = "rules_k8s-0.6",
urls = ["https://github.com/bazelbuild/rules_k8s/archive/v0.6.tar.gz"],
sha256 = "51f0977294699cd547e139ceff2396c32588575588678d2054da167691a227ef",
)
load("@io_bazel_rules_k8s//k8s:k8s.bzl", "k8s_repositories")
k8s_repositories()
load("@io_bazel_rules_k8s//k8s:k8s_go_deps.bzl", k8s_go_deps = "deps")
k8s_go_deps()
v0.5
-
Added a
.resolve
alias -
Corrected args used for
.replace
and.describe
-
.delete
now uses substituted template -
Now possible to override stamp inputs
-
Dependency upgrades
- nodejs to v2.0.1
- rules_go to v0.23.6
- protobuf to v3.12.4
- grpc to v1.30.2
- rules_docker to v0.14.3
See all 59 commits: v0.4...23e6881
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# https://github.com/bazelbuild/rules_docker/#setup
# http_archive("io_bazel_rules_docker", ...)
http_archive(
name = "io_bazel_rules_k8s",
strip_prefix = "rules_k8s-0.5",
urls = ["https://github.com/bazelbuild/rules_k8s/archive/v0.5.tar.gz"],
sha256 = "773aa45f2421a66c8aa651b8cecb8ea51db91799a405bd7b913d77052ac7261a",
)
load("@io_bazel_rules_k8s//k8s:k8s.bzl", "k8s_repositories")
k8s_repositories()
load("@io_bazel_rules_k8s//k8s:k8s_go_deps.bzl", k8s_go_deps = "deps")
k8s_go_deps()
Updated dependencies
Fixes
Update dependency bazel_gazelle to v0.19.1 (#508)
update rules_docker & other deps (#510)
Update dependency build_bazel_rules_nodejs to v1 (#503)
Update dependency io_bazel_rules_go to v0.21.0 (#501)
Update rules_docker pin (#496)
Propagate docker publish error message (#500)
Update dependency com_github_grpc_grpc to v1.26.0 (#494)
Update build_stack_rules_proto commit hash to 0a888db (#493)
Update dependency com_google_protobuf to v3.11.2 (#483)
Update dependency io_bazel_rules_go to v0.20.3 (#482)
Update rules_python commit hash to 38f86fb (#480)
Update dependency com_google_protobuf to v3.11.0 (#478)
Update io_bazel_rules_jsonnet commit hash to 1297986 (#476)
Update rules_python commit hash to 9467740 (#474)
Update rules_python commit hash to 7b222cf (#473)
Update rules_python commit hash to 13bf8b7 (#472)
Update dependency com_github_grpc_grpc to v1.25.0 (#471)
Remove PY2 notice from the README (#462)
Update README for v0.3.1 (#470)
Fixes to v0.3 to make it fully python3 compatible
- Update rules_go version along with grpc dependencies fix (#468)
- Update dependency com_google_protobuf to v3.10.1 (#465)
- Update rules_python commit hash to a610ace (#464)
- Migrate maven_jar usage to maven_install. maven_jar will be removed from Bazel 2.0. (#463)
- Make //k8s:reverser and //k8s:stamper PY2 and PY3 compatible (#461)
Switch rules_k8s to go-containerregistry
PRs that migrate the resolver from python to Go
- Remove python resolver (#459)
- Comment why the string resolver ignores all errors (#447)
- Go resolver should return strings as is on any kind of error (#446)
- Add resolver test case for empty YAML doc (#445)
- Support resolving YAML streams in Go resolver (#444)
- Use go-containerregistry API that supports schema 1 images in resolver (#442)
- Complete the implementation of the Go resolver (#435)
Features
Fixes
- Update bazel_skylib + rules_go (#458)
- Update dependency com_github_grpc_grpc to v1.24.3 (#456)
- Update rules_python commit hash to 230f6d1 (#454)
- update grpc + protobuf + go (#453)
- Update rules_python commit hash to f46e953 (#451)
- Update io_bazel_rules_docker commit hash to 7476c25 (#450)
- depset transitive expects sequence of depsets (#441)
- Update rules_python commit hash to 5aa465d (#439)
- Update io_bazel_rules_docker commit hash to 31f8a73 (#438)
- Update README for release v0.2 (#436)
Numerous additions & fixes
Fixes
- Complete the implementation of the Go resolver (#435)
- Implement image publishing in resolver (#434)
- update rules_docker to pin after fixes for bazel head (#432)
- chore(deps): update io_bazel_rules_docker commit hash to 91780a5 (#431)
- chore(deps): update io_bazel_rules_docker commit hash to 190569e (#430)
- chore(deps): update rules_python commit hash to e953b0a (#429)
- chore(deps): update io_bazel_rules_docker commit hash to 3312ab4 (#428)
- Add in a no-op Go resolver (#427)
- chore(deps): update io_bazel_rules_docker commit hash to ddaae1d (#425)
- performance improvements for rules_k8s (#424)
- feat: support stamping repository tags for images (#423)
- more mac tests (#422)
- chore(deps): update io_bazel_rules_docker commit hash to 8435ca3 (#421)
- chore(deps): update rules_python commit hash to 54d1cb3 (#420)
- chore(deps): update io_bazel_rules_jsonnet commit hash to 6783be4 (#419)
- chore(deps): update io_bazel_rules_docker commit hash to 36238af (#418)
- chore(deps): update io_bazel_rules_docker commit hash to 165cd95 (#417)
- chore(deps): update io_bazel_rules_docker commit hash to d969769 (#416)
- chore(deps): update rules_python commit hash to 9d68f24 (#415)
- chore(deps): update io_bazel_rules_docker commit hash to b314bad (#414)
- Update rules_k8s README to use release assets (#413)
- chore(deps): update io_bazel_rules_docker commit hash to 81cf275 (#411)
- chore(deps): update rules_python commit hash to 4b84ad2 (#409)
- chore(deps): update io_bazel_rules_docker commit hash to c9705a2 (#408)
- Fix rules_python workspace name (#407)
- chore(deps): update io_bazel_rules_docker commit hash to 31c38b0 (#406)
- chore(deps): update io_bazel_rules_python commit hash to 93d8b0a (#405)
- chore(deps): update io_bazel_rules_docker commit hash to 9f7f04d (#404)
- Cleanup (#403)
- Update Flask version (#402)
- chore(deps): update io_bazel_rules_python commit hash to 640e88a (#400)
- chore(deps): update io_bazel_rules_docker commit hash to e3b8533 (#399)
- chore(deps): update dependency com_google_protobuf to v3.9.0 (#397)
- chore(deps): update io_bazel_rules_docker commit hash to 33927ce (#396)
- Update io_bazel_rules_docker commit hash to 0830b13 (#394)
- remove base_images_docker and update rules_docker (#393)
- Update io_bazel_rules_python commit hash to 3886b1a (#392)
- Update base_images_docker commit hash to cc5cad9 (#390)
- Update OWNERS (#389)
- Update CODEOWNERS (#388)
- chore(deps): update io_bazel_rules_jsonnet commit hash to a7983a4 (#386)
- chore(deps): update io_bazel_rules_docker commit hash to 63fd7c1 (#385)
- chore(deps): update base_images_docker commit hash to 87df46c (#383)
- Update README.md (#382)
- chore(deps): update com_github_grpc_grpc commit hash to d3316ad (#381)
- chore(deps): update build_stack_rules_proto commit hash to d9a1230 (#380)
- chore(deps): update base_images_docker commit hash to df62076 (#379)
- chore(deps): update com_github_grpc_grpc commit hash to b6514a6 (#377)
- chore(deps): update io_bazel_rules_docker commit hash to 3745c20 (#376)
- chore(deps): update com_github_grpc_grpc commit hash to 3891e03 (#375)
- chore(deps): update build_stack_rules_proto commit hash to 78d64b7 (#374)
- chore(deps): update base_images_docker commit hash to d6f2757 (#373)
- chore(deps): update io_bazel_rules_docker commit hash to 7d3113a (#371)
- chore(deps): update com_github_grpc_grpc commit hash to 0de90d6 (#370)
- chore(deps): update dependency io_bazel_rules_go to v0.18.6 (#369)
- chore(deps): update io_bazel_rules_jsonnet commit hash to 67b2484 (#368)
- chore(deps): update io_bazel_rules_docker commit hash to 6a3ef0d (#367)
- fix: building kubectl v1.14.3 fails with missing dependency (#366)
- chore(deps): update com_github_grpc_grpc commit hash to e6d9b7b (#365)
- chore(deps): update base_images_docker commit hash to ed6a6f0 (#364)
- Update io_bazel_rules_jsonnet commit hash to 6317ea9 (#363)
- Update io_bazel_rules_docker commit hash to cd7ddbe (#362)
- Update com_github_grpc_grpc commit hash to bc4279e (#361)
- Update build_stack_rules_proto commit hash to 2f4e4f6 (#360)
- Update base_images_docker commit hash to 99d7af3 (#359)
- Update protobuf pin (#357)
- Update base_images_docker commit hash to 31af4f6 (#354)
- Update dependency on grpc (#353)
- Update rules_proto (#352)
- chore(deps): update io_bazel_rules_python commit hash to fdbb17a (#350)
- chore(deps): update io_bazel_rules_jsonnet commit hash to 4012fc5 (#349)
- Update io_bazel_rules_docker commit hash to 5d35fee (#348)
- Update com_github_grpc_grpc commit hash to 044a8e2 (#347)
- chore(deps): update base_images_docker commit hash to 7d886d8 (#345)
- Add a namespace garbage collector. (#344)
- Add make resolve support for images. (#343)
- Add support for select statement for k8s_objects. (#342)
- Update rules_go to 0.18.5 (#339)
- chore(deps): update io_bazel_rules_docker commit hash to 3bea22a (#338)
- Fixing kubectl toolchain docs (#337)
- Port internal change of marking python binary versions explicitly (#335)
- chore(deps): update dependency io_bazel_rules_go to v0.18.4 (#334)
- chore(deps): update io_bazel_rules_jsonnet commit hash to 45f7cbd (#332)
- Update com_github_grpc_grpc commit hash to a30c1d0 (#331)
- chore(deps): update build_stack_rules_proto commit hash to bdf1617 (#330)
- chore(deps): update base_images_docker commit hash to 8c490f9 (#329)
- Allow kubeconfig in k8s_defaults and .delete rules (#327)
- chore(deps): update build_stack_rules_proto commit hash to ea94d1b (#326)
- Update jsonnet dependency (#325)
- pull rules_go uniformly in k8s.bzl vs WORKSPACE (#324)
- Update renovate to run weekly (#323)
- chore(deps): update io_bazel_rules_python commit hash to 6b6aedd (#321)
- chore(deps): update io_bazel_rules_docker commit hash to 251f6a6 (#320)
- chore(deps): update com_github_grpc_grpc commit hash to 77eb730 (#319)
- chore(deps): update base_images_docker commit hash to ecdd90a (#318)
- Don't test on Ubuntu 14.04 (#317)
- chore(deps): update build_stack_rules_proto commit hash to 8afa882 (#316)
- use ubuntu18.04 in presubmit (#315)
- chore(deps): update io_bazel_rules_python commit hash to f7a96a4 (#314)
- Update rules_jsonnet pin (#313)
- chore(deps): update build_stack_rules_proto commit hash to ab75a39 (#312)
- chore(deps): update dependency io_bazel_rules_go to v0.18.3 (#311)
- Update go to 0.18.2 & disable go targets on Ubuntu 14.04 (#310)
- chore(deps): update base_images_docker commit hash to e49a605 (#308)
- Update base_images_docker commit hash to 7eb0e36 (#307)
- using python_version to try issues with 0.25.0rc1 (#306)
- Update build_stack_rules_proto commit hash to 609362d (#304)
- Update io_bazel_rules_python commit hash to fa6ab78 (#303)
- update protobuf pin (#302)
- Fix incompatible issue (#301)
- Return providers instead of struct from rule impl functions (#300)
- chore(deps): update com_github_grpc_grpc commit hash to 709cceb (#299)
- Increase wait for hellohttp load balancer service to come up (#297)
- images is not required on k8s_object (#296)
- chore(deps): update dependency io_bazel_rules_go to v0.18.1 (#295)
- chore(deps): update com_github_grpc_grpc commit hash to 59ffdd9 (#294)
- Update com_github_grpc_grpc commit hash to 85f8e0f (#293)
- Update base_images_docker commit hash to 9196549 (#292)
- Update com_github_grpc_grpc commit hash to 2db08e0 (#291)
- Update deps for --incompatible_remove_old_python_version_api (#289)
- Update com_github_grpc_grpc commit hash to dcb3b03 (#288)
- rules_k8s: Support passing in a kubeconfig file (#287)
- Run renovate once daily instead of all the time (#286)
- [DOCS] update the load command for container_repositories (#284)
- Update dependency io_bazel_rules_go to v0.18.0 (#283)
- Update io_bazel_rules_python commit hash to 965d4b4 (#282)
- Update io_bazel_rules_docker commit hash to 21c19af (#280)
- Update com_github_grpc_grpc commit hash to c531126 (#278)
- Update base_images_docker commit hash to 6201ac7 (#277)
- Explicitly import latest version of grpc (#276)
- Re-enable buildifier with specific warnings turned off (#275)
- Fix buildifier 0.22.0 lint warnings (#274)
- Update rules_go to 0.17.0 (#273)
- Configure Renovate (#269)
- Fix --incompatible_disallow_dict_plus (#268)
- Add more adopters (#267)
- Add adopters section (#265)
- Add buildifier to buildkite and fix lint issues. (#263)
- Update OWNERS (#262)
- Create CODEOWNERS (#261)
- correct typo in toolchain readme (#260)
- Update rules_proto (second try) (#258)
- Upgrade rules_proto (#257)
- remove targets that cant run on Bazel CI (#256)
- Add a doc to run e2e tests locally. (#254)
First rules_k8s release. Use Bazel rules for interacting with Kubernetes configurations / clusters!
New Rules
Features
- Allow downloading prebuilt binary in kubectl toolchain (#253)
- Enable building kubectl hermetically as part of toolchain setup (#229)
- Kubectl via toolchains (documentation) (#226)
- Add resolver to k8s_defaults (#200)
- Allow project override (#187)
- Support kubectl --user (#148)
- Adds 'context' parameter to k8s_object (#138)
- Improve "not found" error message (#121) (#122)
- Make resolver a public property (#95) (#96)
Fixes
- Documentation & refactoring for custom kubectl from source (#251)
- Reformat files and fix Bazel incompatible changes (#249)
- test only a few things on mac, its flaky (#247)
- use latest release of protobuf (#243)
- update pin to rules_proto (#241)
- adding license for toolchain BUILD file (#239)
- Update toolchain docs (#237)
- update flask version to remove security warning (#236)
- Update toolchain docs (#235)
- buildifier for objects.bzl (#230)
- Include init.py files (#228)
- Arbitrary arguments for k8s_objects (#225)
- Arbitrary args for kubectl (#224)
- Disabling controller e2e test till it is less flakey (#222)
- Remove kubectl toolchain execution platform constraint (#218)
- Use gcloud builds, and :latest-$USER (#217)
- Sprinkle some sleeps to try and improve e2e flakiness (#216)
- Fix getting the current cluster name in README.md (#214)
- kubectl via toolchains (continued) (#212)
- Adding contributors and reviewers (#211)
- Use build id and repo name in namespace to uniquify (#208)
- update pin to base images docker and rules docker (#205)
- Propagate arguments for implicit attributes to instantiated rules (#204)
- Update protobuf rules for examples (#203)
- Use kubectl describe foo name (#196)
- Add logic to generate bazel + gcloud container using rules_docker (#193)
- Exit the resolver if publishing fails (#188)
- update rules docker pin (#186)
- update docker rules pin again (#180)
- update rules_docker pin (#179)
- Unlock extra actions if "context" attribute is set (#170)
- Fix a typo: s/usre/user/ (#169)
- Use /usr/bin/env bash for more portable shebang lines (#168)
- Add user and context attrs to README.md (#166)
- Do not clean between build/test (#164)
- hotfix: upgrade gunicorn version for fixing vulnerability (#163)
- Add --allow_unused_images resolver flag (#161) (#162)
- add Prow build status to README.md (#160)
- remove Travis CI in favor of Prow (#159)
- pass visibility into k8s commands (#158)
- switch from native.git_repository to external git_repository (#157)
- Create gcloud-bazel image for running e2e tests (#156)
- Create a test-e2e.sh script which prow can run (#155)
- Add support options to README.md (#154)
- Create root-level OWNERS file (#153)
- fix hellogrpc/py examples by adding dependency (#152)
- Update rules_docker to latest. (#150)
- Use the correct rule for k8s_service in hellogrpc service. (#144)
- Propagate implicitly added attributes/arguments to instantiated rules (#137)
- Fix k8s_object to work with latest rules_docker (#130)
- Improve "not found" error message (#121)
- Fix file reference to rules_docker (#118) (#120)
- Fix file reference to rules_docker (#118)
- Properly support multi-document yaml files. (#117)
- Ignore not-found on deletions. (#112)
- This splits and reverses a multi-document yaml for k8s_object delete. (#110)
- Delete objects in reverse order. (#108)
- Expand make vars for cluster name (#106) (#107)
- Expand make vars for cluster name (#106)
- clarify some of the naming in the Aliases docs (#105)
- Don't dump a stack trace when we hit errors publishing images. (#101)
- Remove usages of
+
on dicts (#100) - Make resolver a public property (#95)
- Objects visibility (#93)
- k8s_objects pass common attributes such as visibility through macro (#92)
- No default namespace (#91)
- Remove default value for namespace (#90)
- Merge #84 into master (#89)
- Fix all of the new buildifier stuff. (#86)
- Add a simple Node.JS "hello http" example / test. (#85)
- Two small improvements (#84)
- Fix config (#82)
- Use the same configuration as in objects.bzl (#79)
- Re-enable OSX testing. (#72)
- Address a few pieces of feedback from @ensonic (#71)
- Update docs. (#67)
- Controllers following the pattern currently used are unstable. (#64)
- Fix a bug that was stopping us from resolving tags we don't push. (#63)
- This disables OSX validation on the Bazel CI setup. (#58)
- Update pubref (#57)
- Update rules_protobuf (#56)
- Add a simple Kubernetes custom controller/resource example. (#55)
- Document how to use --workspace_status_command per-repo. (#54)
- Make k8s_object error when a images key isn't replaced. (#51)
- Allow k8s_object to chroot image references (#49)
- This change adds preliminary support for k8s_objects. (#48)
- Update jsonnet dependency (#45)
- Add an apply action. (#44)
- Upgrade to the latest version of rules_docker (#42)
- Update rules_protobuf to v0.8.1 (depset fixes for bazel 0.6.0) (#40)
- Python HTTP Example (#38)
- This adds a very simple example of templating using rules_jsonnet. (#37)
- HTTP examples (#36)
- Bugfix: Extracts short_path from tarball-File (#34)
- Drop a redundant import now that rules_docker depends on a new enough… (#33)
- Add a blurb about where to find the cluster name. (#32)
- Stop using .short_path to reference stuff in actions. (#28)
- Update the rules_python dependency. (#24)
- This adds a sample Python GRPC service. (#22)
- Rename the sample app, otherwise a Python sample is untennable. (#20)
- Add support for stamping cluster and namespace (#19)
- Remove deprecated set constructor (#18)
- Go sample (#17)
- Java sample (#16)
- Add support for special actions (#14)
- Add support for the
images={}
attribute. (#8) - Add a Bazel CI Config for rules_k8s. (#7)
- Add bazel run tag resolution (#5)
- Add aliasing (#3)
- Add the k8s_object rule. (#2)
- Set up CI and add .gitignore (#1)