Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-30608

Support defining podSpec.metadata.labels in ClowdApp definitions

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Unset
    • No

      Swatch tried to update the top level metadata.label value in a clowdapp.yaml, and it resulted in this reconciliation error.

      {"level":"error","ts":1705692365.384922,"msg":"Reconciler error","controller":"clowdapp","controllerGroup":"cloud.redhat.com","controllerKind":"ClowdApp","ClowdApp":

      {"name":"swatch-metrics-rhel","namespace":"rhsm-stage"}

      ,"namespace":"rhsm-stage","name":"swatch-metrics-rhel","reconcileID":"23c6d526-fddf-41d0-abe9-d41f631f087c","error":"error updating resource Deployment swatch-metrics-rhel-service: Deployment.apps \"swatch-metrics-rhel-service\" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{\"app\":\"swatch-me…

      We want to be able to define labels directly on a pod, but Clowder doesn't consider it when you put it there, resulting in this warning.

      Warning: unknown field "spec.deployments[0].metadata.labels" 

      This line is the suspected problem because we don't have separate places to define labels.

      See this slack thread for more details and discussion.

              Unassigned Unassigned
              lburnett0 Lindsey Burnett
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: