Terraform provider to handle raw kubernetes manifest yaml files
MPL-2.0 License
Bot releases are hidden (Show)
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.
Published by gavinbunney over 4 years ago
Fix panic when comparing some objects with invalid keys
Published by gavinbunney over 4 years ago
Added triggers
to kubectl_server_version
to allow re-reading of the server version when upgrading
Published by gavinbunney over 4 years ago
Added resource for kubectl_server_version
to match existing data source introduced in v1.3.0
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
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.
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
Published by gavinbunney almost 5 years ago
PR #3 - Fix issues with large yaml files splitting over default scanner buffer limit
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
Published by gavinbunney about 5 years ago
Stable release of provider
Published by gavinbunney about 5 years ago
Merge pull request #1 from hgontijo/master