Skip to content

Commit

Permalink
Fix label values
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Feb 16, 2024
1 parent b6a7cf9 commit 75c29bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IM/connectors/Kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import json
import requests
import time
import re
from netaddr import IPNetwork, IPAddress
try:
from urlparse import urlparse
Expand Down Expand Up @@ -312,7 +313,7 @@ def _generate_pod_data(self, namespace, name, outports, system, volumes, tags):
# Add instance tags
if tags:
for k, v in tags.items():
pod_data['metadata']['labels'][k] = v
pod_data['metadata']['labels'][k] = re.sub('[!"#$%&\'()*+,/:;<=>?@[\\]^`{|}~]', '', v)

containers = [{
'name': name,
Expand Down

0 comments on commit 75c29bb

Please sign in to comment.