Skip to content

Releases: sl1pm4t/terraform-provider-kubernetes

v1.0.5-custom

15 Jan 10:42
Compare
Choose a tag to compare

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

14 Dec 21:09
Compare
Choose a tag to compare

Add support for volume_claim_templates to stateful_set resource.

v1.0.3-custom

30 Oct 09:29
Compare
Choose a tag to compare

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

26 Oct 22:00
Compare
Choose a tag to compare

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

26 Oct 20:03
Compare
Choose a tag to compare

This release adds the kubernetes_ingress resource.

Built from the custom branch of this fork

v0.1.4-custom

14 Aug 00:00
Compare
Choose a tag to compare
v0.1.4-custom Pre-release
Pre-release

Bug fixes

v0.1.3-custom

11 Aug 03:38
Compare
Choose a tag to compare
v0.1.3-custom Pre-release
Pre-release

Adds kubernetes_stateful_set resource

v0.1.2-custom

11 Aug 01:33
Compare
Choose a tag to compare
v0.1.2-custom Pre-release
Pre-release
  • Fix for pod node_selector
  • Volume -> Secret -> Items support
  • Fix Items.path error: ... must not contain ".."

v0.1.1-custom

09 Aug 19:43
Compare
Choose a tag to compare
v0.1.1-custom Pre-release
Pre-release

This is a custom build of the provider that includes support for Kubernetes Deployment resource, along with some other fixes.