syntasso / kratix

Kratix is an open-source framework for building platforms
https://kratix.io
Apache License 2.0
454 stars 28 forks source link

bug: can't set conditions in status.yaml #138

Open kirederik opened 4 months ago

kirederik commented 4 months ago

steps to reproduce

  1. in a resource pipeline, create a /kratix/metadata.status.yaml as follows:
    cat <<EOF > /kratix/metadata/status.yaml
    conditions:
      - type: TestCondition
        status: "True"
    message: "Custom Message"
    otherStatus: "bar"
    EOF
  2. apply the promise and request a resource from it
  3. inspect the status of the resource (with get -o yaml or describe)

expected

  1. .status.message to be Custom Message
  2. .status.otherStatus to be bar
  3. .status.conditions to include TestCondition: True

actual

  1. .status.conditions does not include the TestCondition