Terraform provider to handle raw kubernetes manifest yaml files
MPL-2.0 License
Bot releases are visible (Hide)
Published by gavinbunney about 4 years ago
Fix handling of yaml fields to allow for multiple fields with the same key (e.g one at labels.name and spec.name)
Note: Due to this change, when upgrading you may notice a large amount of "changed" resources for kubectl_manifest
stanzas. These are expected.
Published by gavinbunney about 4 years ago
6715529 Don't print deployment details on error as could leak sensitive content
Published by gavinbunney about 4 years ago
e8aca4e Allow disabling of schema validation
245e4de Doc tweaks
Published by gavinbunney about 4 years ago
New! You can now define sensitive_fields
on kubectl_manifest
resources and the kubectl provider will obfuscate those fields for you like magic! 🧙
666ea2b Sensitive field support to obfuscate values
89e888e Added goreleaser & skip travis releasing
b1d321c Added registry.terraform.io docs format
Published by gavinbunney over 4 years ago
Fix panic on differing types for updated yaml manifests
Published by gavinbunney over 4 years ago
🚀 Performance Release!
Published by gavinbunney over 4 years ago
Remove waiting for DaemonSet's to rollout, causes issues with large clusters. Users should add their own waiting scripts as required.
Published by gavinbunney over 4 years ago
Emit more details for failed deployments
Published by gavinbunney over 4 years ago
Increase timeout back to 10mins for deployments/daemonset monitoring
Published by gavinbunney over 4 years ago
Published by gavinbunney over 4 years ago
Handle delete case when kubernetes resource has already been deleted
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