Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify "Eventbridge Rule" resource patches to include spec.prameters.id as prefix #33

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 57 additions & 80 deletions apis/composition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -505,28 +505,22 @@ spec:
patchSetName: deletionPolicy
- type: PatchSet
patchSetName: region
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.id
- combine:
strategy: string
string:
fmt: '%s-healthevent'
variables:
- fromFieldPath: spec.parameters.id
toFieldPath: metadata.annotations[crossplane.io/external-name]
transforms:
- match:
fallbackValue: null
patterns:
- regexp: .*
result: healthevent
type: regexp
type: match
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.id
type: CombineFromComposite
- combine:
strategy: string
string:
fmt: '%s-healthevent'
variables:
- fromFieldPath: spec.parameters.id
toFieldPath: metadata.name
transforms:
- match:
fallbackValue: null
patterns:
- regexp: .*
result: healthevent
type: regexp
type: match
type: CombineFromComposite

- name: ruleSpotInterrupt
base:
Expand Down Expand Up @@ -554,28 +548,23 @@ spec:
patchSetName: deletionPolicy
- type: PatchSet
patchSetName: region
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.id
- combine:
strategy: string
string:
fmt: '%s-spotinterrupt'
variables:
- fromFieldPath: spec.parameters.id
toFieldPath: metadata.annotations[crossplane.io/external-name]
transforms:
- match:
fallbackValue: null
patterns:
- regexp: .*
result: spotinterrupt
type: regexp
type: match
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.id
type: CombineFromComposite

- combine:
strategy: string
string:
fmt: '%s-spotinterrupt'
variables:
- fromFieldPath: spec.parameters.id
toFieldPath: metadata.name
transforms:
- match:
fallbackValue: null
patterns:
- regexp: .*
result: spotinterrupt
type: regexp
type: match
type: CombineFromComposite

- name: ruleInstanceRebalance
base:
Expand Down Expand Up @@ -603,28 +592,22 @@ spec:
patchSetName: deletionPolicy
- type: PatchSet
patchSetName: region
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.id
- combine:
strategy: string
string:
fmt: '%s-instancerebalance'
variables:
- fromFieldPath: spec.parameters.id
toFieldPath: metadata.annotations[crossplane.io/external-name]
transforms:
- match:
fallbackValue: null
patterns:
- regexp: .*
result: instancerebalance
type: regexp
type: match
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.id
type: CombineFromComposite
- combine:
strategy: string
string:
fmt: '%s-instancerebalance'
variables:
- fromFieldPath: spec.parameters.id
toFieldPath: metadata.name
transforms:
- match:
fallbackValue: null
patterns:
- regexp: .*
result: instancerebalance
type: regexp
type: match
type: CombineFromComposite

- name: ruleInstanceStateChange
base:
Expand Down Expand Up @@ -652,28 +635,22 @@ spec:
patchSetName: deletionPolicy
- type: PatchSet
patchSetName: region
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.id
- combine:
strategy: string
string:
fmt: '%s-instancestatechange'
variables:
- fromFieldPath: spec.parameters.id
toFieldPath: metadata.annotations[crossplane.io/external-name]
transforms:
- match:
fallbackValue: null
patterns:
- regexp: .*
result: instancestatechange
type: regexp
type: match
- type: FromCompositeFieldPath
fromFieldPath: spec.parameters.id
type: CombineFromComposite
- combine:
strategy: string
string:
fmt: '%s-instancestatechange'
variables:
- fromFieldPath: spec.parameters.id
toFieldPath: metadata.name
transforms:
- match:
fallbackValue: null
patterns:
- regexp: .*
result: instancestatechange
type: regexp
type: match
type: CombineFromComposite

- name: ruleHealthEventTarget
base:
Expand Down