Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Basic validation on metadata #21

Closed
alexsomesan opened this issue May 8, 2020 · 3 comments · Fixed by #151
Closed

Basic validation on metadata #21

alexsomesan opened this issue May 8, 2020 · 3 comments · Fixed by #151
Labels
bug Something isn't working

Comments

@alexsomesan
Copy link
Member

Terraform Version and Provider Version

Terraform v0.12.24
+ provider.kubernetes-alpha (unversioned)

Affected Resource(s)

All resources

Panic Output

Expected Behavior

The provider should not attempt to create resources with incomplete metadata.

Actual Behavior

Provider passes the resource configuration AS IS to the K8s API and the errors returned are not always very meaningful.

In the case of attempting to create a namespaced resource without specifying a namespace in configuration, the resulting error is "resource not found".

Important Factoids

There should be some minimal validation in place to gatekeep from attempting to create resources with invalid / incomplete metadata.

@mweichert
Copy link

Watching

@dhirschfeld
Copy link

Ended up here from #48. Commenting for future searchability.

@ghost
Copy link

ghost commented Apr 8, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Apr 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
3 participants