Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,6 @@ includes:
sys:
taskfile: actions/system.yml
dir: actions
talos:
taskfile: clusters/talos-gcp.yml
dir: clusters

tasks:

Expand Down
8 changes: 6 additions & 2 deletions actions/devel/download/nuvolaris/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

_config = {}

# Prefix of the kube node labels carrying configuration. Kept as a
# constant so the slice below tracks its length automatically.
LABEL_PREFIX = "nuvolaris.io/"

# define a configuration
# the configuration is a map, followed by a list of labels
# the map can be a serialized json and will be flattened to a map of values.
Expand Down Expand Up @@ -92,8 +96,8 @@ def detect_labels(labels=None):
kube = None
for i in labels:
for j in list(i.keys()):
if j.startswith("nuvolaris.io/"):
key = f"nuvolaris.{j[13:]}"
if j.startswith(LABEL_PREFIX):
key = f"nuvolaris.{j[len(LABEL_PREFIX):]}"
res[key] = i[j]
_config[key] = i[j]

Expand Down
8 changes: 6 additions & 2 deletions actions/devel/ferretdb/nuvolaris/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

_config = {}

# Prefix of the kube node labels carrying configuration. Kept as a
# constant so the slice below tracks its length automatically.
LABEL_PREFIX = "nuvolaris.io/"

# define a configuration
# the configuration is a map, followed by a list of labels
# the map can be a serialized json and will be flattened to a map of values.
Expand Down Expand Up @@ -92,8 +96,8 @@ def detect_labels(labels=None):
kube = None
for i in labels:
for j in list(i.keys()):
if j.startswith("nuvolaris.io/"):
key = f"nuvolaris.{j[13:]}"
if j.startswith(LABEL_PREFIX):
key = f"nuvolaris.{j[len(LABEL_PREFIX):]}"
res[key] = i[j]
_config[key] = i[j]

Expand Down
8 changes: 6 additions & 2 deletions actions/devel/minio/nuvolaris/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

_config = {}

# Prefix of the kube node labels carrying configuration. Kept as a
# constant so the slice below tracks its length automatically.
LABEL_PREFIX = "nuvolaris.io/"

# define a configuration
# the configuration is a map, followed by a list of labels
# the map can be a serialized json and will be flattened to a map of values.
Expand Down Expand Up @@ -92,8 +96,8 @@ def detect_labels(labels=None):
kube = None
for i in labels:
for j in list(i.keys()):
if j.startswith("nuvolaris.io/"):
key = f"nuvolaris.{j[13:]}"
if j.startswith(LABEL_PREFIX):
key = f"nuvolaris.{j[len(LABEL_PREFIX):]}"
res[key] = i[j]
_config[key] = i[j]

Expand Down
8 changes: 6 additions & 2 deletions actions/devel/psql/nuvolaris/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

_config = {}

# Prefix of the kube node labels carrying configuration. Kept as a
# constant so the slice below tracks its length automatically.
LABEL_PREFIX = "nuvolaris.io/"

# define a configuration
# the configuration is a map, followed by a list of labels
# the map can be a serialized json and will be flattened to a map of values.
Expand Down Expand Up @@ -92,8 +96,8 @@ def detect_labels(labels=None):
kube = None
for i in labels:
for j in list(i.keys()):
if j.startswith("nuvolaris.io/"):
key = f"nuvolaris.{j[13:]}"
if j.startswith(LABEL_PREFIX):
key = f"nuvolaris.{j[len(LABEL_PREFIX):]}"
res[key] = i[j]
_config[key] = i[j]

Expand Down
8 changes: 6 additions & 2 deletions actions/devel/redis/nuvolaris/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

_config = {}

# Prefix of the kube node labels carrying configuration. Kept as a
# constant so the slice below tracks its length automatically.
LABEL_PREFIX = "nuvolaris.io/"

# define a configuration
# the configuration is a map, followed by a list of labels
# the map can be a serialized json and will be flattened to a map of values.
Expand Down Expand Up @@ -92,8 +96,8 @@ def detect_labels(labels=None):
kube = None
for i in labels:
for j in list(i.keys()):
if j.startswith("nuvolaris.io/"):
key = f"nuvolaris.{j[13:]}"
if j.startswith(LABEL_PREFIX):
key = f"nuvolaris.{j[len(LABEL_PREFIX):]}"
res[key] = i[j]
_config[key] = i[j]

Expand Down
8 changes: 6 additions & 2 deletions actions/devel/upload/nuvolaris/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

_config = {}

# Prefix of the kube node labels carrying configuration. Kept as a
# constant so the slice below tracks its length automatically.
LABEL_PREFIX = "nuvolaris.io/"

# define a configuration
# the configuration is a map, followed by a list of labels
# the map can be a serialized json and will be flattened to a map of values.
Expand Down Expand Up @@ -92,8 +96,8 @@ def detect_labels(labels=None):
kube = None
for i in labels:
for j in list(i.keys()):
if j.startswith("nuvolaris.io/"):
key = f"nuvolaris.{j[13:]}"
if j.startswith(LABEL_PREFIX):
key = f"nuvolaris.{j[len(LABEL_PREFIX):]}"
res[key] = i[j]
_config[key] = i[j]

Expand Down
107 changes: 0 additions & 107 deletions clusters/talos-gcp.yml

This file was deleted.

8 changes: 6 additions & 2 deletions nuvolaris/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

_config = {}

# Prefix of the kube node labels carrying configuration. Kept as a
# constant so the slice below tracks its length automatically.
LABEL_PREFIX = "nuvolaris.io/"

# define a configuration
# the configuration is a map, followed by a list of labels
# the map can be a serialized json and will be flattened to a map of values.
Expand Down Expand Up @@ -92,8 +96,8 @@ def detect_labels(labels=None):
kube = None
for i in labels:
for j in list(i.keys()):
if j.startswith("nuvolaris.io/"):
key = f"nuvolaris.{j[13:]}"
if j.startswith(LABEL_PREFIX):
key = f"nuvolaris.{j[len(LABEL_PREFIX):]}"
res[key] = i[j]
_config[key] = i[j]

Expand Down