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

stringData in a Kubernetes secret is not parsed #109

Closed
danielsteman opened this issue Oct 17, 2022 · 1 comment
Closed

stringData in a Kubernetes secret is not parsed #109

danielsteman opened this issue Oct 17, 2022 · 1 comment

Comments

@danielsteman
Copy link

danielsteman commented Oct 17, 2022

I tried converting the following Kubernetes secret in yaml:

---
apiVersion: v1
kind: Secret
metadata:
  name: someSecretName
  namespace: someNamespace
type: Opaque
stringData:
  ACCOUNT: someAccount
  KEY: someKey

which is converted to:

resource "kubernetes_secret" "seldon_rclone_models_secret" {
  metadata {
    name      = "someSecretName"
    namespace = "someNamespace"
  }

  string_datum {}

  type = "Opaque"
}

It looks like stringData is not parsed. string_data is also not available in the Terraform api so it kinda makes sense. I'm still unsure to which argument it should map, since there is only data and binary_data as you can see here

hashmap-kz pushed a commit to hashmap-kz/k2tf that referenced this issue May 6, 2024
sl1pm4t pushed a commit to hashmap-kz/k2tf that referenced this issue May 18, 2024
@sl1pm4t
Copy link
Owner

sl1pm4t commented May 21, 2024

I think this is resolved by the latest release (0.8.0) - please give it a try.

@sl1pm4t sl1pm4t closed this as completed May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants