sl1pm4t/k2tf

Empty data fields are stripped from result

kim0 opened this issue · 2 comments

kim0 commented

When converting this

apiVersion: v1
kind: Secret
metadata:
  labels:
    k8s-app: kubernetes-dashboard
  name: kubernetes-dashboard-csrf
  namespace: kubernetes-dashboard
type: Opaque
data:
  csrf: ""

The result does not contain the data.csrf field, while it should exist and be an empty value.

Hi @kim0 - thanks for opening the issue.
With the way k2tf currently works, this is harder to fix than it may seem without introducing undesirable side-effects. It will likely be a while before I can implement a fix.

I also encountered this problem, where replicas cannot set to zero.