You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -36,14 +37,14 @@ created Desired State. Below is an example pipeline step:
36
37
functionRef:
37
38
name: crossplane-contrib-function-tag-manager
38
39
input:
39
-
apiVersion: tag-manger.fn.crossplane.io/v1beta1
40
+
apiVersion: tag-manager.fn.crossplane.io/v1beta1
40
41
kind: ManagedTags
41
42
addTags:
42
43
- type: FromValue
43
44
policy: Replace
44
45
tags:
45
-
from: value
46
-
add: tags
46
+
key1: value1
47
+
key2: value2
47
48
- type: FromCompositeFieldPath
48
49
fromFieldPath: spec.parameters.additionalTags
49
50
policy: Replace
@@ -79,8 +80,8 @@ The `FromCompositeField` type indicates that the tags will be imported from the
79
80
- type: FromValue
80
81
policy: Replace
81
82
tags:
82
-
from: value
83
-
add: tags
83
+
key1: value1
84
+
key2: value2
84
85
- type: FromCompositeFieldPath
85
86
fromFieldPath: spec.parameters.additionalTags
86
87
policy: Replace
@@ -156,8 +157,10 @@ metadata:
156
157
157
158
This function currently supports a subset of AWS that allow setting of tags.
158
159
159
-
A scan of the 1.14 AWS provider shows that 475 resources support tags and 482 do not.
160
-
The Provider CRDs were scanned to generate the list in [filter.go](filter.go).
160
+
A scan of the v2.2.0 AWS provider shows that 498 resources support tags and 477 do not. Starting with the 2.x provider both Cluster
161
+
and Namespace-scoped resources are supported, so for each resource there are two Custom Resource Definitions.
162
+
163
+
The Provider CRDs were scanned using [`cmd/generator/main.go`](cmd/generator/main.go) to generate the list in [filter.go](filters/zz_provider-upjet-aws.go).
161
164
162
165
## Developing this Function
163
166
@@ -167,11 +170,15 @@ $ go generate ./...
167
170
168
171
# Run tests
169
172
$ go test -cover ./...
170
-
ok github.com/stevendborrelli/function-tag-manager 0.398s coverage: 67.9% of statements
171
-
github.com/stevendborrelli/function-tag-manager/input/v1beta1 coverage: 0.0% of statements
173
+
ok github.com/crossplane-contrib/function-tag-manager 0.542s coverage: 68.6% of statements
174
+
ok github.com/crossplane-contrib/function-tag-manager/cmd/generator 1.035s coverage: 43.2% of statements
175
+
github.com/crossplane-contrib/function-tag-manager/cmd/generator/render coverage: 0.0% of statements
176
+
github.com/crossplane-contrib/function-tag-manager/filters coverage: 0.0% of statements
177
+
github.com/crossplane-contrib/function-tag-manager/input/v1beta1 coverage: 0.0% of statements
172
178
173
179
# Lint the code
174
-
$ docker run --rm -v $(pwd):/app -v ~/.cache/golangci-lint/v1.61.0:/root/.cache -w /app golangci/golangci-lint:v1.61.0 golangci-lint run
180
+
$ docker run --rm -v $(pwd):/app -v ~/.cache/golangci-lint/v2.6.1:/root/.cache -w /app golangci/golangci-lint:v2.6.1 golangci-lint run
0 commit comments