terraform-provider-kubectl

Terraform provider to handle raw kubernetes manifest yaml files

MPL-2.0 License

Stars
599

Bot releases are hidden (Show)

terraform-provider-kubectl - v1.3.4

Published by gavinbunney over 4 years ago

Handle deletion of kubernetes resources by removing from state during refresh. This fixes an issue where resources may have been deleted by other processes and terraform would fail state refresh.

terraform-provider-kubectl - v1.3.3

Published by gavinbunney over 4 years ago

Fix panic when comparing some objects with invalid keys

terraform-provider-kubectl - v1.3.2

Published by gavinbunney over 4 years ago

Added triggers to kubectl_server_version to allow re-reading of the server version when upgrading

terraform-provider-kubectl - v1.3.1

Published by gavinbunney over 4 years ago

Added resource for kubectl_server_version to match existing data source introduced in v1.3.0

terraform-provider-kubectl - v1.3.0

Published by gavinbunney over 4 years ago

Added kubectl_server_version data source to fetch the servers version docs.

terraform-provider-kubectl - v1.2.1

Published by gavinbunney over 4 years ago

Fix #14 - panic when applying manifests on top of existing resources which were not created with kubectl apply, rather using kubectl create or other means

terraform-provider-kubectl - v1.2.0

Published by gavinbunney over 4 years ago

The data source kubectl_path_documents now supports terraform template evaluation performed during loading documents from file 🎉 This gives you the flexibility of parameterizing your manifests, and loading & templating in a single command.

#
# Given the following YAML template
#
apiVersion: v1
kind: Pod
metadata:
  name: nginx
  labels:
    name: nginx
spec:
  containers:
  - name: nginx
    image: ${docker_image}
    ports:
    - containerPort: 80


#
# Load the yaml file, parsing the ${docker_image} variable
#
data "kubectl_path_documents" "manifests" {
    pattern = "./manifests/*.yaml"
    vars = {
        docker_image = "https://myregistry.example.com/nginx"
    }
}

All the terraform hcl template features are supported (e.g. directives).

You can now also disable the waiting for rollout behavior via the wait_for_rollout parameter. By default, the kubectl-provider will wait for Deployments/DaemonSets/APIServices to finish rollout before proceeding. Set this flag to false to disable this behavior.

terraform-provider-kubectl - v1.1.0

Published by gavinbunney over 4 years ago

#10 - Support for exec provider configuration added - 🎩 @rinrailin

Documentation on configuring available at: https://gavinbunney.github.io/terraform-provider-kubectl/docs/provider.html#exec-plugin-support

terraform-provider-kubectl - v1.0.2

Published by gavinbunney almost 5 years ago

PR #3 - Fix issues with large yaml files splitting over default scanner buffer limit

terraform-provider-kubectl - v1.0.1

Published by gavinbunney almost 5 years ago

PR #2 - 🎩@hgontijo - Show resource's group/version/kind when it's not available on the Kubernetes cluster

terraform-provider-kubectl - v1.0.0

Published by gavinbunney about 5 years ago

Stable release of provider

terraform-provider-kubectl - https://github.com/gavinbunney/terraform-provider-kubectl/releases/tag/v0.3.51

Published by gavinbunney about 5 years ago

Merge pull request #1 from hgontijo/master