Skip to content

Commit

Permalink
k8s: Network Policies aren't always namespaced
Browse files Browse the repository at this point in the history
  • Loading branch information
trehn committed Apr 26, 2018
1 parent fe53903 commit 314d87d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bundlewrap/items/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,16 +399,9 @@ class KubernetesNetworkPolicy(KubernetesItem):
KIND = "NetworkPolicy"
KUBERNETES_APIVERSION = "networking.k8s.io/v1"
ITEM_TYPE_NAME = "k8s_networkpolicy"
NAME_REGEX = r"^[a-z0-9-\.]{1,253}$"
NAME_REGEX = r"^([a-z0-9-\.]{1,253}/)?[a-z0-9-\.]{1,253}$"
NAME_REGEX_COMPILED = re.compile(NAME_REGEX)

def get_auto_deps(self, items):
return []

@property
def namespace(self):
return None


class KubernetesPersistentVolumeClain(KubernetesItem):
BUNDLE_ATTRIBUTE_NAME = "k8s_pvc"
Expand Down

0 comments on commit 314d87d

Please sign in to comment.