Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Reflect task status in the task custom resource status #190

Closed
danail-branekov opened this issue Apr 14, 2021 · 0 comments
Closed

Reflect task status in the task custom resource status #190

danail-branekov opened this issue Apr 14, 2021 · 0 comments
Labels
M Estimated completixy: medium
Milestone

Comments

@danail-branekov
Copy link
Member

Currently it is not possible to see that task status via inspecting the task custom resource. In a CC-less world, CR API users would be interested to know what is going on with their tasks.

Acceptance:

Happy path

  • Create a task
  • See that the task status says that the task is running
  • Wait for the task to complete
  • See that the task status is completed

Starting task

  • Create a task with a non-existent image
  • See that task status is starting (or anything different from running)

Failing task

  • Create a task with a command that fails
  • See the task status eventually goes failed
  • See the error message in the task status
@danail-branekov danail-branekov added this to the crds milestone Apr 14, 2021
@gcapizzi gcapizzi added the M Estimated completixy: medium label Apr 19, 2021
danail-branekov added a commit to cloudfoundry/eirini that referenced this issue May 10, 2021
danail-branekov added a commit that referenced this issue May 10, 2021
[#190]

Co-authored-by: Danail Branekov <[email protected]>
@gcapizzi gcapizzi assigned gcapizzi and unassigned danail-branekov May 11, 2021
gcapizzi added a commit to cloudfoundry/eirini that referenced this issue May 11, 2021
Co-authored-by: Giuseppe Capizzi <[email protected]>
Issue: cloudfoundry/eirini-release#190
kieron-dev pushed a commit that referenced this issue May 11, 2021
Co-authored-by: Kieron Browne <[email protected]>
Issue: #190
@kieron-dev kieron-dev assigned mnitchev and unassigned kieron-dev May 12, 2021
gcapizzi added a commit that referenced this issue May 12, 2021
Co-authored-by: Giuseppe Capizzi <[email protected]>
Issue: #190
@gcapizzi gcapizzi assigned georgethebeatle and unassigned gcapizzi May 17, 2021
georgethebeatle added a commit to cloudfoundry/eirini that referenced this issue May 17, 2021
georgethebeatle pushed a commit to cloudfoundry/eirini that referenced this issue May 17, 2021
Co-authored-by: Giuseppe Capizzi <[email protected]>
Co-authored-by: Mario Nitchev <[email protected]>
Co-authored-by: Georgi Sabev <[email protected]>

Issue: cloudfoundry/eirini-release#190
georgethebeatle pushed a commit that referenced this issue May 17, 2021
Co-authored-by: Kieron Browne <[email protected]>
Co-authored-by: Giuseppe Capizzi <[email protected]>
Co-authored-by: Mario Nitchev <[email protected]>
Co-authored-by: Georgi Sabev <[email protected]>

Issue: #190
kieron-dev pushed a commit that referenced this issue May 17, 2021
eirini commit SHA: dbe79d827118d0c8ff655ebfad83518ebd468448
eirini commit message:
Reflect task status in the Task CR

Co-authored-by: Giuseppe Capizzi <[email protected]>
Co-authored-by: Mario Nitchev <[email protected]>
Co-authored-by: Georgi Sabev <[email protected]>

Issue: #190
@gcapizzi gcapizzi assigned gcapizzi and unassigned georgethebeatle May 19, 2021
gcapizzi added a commit to cloudfoundry/eirini that referenced this issue May 19, 2021
We want to align the LRP reconciler implementation with the task
one.

Co-authored-by: Georgi Sabev <[email protected]>
Co-authored-by: Danail Branekov <[email protected]>
Co-authored-by: Giuseppe Capizzi <[email protected]>
Issue: cloudfoundry/eirini-release#190
gcapizzi added a commit that referenced this issue May 19, 2021
It now uses `patch` to update the lrp status instead of `update`

Co-authored-by: Giuseppe Capizzi <[email protected]>
Issue: #190
gcapizzi added a commit to cloudfoundry/eirini that referenced this issue May 19, 2021
We want to align the LRP reconciler implementation with the task
one.

Co-authored-by: Georgi Sabev <[email protected]>
Co-authored-by: Danail Branekov <[email protected]>
Co-authored-by: Giuseppe Capizzi <[email protected]>
Issue: cloudfoundry/eirini-release#190
gcapizzi added a commit that referenced this issue May 19, 2021
That would enable us to link LRP CR with the underlying statefulset via
GUID rather than name

Co-authored-by: Giuseppe Capizzi <[email protected]>
Issue: #190
danail-branekov added a commit to cloudfoundry/eirini that referenced this issue May 19, 2021
Thus the LRP reconciler can obtain the status of an LRP without looking
up the statefulset explicitly. Thus the custom resource reconciler does
not have to know that the LRP is backed by a statefulset.

Co-authored-by: Giuseppe Capizzi <[email protected]>
Issue: cloudfoundry/eirini-release#190
kieron-dev pushed a commit that referenced this issue May 19, 2021
eirini commit SHA: cca6ec713d321f5a3c521c981a03d2fdd11422d5
eirini commit message:
Introduce `GetStatus` to the LRP client

Thus the LRP reconciler can obtain the status of an LRP without looking
up the statefulset explicitly. Thus the custom resource reconciler does
not have to know that the LRP is backed by a statefulset.

Co-authored-by: Giuseppe Capizzi <[email protected]>
Issue: #190
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
M Estimated completixy: medium
Projects
None yet
Development

No branches or pull requests

5 participants