Browse Source

Adapt selfLink calculation for Namespace objects.

Implements: blueprint selflink
Change-Id: Iad1c987b951d882eb2f2980054498cd5c4f103d8
changes/45/768345/8
Roman Dobosz 2 months ago
parent
commit
505f1522f6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      kuryr_kubernetes/controller/handlers/namespace.py

+ 1
- 1
kuryr_kubernetes/controller/handlers/namespace.py View File

@ -64,7 +64,7 @@ class NamespaceHandler(k8s_base.ResourceEventHandler):
LOG.debug('Namespace associated is not annotated: %s', ns)
else:
LOG.debug('Removing annotation: %', ns_net_annotations)
k8s.remove_annotations(ns['metadata']['selfLink'],
k8s.remove_annotations(utils.get_res_link(ns),
constants.K8S_ANNOTATION_NET_CRD)
try:
k8s.delete(utils.get_res_link(net_crd))


Loading…
Cancel
Save