Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Display updated resources #92

Open
Atharex opened this issue May 29, 2020 · 1 comment
Open

Display updated resources #92

Atharex opened this issue May 29, 2020 · 1 comment
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@Atharex
Copy link

Atharex commented May 29, 2020

Hi,

A question about Argo CD and updated resources. This information is available in
{{ .app.status.operationState.syncResult.resources }}

It returns
[map[group:machinelearning.seldon.io hookPhase:Running kind:SeldonDeployment message:seldondeployment.machinelearning.seldon.io/my-test-deployment configured name:my-test-deployment namespace:test status:Synced syncPhase:Sync version:v1alpha2]]

How can you access individual fields?
{{ .app.status.operationState.syncResult.resources.name }} for example returns an error, but I'd like to get the "my-test-deployment"

@alexmt alexmt added the documentation Improvements or additions to documentation label Jan 20, 2021
@alexmt alexmt added this to the v1.1 milestone Jan 20, 2021
@ryota-sakamoto ryota-sakamoto self-assigned this Mar 12, 2021
@ryota-sakamoto
Copy link
Member

ryota-sakamoto commented Mar 13, 2021

Hi @alexmt
I guess .app.status.resources(status == OutOfSync) is more correctly that .app.status.operationState.syncResult.resources when the user just wants to send updated resources.
Because maybe operationState is nearly same that is kubectl apply result, so it is not suitable this case.

What do you think?

@alexmt alexmt modified the milestones: v1.1, v1.2 Apr 8, 2021
@ryota-sakamoto ryota-sakamoto removed their assignment Aug 18, 2021
@ryota-sakamoto ryota-sakamoto modified the milestones: v1.2, v1.3 Nov 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants