load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") load("@bazel_skylib//rules:write_file.bzl", "write_file") load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_file") load("//third_party/k8s/linkerd:version.bzl", "VERSION") write_file( name = "linkerd_version", out = ".version", content = [VERSION], ) write_source_file( name = "write_linkerd_version", diff_test = False, # honestly not sure why this is needed in_file = ":linkerd_version", out_file = ".version", ) # gazelle:ignore charts.go ## needed to suppress gazelle errors when it hits this file go_library( name = "helm", srcs = ["charts.go"], embedsrcs = [ ".version", "//third_party/k8s/linkerd/helm/linkerd:charts", # keep ## needed to actually embed the file ], importpath = "edge-infra.dev/third_party/k8s/linkerd/helm", visibility = ["//visibility:public"], deps = [ "//pkg/edge/linkerd/helm/values", "@io_k8s_sigs_yaml//:yaml", ], ) go_test( name = "helm_test", srcs = ["charts_test.go"], embed = [":helm"], )