Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init container not coming up #118

Open
joshiparth1000 opened this issue Aug 23, 2024 · 0 comments
Open

Init container not coming up #118

joshiparth1000 opened this issue Aug 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@joshiparth1000
Copy link

The init container is not coming up. I get the following error

Traceback (most recent call last):
  File "/app/imageswap-init.py", line 1146, in <module>
    main()
  File "/app/imageswap-init.py", line 1135, in main
    init_tls_pair(imageswap_namespace_name)
  File "/app/imageswap-init.py", line 678, in init_tls_pair
    tls_pair = build_tls_pair(
               ^^^^^^^^^^^^^^^
  File "/app/imageswap-init.py", line 348, in build_tls_pair
    tls_cert_pem = get_tls_cert_from_request(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/imageswap-init.py", line 320, in get_tls_cert_from_request
    tls_cert = base64.b64decode(k8s_csr.status.certificate)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/base64.py", line 83, in b64decode
    s = _bytes_from_decode_data(s)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/base64.py", line 45, in _bytes_from_decode_data
    raise TypeError("argument should be a bytes-like object or ASCII "
TypeError: argument should be a bytes-like object or ASCII string, not 'NoneType'
  • Kubernetes version (use kubectl version): 1.30
@joshiparth1000 joshiparth1000 added the bug Something isn't working label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant