generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 271
Closed
aws-controllers-k8s/code-generator
#402Description
Describe the bug
Given this generator.yaml configuration for a resource to add AGE and Synced columns, Synced never shows up on the resource:
print:
add_age_column: true
add_synced_column: truek get rule -A
NAMESPACE NAME ARN SYNCED AGE
default filter-rule-01-eu-central-1 arn:aws:events:eu-central-1:331505801289:rule/bus-01/filter-rule-01 2m20sThe generated CRD code:
- jsonPath: .status.conditions[?(@.type=="ACK.ResourceSynced")].status
name: Synced
type: booleanIf I change type to string it works:
NAMESPACE NAME ARN SYNCED AGE
default rule.eventbridge.services.k8s.aws/filter-rule-01-eu-central-1 arn:aws:events:eu-central-1:331505801289:rule/bus-01/filter-rule-01 True 15sSteps to reproduce
See above.
Expected outcome
Generated code should correctly set the status to True or False.
Environment
code-generator
git rev-parse HEAD
b55ae8752ece381c383ffe5b388ed2147c6b30d8Metadata
Metadata
Assignees
Labels
No labels