Skip to content

Commit

Permalink
Adds label uid to whitelist to avoid always having a diff when runn…
Browse files Browse the repository at this point in the history
…ing terraform
  • Loading branch information
Hugo Fonseca committed May 13, 2020
1 parent 32b0af7 commit 0b5b5fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openfaas/resource_openfaas_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ func isFunctionNotFound(err error) bool {
var whiteListLabels = map[string]string{
"labels.com.openfaas.function": "",
"labels.function": "",
"labels.uid": "",
}

const extraProviderLabelsCount = 2
const extraProviderLabelsCount = 3

func labelsDiffFunc(k, old, new string, d *schema.ResourceData) bool {
if _, ok := whiteListLabels[k]; ok {
Expand Down

0 comments on commit 0b5b5fc

Please sign in to comment.