Skip to content

cannot unmarshal string into Go struct field PolicyRule.rules.resourceNames of type []string #99

@lunaticcoding

Description

@lunaticcoding

The error:
error running rbacReconcile: error running kubectl auth reconcile: unable to decode "/dev/shm/1356746175": json: cannot unmarshal string into Go struct field PolicyRule.rules.resourceNames of type []string

Run

 helm template cert-manager-webhook-hetzner \
  --repo https://vadimkim.github.io/cert-manager-webhook-hetzner \
  --version 1.4.0 \
  --namespace cert-manager \
  --set groupName=acme.newbo.app \
  --set secretName="hetzner-dns-api-token" \  
  --set apiKeyName=api-key \
| grep -A 2 resourceNames

this shows the underlying issue:

resourceNames:
    hetzner-dns-api-token
verbs:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions