You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kubernetes_labels resource doesn't allow to set labels for a template (for example, when there in an intention to set labels for pods managed by deployment or statefulset).
Potential Terraform Configuration
resource"kubernetes_labels""coredns" {
api_version ="apps/v1"
kind ="Deployment"metadata {
name ="coredns"
namespace ="kube-system"
}
# These labels will be applied to the Pods created by the Deployment
template_labels = {
"my_label"="my_value"
}
force =true
}
The text was updated successfully, but these errors were encountered:
Thanks for opening this @korjek. This request makes sense, and we already do this in the kubernetes_annotations resource. The code for these resources are functionally almost identical so it would be easy just to take the code that does this for annotations and do it for labels.
Description
kubernetes_labels
resource doesn't allow to set labels for a template (for example, when there in an intention to set labels for pods managed by deployment or statefulset).Potential Terraform Configuration
The text was updated successfully, but these errors were encountered: