carvel-dev / terraform-provider-carvel

Carvel Terraform provider with resources for ytt and kapp to template and deploy to Kubernetes
Apache License 2.0
42 stars 9 forks source link

Kapp diff during plan phase #5

Closed braunsonm closed 3 years ago

braunsonm commented 3 years ago

Hi there!

I just had a question about this resource I didn't see in the docs.

Can the kapp resource output the diff even during the terraform plan phase? I see the option to enable diff output but I would have assumed that only outputs when you apply

cppforlife commented 3 years ago

im pretty sure terraform plan shows you kapp diff. what output do you see?

braunsonm commented 3 years ago

Thanks @cppforlife this was just a question is all.

braunsonm commented 3 years ago

Re-opening this as this is not the case. It would be really great to have this working properly. Otherwise we'll be calling apply and cancelling it on the pipelines

braunsonm commented 3 years ago

As a not very ideal workaround for now in pipelines:

scripts/terraform-plan.sh

#!/usr/bin/expect -f

set timeout -1

spawn ./scripts/terraform-apply.sh

expect "*Enter a value:*"

send -- "n\r"

expect eof

scripts/terraform-apply.sh

#!/bin/bash

terraform apply -input=false
github-actions[bot] commented 3 years ago

This issue is being marked as stale due to a long period of inactivity and will be closed in 5 days if there is no response.