Skip to content

Commit

Permalink
changing tags structure
Browse files Browse the repository at this point in the history
  • Loading branch information
candonov committed Sep 10, 2023
1 parent 46fa6df commit 263fbaf
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
toFieldPath: spec.forProvider.tags
policy:
mergeOptions:
appendSlice: true
keepMapValues: true
- type: FromCompositeFieldPath
fromFieldPath: spec.resourceConfig.name
toFieldPath: metadata.annotations[crossplane.io/external-name]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
toFieldPath: spec.forProvider.tags
policy:
mergeOptions:
appendSlice: true
keepMapValues: true
- fromFieldPath: "metadata.name"
toFieldPath: "metadata.name"
transforms:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
toFieldPath: spec.forProvider.tags
policy:
mergeOptions:
appendSlice: true
keepMapValues: true
- fromFieldPath: "metadata.name"
toFieldPath: "metadata.name"
environment:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
toFieldPath: spec.forProvider.tags
policy:
mergeOptions:
appendSlice: true
keepMapValues: true
- type: FromCompositeFieldPath
fromFieldPath: spec.resourceConfig.name
toFieldPath: metadata.annotations[crossplane.io/external-name]
Expand Down
2 changes: 1 addition & 1 deletion compositions/upbound-aws-provider/kms/kms.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
toFieldPath: spec.forProvider.tags
policy:
mergeOptions:
appendSlice: true
keepMapValues: true
resources:
- name: key
base:
Expand Down
2 changes: 1 addition & 1 deletion compositions/upbound-aws-provider/lambda/container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
toFieldPath: spec.forProvider.tags
policy:
mergeOptions:
appendSlice: true
keepMapValues: true
- fromFieldPath: "metadata.name"
toFieldPath: "metadata.name"
resources:
Expand Down
2 changes: 1 addition & 1 deletion compositions/upbound-aws-provider/lambda/zip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
toFieldPath: spec.forProvider.tags
policy:
mergeOptions:
appendSlice: true
keepMapValues: true
- fromFieldPath: "metadata.name"
toFieldPath: "metadata.name"
resources:
Expand Down
14 changes: 3 additions & 11 deletions compositions/upbound-aws-provider/s3/definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,9 @@ spec:
region:
type: string
tags:
items:
properties:
key:
type: string
value:
type: string
required:
- key
- value
type: object
type: array
additionalProperties:
type: string
type: object
required:
- providerConfigName
- region
Expand Down
2 changes: 1 addition & 1 deletion compositions/upbound-aws-provider/s3/general-purpose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
toFieldPath: spec.forProvider.tags
policy:
mergeOptions:
appendSlice: true
keepMapValues: true
- type: FromCompositeFieldPath
fromFieldPath: spec.resourceConfig.name
toFieldPath: metadata.annotations[crossplane.io/external-name]
Expand Down
2 changes: 1 addition & 1 deletion compositions/upbound-aws-provider/sns-sqs/sns-sqs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
toFieldPath: spec.forProvider.tags
policy:
mergeOptions:
appendSlice: true
keepMapValues: true
- type: FromCompositeFieldPath
fromFieldPath: spec.resourceConfig.name
toFieldPath: metadata.annotations[crossplane.io/external-name]
Expand Down
2 changes: 1 addition & 1 deletion compositions/upbound-aws-provider/sns/sns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
toFieldPath: spec.forProvider.tags
policy:
mergeOptions:
appendSlice: true
keepMapValues: true
- type: FromCompositeFieldPath
fromFieldPath: spec.resourceConfig.name
toFieldPath: metadata.annotations[crossplane.io/external-name]
Expand Down
2 changes: 1 addition & 1 deletion compositions/upbound-aws-provider/sqs/sqs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
toFieldPath: spec.forProvider.tags
policy:
mergeOptions:
appendSlice: true
keepMapValues: true
- type: FromCompositeFieldPath
fromFieldPath: spec.resourceConfig.name
toFieldPath: metadata.annotations[crossplane.io/external-name]
Expand Down

0 comments on commit 263fbaf

Please sign in to comment.