
Specifying this new flag will automatically hash the configmap/secret contents with sha256 and append the first 40 hex-encoded bits of the hash to the name of the configmap/secret. This is especially useful for workflows that generate configmaps/secrets from files (e.g. --from-file). Note that vowels and vowel-like characters in the hash are remapped to consonants to make it more difficult to accidentally form bad words. See this Google doc for more background: https://docs.google.com/document/d/1x1fJ3pGRx20ujR-Y89HUAw8glUL8-ygaztLkkmQeCdU/edit
46 lines
1.2 KiB
Python
46 lines
1.2 KiB
Python
load(
|
|
"@io_bazel_rules_go//go:def.bzl",
|
|
"go_library",
|
|
)
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"umask.go",
|
|
"util.go",
|
|
] + select({
|
|
"@io_bazel_rules_go//go/platform:windows_amd64": [
|
|
"umask_windows.go",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
visibility = ["//build/visible_to:pkg_kubectl_util_CONSUMERS"],
|
|
deps = [
|
|
"//vendor/golang.org/x/sys/unix:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [
|
|
":package-srcs",
|
|
"//pkg/kubectl/util/crlf:all-srcs",
|
|
"//pkg/kubectl/util/hash:all-srcs",
|
|
"//pkg/kubectl/util/i18n:all-srcs",
|
|
"//pkg/kubectl/util/logs:all-srcs",
|
|
"//pkg/kubectl/util/slice:all-srcs",
|
|
"//pkg/kubectl/util/term:all-srcs",
|
|
],
|
|
tags = ["automanaged"],
|
|
visibility = ["//build/visible_to:pkg_kubectl_util_CONSUMERS"],
|
|
)
|