Skip to content

Commit

Permalink
fix: re-add images to labels (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa committed May 23, 2024
1 parent e33b971 commit 71f6e28
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/cl/grandine/grandine_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def get_beacon_config(
labels=shared_utils.label_maker(
constants.CL_TYPE.grandine,
constants.CLIENT_TYPES.cl,
# image,
image,
el_context.client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/cl/lighthouse/lighthouse_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def get_beacon_config(
labels=shared_utils.label_maker(
constants.CL_TYPE.lighthouse,
constants.CLIENT_TYPES.cl,
# image,
image,
el_context.client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/cl/lodestar/lodestar_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def get_beacon_config(
labels=shared_utils.label_maker(
constants.CL_TYPE.lodestar,
constants.CLIENT_TYPES.cl,
# image,
image,
el_context.client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/cl/nimbus/nimbus_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def get_beacon_config(
labels=shared_utils.label_maker(
constants.CL_TYPE.nimbus,
constants.CLIENT_TYPES.cl,
# image,
image,
el_context.client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/cl/prysm/prysm_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def get_beacon_config(
labels=shared_utils.label_maker(
constants.CL_TYPE.prysm,
constants.CLIENT_TYPES.cl,
# beacon_image,
beacon_image,
el_context.client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/cl/teku/teku_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def get_beacon_config(
labels=shared_utils.label_maker(
constants.CL_TYPE.teku,
constants.CLIENT_TYPES.cl,
# image,
image,
el_context.client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/el/besu/besu_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def get_config(
labels=shared_utils.label_maker(
constants.EL_TYPE.besu,
constants.CLIENT_TYPES.el,
# image,
image,
cl_client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/el/erigon/erigon_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def get_config(
labels=shared_utils.label_maker(
constants.EL_TYPE.erigon,
constants.CLIENT_TYPES.el,
# image,
image,
cl_client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/el/ethereumjs/ethereumjs_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def get_config(
labels=shared_utils.label_maker(
constants.EL_TYPE.ethereumjs,
constants.CLIENT_TYPES.el,
# image,
image,
cl_client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/el/geth/geth_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def get_config(
labels=shared_utils.label_maker(
constants.EL_TYPE.geth,
constants.CLIENT_TYPES.el,
# image,
image,
cl_client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/el/nethermind/nethermind_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def get_config(
labels=shared_utils.label_maker(
constants.EL_TYPE.nethermind,
constants.CLIENT_TYPES.el,
# image,
image,
cl_client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/el/nimbus-eth1/nimbus_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def get_config(
labels=shared_utils.label_maker(
constants.EL_TYPE.nimbus,
constants.CLIENT_TYPES.el,
# image,
image,
cl_client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/el/reth/reth_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def get_config(
labels=shared_utils.label_maker(
constants.EL_TYPE.reth,
constants.CLIENT_TYPES.el,
# image,
image,
cl_client_name,
extra_labels,
),
Expand Down
6 changes: 2 additions & 4 deletions src/shared_utils/shared_utils.star
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,11 @@ def zfill_custom(value, width):
return ("0" * (width - len(str(value)))) + str(value)


def label_maker(
client, client_type, connected_client, extra_labels
): # add image back later
def label_maker(client, client_type, image, connected_client, extra_labels):
labels = {
"ethereum-package.client": client,
"ethereum-package.client-type": client_type,
# "ethereum-package.client-image": image.replace("/", "-").replace(":", "-"),
"ethereum-package.client-image": image.replace("/", "-").replace(":", "-"),
"ethereum-package.connected-client": connected_client,
}
labels.update(extra_labels) # Add extra_labels to the labels dictionary
Expand Down
2 changes: 1 addition & 1 deletion src/vc/lighthouse.star
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def get_config(
labels=shared_utils.label_maker(
constants.VC_TYPE.lighthouse,
constants.CLIENT_TYPES.validator,
# image,
image,
cl_context.client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/vc/lodestar.star
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def get_config(
labels=shared_utils.label_maker(
constants.VC_TYPE.lodestar,
constants.CLIENT_TYPES.validator,
# image,
image,
cl_context.client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/vc/nimbus.star
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def get_config(
labels=shared_utils.label_maker(
constants.VC_TYPE.nimbus,
constants.CLIENT_TYPES.validator,
# image,
image,
cl_context.client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/vc/prysm.star
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_config(
labels=shared_utils.label_maker(
constants.VC_TYPE.prysm,
constants.CLIENT_TYPES.validator,
# image,
image,
cl_context.client_name,
extra_labels,
),
Expand Down
2 changes: 1 addition & 1 deletion src/vc/teku.star
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_config(
labels=shared_utils.label_maker(
constants.VC_TYPE.teku,
constants.CLIENT_TYPES.validator,
# image,
image,
cl_context.client_name,
extra_labels,
),
Expand Down

0 comments on commit 71f6e28

Please sign in to comment.