Skip to content

add_synced_column not respected #1659

@embano1

Description

@embano1

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: true
k 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            2m20s

The generated CRD code:

    - jsonPath: .status.conditions[?(@.type=="ACK.ResourceSynced")].status
      name: Synced
      type: boolean

If 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     15s

Steps to reproduce

See above.

Expected outcome
Generated code should correctly set the status to True or False.

Environment

code-generator

git rev-parse HEAD
b55ae8752ece381c383ffe5b388ed2147c6b30d8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions