Skip to content

Commit

Permalink
rancher compatibility for k8s service
Browse files Browse the repository at this point in the history
  • Loading branch information
jjno91 committed Jun 24, 2020
1 parent d040fa2 commit 93cf646
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
{
"label": "Destroy Idempotency Check",
"command": "terraform plan -detailed-exitcode -destroy test",
"type": "shell"
"type": "shell",
"problemMatcher": []
}
]
}
7 changes: 7 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ resource "kubernetes_service" "this" {
port = var.jnlp_port
}
}

lifecycle {
ignore_changes = [
metadata[0].annotations,
metadata[0].labels
]
}
}

resource "kubernetes_ingress" "this" {
Expand Down

0 comments on commit 93cf646

Please sign in to comment.