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>
30 lines
697 B
Python
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"],
|
|
)
|