-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMODULE.bazel
More file actions
64 lines (53 loc) · 1.83 KB
/
Copy pathMODULE.bazel
File metadata and controls
64 lines (53 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
module(
name = "rules_gitops",
bazel_compatibility = [">=7.1.0"],
compatibility_level = 0,
)
bazel_dep(name = "aspect_bazel_lib", version = "2.15.3")
bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "rules_oci", version = "2.2.6")
bazel_dep(name = "rules_img", version = "0.3.13")
bazel_dep(name = "rules_pkg", version = "1.0.1")
bazel_dep(name = "rules_go", version = "0.54.0")
bazel_dep(name = "rules_shell", version = "0.8.0")
bazel_dep(name = "yq.bzl", version = "0.3.6")
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
go_sdk.download(version = "1.23.9")
bazel_dep(name = "gazelle", version = "0.43.0")
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
use_repo(
go_deps,
"com_github_ghodss_yaml",
"com_github_google_go_cmp",
"com_github_google_go_containerregistry",
"com_github_google_go_github_v32",
"com_github_xanzy_go_gitlab",
"io_k8s_api",
"io_k8s_apimachinery",
"io_k8s_client_go",
"org_golang_x_oauth2",
"org_golang_x_sync",
)
toolchains = use_extension(
"@rules_gitops//gitops:extensions.bzl",
"toolchains",
)
toolchains.kustomize()
use_repo(toolchains, "kustomize_bin", "kustomize_toolchains")
register_toolchains("@kustomize_toolchains//:all")
kubeconfig = use_repo_rule("@rules_gitops//skylib:k8s.bzl", "kubeconfig")
kubeconfig(
name = "k8s_test",
cluster = "mycluster",
use_host_config = True,
)
bazel_dep(name = "buildifier_prebuilt", version = "8.0.3", dev_dependency = True)
pull = use_repo_rule("@rules_img//img:pull.bzl", "pull")
pull(
name = "distroless_static",
digest = "sha256:85554049bdfa232b64a328412dd8909cc3baad08474cf97b2e5cc0a74e23fc5e",
registry = "gcr.io",
repository = "distroless/static",
)