Skip to content

Commit

Permalink
Fix the update loop in Firewall.networkfirewall resource
Browse files Browse the repository at this point in the history
- Extend the example manifest for the Firewall.networkfirewall
  resource with some extra parameters and enable the update tests
  on it.

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
  • Loading branch information
ulucinar committed Feb 16, 2024
1 parent 91d65fd commit e8b5f1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/networkfirewall/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ func Configure(p *config.Provider) { // nolint:gocyclo
}
}
}
if diff.Attributes != nil {
delete(diff.Attributes, "firewall_status.#")
}
return diff, nil
}
})
Expand Down
3 changes: 3 additions & 0 deletions examples/networkfirewall/firewall.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ metadata:
annotations:
uptest.upbound.io/timeout: "3600"
meta.upbound.io/example-id: networkfirewall/v1beta1/firewall
uptest.upbound.io/update-parameter: '{"tags":{"update-test-tag":"val"}}'
labels:
testing.upbound.io/example-name: example
name: firewallname
spec:
forProvider:
firewallPolicyChangeProtection: true
subnetChangeProtection: true
firewallPolicyArnSelector:
matchLabels:
testing.upbound.io/example-name: example
Expand Down

0 comments on commit e8b5f1a

Please sign in to comment.