load("@io_bazel_rules_go//go:def.bzl", "go_library") load("//hack/tools/controller-gen:controller-gen.bzl", "gen_code", "gen_crds") go_library( name = "controller", srcs = [ "controller.go", "manager.go", ], importpath = "edge-infra.dev/pkg/sds/patching/k8s/controller", visibility = ["//visibility:public"], deps = [ "//pkg/k8s/meta/status", "//pkg/k8s/runtime/conditions", "//pkg/k8s/runtime/controller", "//pkg/k8s/runtime/controller/reconcile", "//pkg/k8s/runtime/events", "//pkg/k8s/runtime/patch", "//pkg/sds/patching/common", "//pkg/sds/patching/k8s/apis/ienpatch/v1:ienpatch", "//pkg/sds/patching/k8s/controller/internal/metrics", "//pkg/sds/patching/patchmanager", "@com_github_go_logr_logr//:logr", "@com_github_hashicorp_go_version//:go-version", "@com_github_spf13_afero//:afero", "@io_k8s_api//core/v1:core", "@io_k8s_apimachinery//pkg/fields", "@io_k8s_apimachinery//pkg/runtime", "@io_k8s_apimachinery//pkg/types", "@io_k8s_apimachinery//pkg/util/runtime", "@io_k8s_apimachinery//pkg/util/wait", "@io_k8s_client_go//kubernetes/scheme", "@io_k8s_client_go//rest", "@io_k8s_client_go//tools/record", "@io_k8s_sigs_controller_runtime//:controller-runtime", "@io_k8s_sigs_controller_runtime//pkg/builder", "@io_k8s_sigs_controller_runtime//pkg/cache", "@io_k8s_sigs_controller_runtime//pkg/client", "@io_k8s_sigs_controller_runtime//pkg/manager", "@io_k8s_sigs_controller_runtime//pkg/predicate", ], ) gen_code(directory = "pkg/sds/patching/k8s/apis") gen_crds( name = "gen_patchctl_pallet_crds", crd_out_path = "config/pallets/sds/patchmanager/base/crds", outpath_relative_to_repo_root = True, pkg = "pkg/sds/patching/k8s/apis", )