kind: PersistentVolume
apiVersion: v1
metadata:
name: XX
spec:
capacity:
storage: 2Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
claimRef:
namespace: XX
name: XX
storageClassName: local-fs
local:
path: /tmp
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- trololo
Error: excluding attribute [kubernetes_persistent_volume.spec.local] not found in Terraform schema
Error: kubernetes_persistent_volume.spec.node_affinity.required.node_selector_term.match_expression not found in Terraform schema
Hi,
I have 2 issues when I try to convert this yaml
Error: excluding attribute [kubernetes_persistent_volume.spec.local] not found in Terraform schema Error: kubernetes_persistent_volume.spec.node_affinity.required.node_selector_term.match_expression not found in Terraform schema
Indeed, according to terraform doc: