load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "filesys", srcs = ["filesystem.go"], importpath = "edge-infra.dev/pkg/k8s/eyaml/filesys", visibility = ["//visibility:public"], deps = ["@io_k8s_sigs_kustomize_kyaml//filesys"], ) go_test( name = "filesys_test", srcs = ["filesytem_test.go"], data = glob(["testdata/**"]), embed = [":filesys"], embedsrcs = [ "testdata/fluxcd/base/kustomization.yaml", "testdata/fluxcd/base/namespace.yaml", "testdata/fluxcd/base/patches/autoscaler-safe-to-evict-annotation.yaml", "testdata/fluxcd/kustomize-controller/kustomization.yaml", "testdata/fluxcd/kustomize-helm-controllers/kustomization.yaml", "testdata/fluxcd/manifests/helm-controller.yaml", "testdata/fluxcd/manifests/image-automation-controller.yaml", "testdata/fluxcd/manifests/image-reflector-controller.yaml", "testdata/fluxcd/manifests/kustomize-controller.yaml", "testdata/fluxcd/manifests/notification-controller.yaml", "testdata/fluxcd/manifests/policies.yaml", "testdata/fluxcd/manifests/rbac.yaml", "testdata/fluxcd/manifests/source-controller.yaml", ], deps = [ "@io_k8s_sigs_kustomize_api//krusty", "@io_k8s_sigs_kustomize_api//types", ], )