Releases: sl1pm4t/terraform-provider-kubernetes
v1.0.5-custom
BREAKING - align deployment schema with official API
kubernetes_deployment
- top level name attribute is removed (use metadata.name instead)
- spec -> template -> * is now nested under spec -> template -> spec
- spec -> template -> metadata can now be configured, and must include labels that match the deployment selectors
Example
resource "kubernetes_deployment" "app" {
# name = "app" <<<< no longer valid
metadata {
name = "app" <<<<< use this instead
namespace = "default"
labels {
deploy_label = "foo"
}
}
spec {
replicas = 3
selector {
selector_label = "bar"
}
template {
metadata {
# new metadata block under template
labels {
selector_label = "bar"
}
annotations {
"prometheus.io/scrape" = "true"
"prometheus.io/scheme" = "https"
"prometheus.io/port" = "4000"
}
}
spec {
# This content used to be directly under template
container {
image = "nginx"
name = "app-nginx"
}
}
}
}
}
v1.0.4-custom
Add support for volume_claim_templates
to stateful_set
resource.
v1.0.3-custom
Split handling of kubernetes.io Annotations’s + Labels
The official Kubernetes provider explicitly prevents the use of annotations and labels that have “kubernetes.io” as part of the key name. This is because these are often added server side, by the Kubernetes API and would cause a diff on the Terraform side which has no knowledge of the key.
This commit updates the provider logic to allow kubernetes.io keys, but on Read, strip any that aren’t found in the Terraform config / schema. This way a diff is not triggered.
v1.0.2-custom
Bug fixes for v1.0.1:
- Deployment + DaemonSet were broken after required schema change that renamed attributes from camelCase to snake_case (e.g.
rollingUpdate
->rolling_update
) - Removed limitation that prevented use of
kubernetes.io
keys in annotations that prevented some Ingress use cases.
v1.0.1-custom
This release adds the kubernetes_ingress
resource.
Built from the custom
branch of this fork
v0.1.4-custom
Bug fixes
v0.1.3-custom
Adds kubernetes_stateful_set
resource
v0.1.2-custom
- Fix for pod
node_selector
Volume
->Secret
-> Items support- Fix
Items.path
error:... must not contain ".."
v0.1.1-custom
This is a custom build of the provider that includes support for Kubernetes Deployment
resource, along with some other fixes.