Skip to content

Commit

Permalink
resolve conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
okozachenko1203 committed Mar 29, 2024
1 parent fc82ddf commit 2cb9e40
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions magnum_cluster_api/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -2318,16 +2318,12 @@ def __init__(
def labels(self) -> dict:
labels = {}
if self.cluster.cluster_template.network_driver == "calico":
cni_version = self.cluster.labels.get(
"calico_tag", CALICO_TAG
)
cni_version = self.cluster.labels.get("calico_tag", CALICO_TAG)
labels = {
"cni": f"calico-{cni_version}",
}
if self.cluster.cluster_template.network_driver == "cilium":
cni_version = self.cluster.labels.get(
"cilium_tag", CILIUM_TAG
)
cni_version = self.cluster.labels.get("cilium_tag", CILIUM_TAG)
labels = {
"cni": f"cilium-{cni_version}",
}
Expand Down

0 comments on commit 2cb9e40

Please sign in to comment.