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

Recreating a deployment does not wait for its initial deletion #27

Open
stigok opened this issue Jun 18, 2018 · 0 comments
Open

Recreating a deployment does not wait for its initial deletion #27

stigok opened this issue Jun 18, 2018 · 0 comments
Labels

Comments

@stigok
Copy link

stigok commented Jun 18, 2018

To reproduce

$ cat <<EOF > deployment.tf
resource kubernetes_namespace default {
  metadata {
    name = "terraform-provider-test"
  }
}

resource kubernetes_deployment web {
  metadata {
    name = "web-test"
    namespace = "${kubernetes_namespace.default.metadata.0.name}"
  }

  spec {
    selector {
      app = "test"
    }

    strategy {
      type = "RollingUpdate"
    }

    template {
      metadata {
        labels {
          app = "test"
        }
      }

      spec {
        container {
          name = "www"
          image = "nginx:alpine"
        }
      }
    }
  }
}
EOF
$ tf apply
$ tf taint kubernetes_deployment.web
$ tf apply
1 error(s) occurred:
* kubernetes_deployment.web: 1 error(s) occurred:
* kubernetes_deployment.web: Failed to create deployment: object is being deleted: deployments.apps "web" already exists
@sl1pm4t sl1pm4t added the bug label Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants