Skip to content

Commit

Permalink
Remove one off container push targets (#1517)
Browse files Browse the repository at this point in the history
Summary: We build and push most of our distributed images using
container bundles. We use skaffold to test local dev builds. So
these one off push targets are unused and increase maintenance
burden. Instead just remove them.

Type of change: /kind cleanup

Test Plan: All existing builds and deploys work.

Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>
  • Loading branch information
vihangm authored Jun 16, 2023
1 parent c562b23 commit c600265
Show file tree
Hide file tree
Showing 23 changed files with 1 addition and 248 deletions.
10 changes: 0 additions & 10 deletions src/cloud/api/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand Down Expand Up @@ -61,12 +60,3 @@ pl_go_image(
"//src/cloud:__subpackages__",
],
)

container_push(
name = "push_api_server_image",
format = "Docker",
image = ":api_server_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/cloud/api_server_image",
tag = "{STABLE_BUILD_TAG}",
)
10 changes: 0 additions & 10 deletions src/cloud/artifact_tracker/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand Down Expand Up @@ -58,12 +57,3 @@ pl_go_image(
"//src/cloud:__subpackages__",
],
)

container_push(
name = "push_artifact_tracker_server_image",
format = "Docker",
image = ":artifact_tracker_server_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/cloud/artifact_tracker_server_image",
tag = "{STABLE_BUILD_TAG}",
)
10 changes: 0 additions & 10 deletions src/cloud/auth/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand Down Expand Up @@ -58,12 +57,3 @@ pl_go_image(
"//src/cloud:__subpackages__",
],
)

container_push(
name = "push_auth_server_image",
format = "Docker",
image = ":auth_server_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/cloud/auth_server_image",
tag = "{STABLE_BUILD_TAG}",
)
10 changes: 0 additions & 10 deletions src/cloud/config_manager/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand All @@ -35,15 +34,6 @@ pl_go_image(
],
)

container_push(
name = "push_config_manager_server_image",
format = "Docker",
image = ":config_manager_server_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/cloud/config_manager_server_image",
tag = "{STABLE_BUILD_TAG}",
)

go_library(
name = "config_manager_lib",
srcs = ["config_manager_server.go"],
Expand Down
10 changes: 0 additions & 10 deletions src/cloud/cron_script/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand All @@ -35,15 +34,6 @@ pl_go_image(
],
)

container_push(
name = "push_cron_script_server_image",
format = "Docker",
image = ":cron_script_server_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/cloud/cron_script_server_image",
tag = "{STABLE_BUILD_TAG}",
)

go_library(
name = "cron_script_lib",
srcs = ["cron_script_server.go"],
Expand Down
10 changes: 0 additions & 10 deletions src/cloud/indexer/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand Down Expand Up @@ -59,12 +58,3 @@ pl_go_image(
"//src/cloud:__subpackages__",
],
)

container_push(
name = "push_indexer_server_image",
format = "Docker",
image = ":indexer_server_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/cloud/indexer_server_image",
tag = "{STABLE_BUILD_TAG}",
)
10 changes: 0 additions & 10 deletions src/cloud/metrics/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand All @@ -35,15 +34,6 @@ pl_go_image(
],
)

container_push(
name = "push_metrics_server_image",
format = "Docker",
image = ":metrics_server_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/cloud/metrics_server_image",
tag = "{STABLE_BUILD_TAG}",
)

go_library(
name = "metrics_lib",
srcs = ["metrics_server.go"],
Expand Down
10 changes: 0 additions & 10 deletions src/cloud/plugin/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand All @@ -35,15 +34,6 @@ pl_go_image(
],
)

container_push(
name = "push_plugin_server_image",
format = "Docker",
image = ":plugin_server_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/cloud/plugin_server_image",
tag = "{STABLE_BUILD_TAG}",
)

go_library(
name = "plugin_lib",
srcs = ["plugin_server.go"],
Expand Down
10 changes: 0 additions & 10 deletions src/cloud/plugin/load_db/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_docker//container:image.bzl", "container_image")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image", "pl_go_test")
Expand Down Expand Up @@ -69,15 +68,6 @@ pl_go_image(
],
)

container_push(
name = "push_plugin_db_updater_image",
format = "Docker",
image = ":plugin_db_updater_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/cloud/plugin/load_db",
tag = "{STABLE_BUILD_TAG}",
)

pl_go_test(
name = "load_db_test",
srcs = ["load_db_test.go"],
Expand Down
10 changes: 0 additions & 10 deletions src/cloud/profile/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand Down Expand Up @@ -56,12 +55,3 @@ pl_go_image(
"//src/cloud:__subpackages__",
],
)

container_push(
name = "push_profile_server_image",
format = "Docker",
image = ":profile_server_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/cloud/profile_server_image",
tag = "{STABLE_BUILD_TAG}",
)
10 changes: 0 additions & 10 deletions src/cloud/project_manager/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand Down Expand Up @@ -56,12 +55,3 @@ pl_go_image(
"//src/cloud:__subpackages__",
],
)

container_push(
name = "push_project_manager_server_image",
format = "Docker",
image = ":project_manager_server_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/cloud/project_manager_server_image",
tag = "{STABLE_BUILD_TAG}",
)
10 changes: 0 additions & 10 deletions src/cloud/scriptmgr/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand Down Expand Up @@ -54,12 +53,3 @@ pl_go_image(
"//src/cloud:__subpackages__",
],
)

container_push(
name = "push_scriptmgr_server_image",
format = "Docker",
image = ":scriptmgr_server_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/cloud/scriptmgr_server_image",
tag = "{STABLE_BUILD_TAG}",
)
10 changes: 0 additions & 10 deletions src/cloud/vzconn/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand Down Expand Up @@ -58,12 +57,3 @@ pl_go_image(
"//src/cloud:__subpackages__",
],
)

container_push(
name = "push_vzconn_server_image",
format = "Docker",
image = ":vzconn_server_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/cloud/vzconn_server_image",
tag = "{STABLE_BUILD_TAG}",
)
10 changes: 0 additions & 10 deletions src/cloud/vzmgr/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand Down Expand Up @@ -65,12 +64,3 @@ pl_go_image(
"//src/cloud:__subpackages__",
],
)

container_push(
name = "push_vzmgr_server_image",
format = "Docker",
image = ":vzmgr_server_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/cloud/vzmgr_server_image",
tag = "{STABLE_BUILD_TAG}",
)
10 changes: 0 additions & 10 deletions src/operator/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand Down Expand Up @@ -49,12 +48,3 @@ pl_go_image(
"//k8s:__subpackages__",
],
)

container_push(
name = "push_operator_image",
format = "Docker",
image = ":operator_image",
registry = "gcr.io",
repository = "pl-dev-infra/vizier/operator_image",
tag = "{STABLE_BUILD_TAG}",
)
10 changes: 0 additions & 10 deletions src/utils/cert_provisioner/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand Down Expand Up @@ -51,12 +50,3 @@ pl_go_image(
"//src:__subpackages__",
],
)

container_push(
name = "push_cert_provisioner_image",
format = "Docker",
image = ":cert_provisioner_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/vizier/cert_provisioner_image",
tag = "{STABLE_BUILD_TAG}",
)
10 changes: 0 additions & 10 deletions src/utils/pixie_deleter/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand Down Expand Up @@ -47,12 +46,3 @@ pl_go_image(
"//src:__subpackages__",
],
)

container_push(
name = "push_vizier_deleter_image",
format = "Docker",
image = ":vizier_deleter_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/vizier/vizier_delete_image",
tag = "{STABLE_BUILD_TAG}",
)
10 changes: 0 additions & 10 deletions src/utils/pixie_updater/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

load("@io_bazel_rules_docker//container:container.bzl", "container_push")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("//bazel:pl_build_system.bzl", "pl_go_binary", "pl_go_image")

Expand Down Expand Up @@ -52,12 +51,3 @@ pl_go_image(
"//src:__subpackages__",
],
)

container_push(
name = "push_vizier_updater_image",
format = "Docker",
image = ":vizier_updater_image",
registry = "gcr.io",
repository = "pixie-oss/pixie-dev/vizier/vizier_update_image",
tag = "{STABLE_BUILD_TAG}",
)
Loading

0 comments on commit c600265

Please sign in to comment.