mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-19 12:34:44 -04:00
cloud: hide kubernetes iptables usage behind linux build tag (#3088)
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
d76c9ac82d
commit
4f1768e660
4 changed files with 108 additions and 68 deletions
|
@ -7,6 +7,8 @@ go_library(
|
|||
"azure.go",
|
||||
"imds.go",
|
||||
"interface.go",
|
||||
"iptables_cross.go",
|
||||
"iptables_linux.go",
|
||||
],
|
||||
importpath = "github.com/edgelesssys/constellation/v2/internal/cloud/azure",
|
||||
visibility = ["//:__subpackages__"],
|
||||
|
@ -20,9 +22,17 @@ go_library(
|
|||
"@com_github_azure_azure_sdk_for_go_sdk_azidentity//:azidentity",
|
||||
"@com_github_azure_azure_sdk_for_go_sdk_resourcemanager_compute_armcompute_v5//:armcompute",
|
||||
"@com_github_azure_azure_sdk_for_go_sdk_resourcemanager_network_armnetwork_v5//:armnetwork",
|
||||
"@io_k8s_kubernetes//pkg/util/iptables",
|
||||
"@io_k8s_utils//exec",
|
||||
],
|
||||
] + select({
|
||||
"@io_bazel_rules_go//go/platform:android": [
|
||||
"@io_k8s_kubernetes//pkg/util/iptables",
|
||||
"@io_k8s_utils//exec",
|
||||
],
|
||||
"@io_bazel_rules_go//go/platform:linux": [
|
||||
"@io_k8s_kubernetes//pkg/util/iptables",
|
||||
"@io_k8s_utils//exec",
|
||||
],
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
)
|
||||
|
||||
go_test(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue