Skip to content

Display synchronization errors #5

Description

@riccardomc

We currently only report ERROR state for sync failures and we don't return the actual error message. See this example (UUIDs redacted):

curl -s https://api.poc.parvaeres.io/v1/deployment/... | jq '.Items[0].Errors'
[
  "Failed sync attempt to 68db: one or more synchronization tasks are not valid (retried 5 times)."
]

We could even better than the high level error condition by reporting the syncResult and resources in SyncFailed state.

status:
    conditions:
    - lastTransitionTime: "2020-11-24T21:32:29Z"
      message: 'Failed sync attempt to 68db: one
        or more synchronization tasks are not valid (retried 5 times).'
      type: SyncError
[...]
      phase: Failed
      retryCount: 5
      startedAt: "2020-11-24T21:27:19Z"
      syncResult:
        resources:
        - group: apps.openshift.io
          kind: DeploymentConfig
          message: the server could not find the requested resource
          name: mysql-p07
          namespace: ...
          status: SyncFailed
          syncPhase: Sync
          version: v1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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