mirror of
https://github.com/wahyd4/cert-manager.git
synced 2026-08-24 20:47:12 +10:00
To help avoid issues with the ValidateCAA functionality, this disables the CAA check by default and adds a new --feature-gates=ValidateCAA=true option to cert-manager-controller to allow enabling the previous behaviour in v0.7.0 and v0.7.1. Once issues with CNAMEd DNS names pointing to internal nameservers are resolved, this option will be defaulted to on. Signed-off-by: James Munnelly <james@munnelly.eu>
82 lines
2.3 KiB
Python
82 lines
2.3 KiB
Python
load("@io_bazel_rules_docker//container:container.bzl", "container_bundle")
|
|
load("@io_bazel_rules_docker//contrib:push-all.bzl", "docker_push")
|
|
load("//hack:def.bzl", "multiarch_bundle")
|
|
|
|
# export WORKSPACE so workspace_binary rules can be used outside the root
|
|
exports_files(["WORKSPACE"])
|
|
|
|
# gazelle:proto disable_global
|
|
|
|
# this target creates targets:
|
|
# 'images' (all arch and os)
|
|
# 'images.linux-amd64'
|
|
# 'images.linux-arm64'
|
|
# 'images.linux-arm'
|
|
multiarch_bundle(
|
|
name = "images",
|
|
arch = [
|
|
"amd64",
|
|
"arm64",
|
|
"arm",
|
|
],
|
|
images = {
|
|
"{STABLE_DOCKER_REPO}/cert-manager-controller-{arch}:{STABLE_DOCKER_TAG}": "//cmd/controller:image",
|
|
"{STABLE_DOCKER_REPO}/cert-manager-acmesolver-{arch}:{STABLE_DOCKER_TAG}": "//cmd/acmesolver:image",
|
|
"{STABLE_DOCKER_REPO}/cert-manager-webhook-{arch}:{STABLE_DOCKER_TAG}": "//cmd/webhook:image",
|
|
"{STABLE_DOCKER_REPO}/cert-manager-cainjector-{arch}:{STABLE_DOCKER_TAG}": "//cmd/cainjector:image",
|
|
},
|
|
os = ["linux"],
|
|
)
|
|
|
|
docker_push(
|
|
name = "images.push",
|
|
bundle = ":images",
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(
|
|
["**"],
|
|
exclude = [
|
|
"bazel-*/**",
|
|
".git/**",
|
|
],
|
|
),
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [
|
|
":package-srcs",
|
|
"//cmd/acmesolver:all-srcs",
|
|
"//cmd/cainjector:all-srcs",
|
|
"//cmd/controller:all-srcs",
|
|
"//cmd/webhook:all-srcs",
|
|
"//deploy:all-srcs",
|
|
"//docs/generated/reference:all-srcs",
|
|
"//hack:all-srcs",
|
|
"//pkg/acme:all-srcs",
|
|
"//pkg/api:all-srcs",
|
|
"//pkg/apis:all-srcs",
|
|
"//pkg/client/clientset/versioned:all-srcs",
|
|
"//pkg/client/informers/externalversions:all-srcs",
|
|
"//pkg/client/listers/certmanager/v1alpha1:all-srcs",
|
|
"//pkg/controller:all-srcs",
|
|
"//pkg/feature:all-srcs",
|
|
"//pkg/issuer:all-srcs",
|
|
"//pkg/logs:all-srcs",
|
|
"//pkg/metrics:all-srcs",
|
|
"//pkg/scheduler:all-srcs",
|
|
"//pkg/util:all-srcs",
|
|
"//test/acme/dns:all-srcs",
|
|
"//test/e2e:all-srcs",
|
|
"//test/unit/gen:all-srcs",
|
|
"//test/util:all-srcs",
|
|
"//third_party:all-srcs",
|
|
"//vendor:all-srcs",
|
|
],
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
)
|