cert-manager/hack/filter-crd/BUILD.bazel
Maartje Eyskens 1439ca350c Write CRD filter for OpenShift
This adds a Go binary that filters certain keys from the CRDs.
This is meant to remove keys that are not compatible with OpenShift 3.11.
This then is ran on creating the deployment manifests.

Signed-off-by: Maartje Eyskens <maartje@eyskens.me>
2020-02-18 10:52:42 +01:00

30 lines
697 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "go_default_library",
srcs = ["main.go"],
importpath = "github.com/jetstack/cert-manager/hack/filter-crd",
visibility = ["//visibility:private"],
deps = ["@in_gopkg_yaml_v2//:go_default_library"],
)
go_binary(
name = "filter-crd",
embed = [":go_default_library"],
visibility = ["//visibility:public"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)