10000 operator: KeyError: 'selfLink' · Issue #101 · l7mp/l7mp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
operator: KeyError: 'selfLink' #101
Open
@nemethf

Description

@nemethf
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/kopf/reactor/handling.py", line 274, in execute_handler_once
    subrefs=subrefs,
  File "/usr/local/lib/python3.7/site-packages/kopf/reactor/handling.py", line 374, in invoke_handler
    **kwargs,
  File "/usr/local/lib/python3.7/site-packages/kopf/reactor/invocation.py", line 119, in invoke
    result = await fn(*args, **kwargs)  # type: ignore
  File "/src/l7mp.py", line 613, in create_fn
    s[o_type][get_fqn(body)] = body
  File "/src/l7mp.py", line 64, in get_fqn
    return (obj['metadata']['selfLink'])
KeyError: 'selfLink'

This is because selfLink has been disabled in k8s v1.20.0, kubernetes/enhancements#1164

A workaround:
kubernetes-sigs/nfs-subdir-external-provisioner#25 (comment)

The workaround won't work with k8s v1.21.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0