Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make timeout configurable #7

Closed
vrabbi opened this issue Feb 1, 2023 · 3 comments
Closed

make timeout configurable #7

vrabbi opened this issue Feb 1, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@vrabbi
Copy link

vrabbi commented Feb 1, 2023

can you add a timeout field for apply of a kubectl_manifest? i think its currently hardcoded and certail resources we are dealing with when waiting for a condition is exceeding this timeout making it not work

@alekc
Copy link
Owner

alekc commented Feb 2, 2023

mm, I will have a look. It might be set up on the terraform level and not on the provider.

@stevehipwell
Copy link
Contributor

Terraform has the concept of timeouts built in, but you should be able to either override or augment this through the resource (or data source) API as the Helm provider does.

@alekc
Copy link
Owner

alekc commented Oct 17, 2024

@vrabbi this is an old one, but could you try with

resource "kubectl_manifest" "test_wait_for" {
  timeouts {
    create = "20s"
  }
  yaml_body = <<EOF
apiVersion: v1
kind: Namespace
metadata:
  name: test-wait-for
EOF

  wait_for {
    field {
      key = "status.phase"
      value = "Active"
    }
  }
}

@alekc alekc closed this as completed Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants