argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
16.45k stars 4.97k forks source link

command line get Applications extend wide output #18226

Open absynth76 opened 2 weeks ago

absynth76 commented 2 weeks ago

Summary

a kube client cli like kubectl get Applications -o wide should contain at least he project the Application belongs to

Motivation

Simple logic. Could be used when implementing rbac for examples, filter/group according to output, etc.

Proposal

Extend the output when wide modifier is used to display Application? I guess adding the necessary to the displayed parameters

// +kubebuilder:printcolumn:name="Project",type=string,JSONPath=`.spec.project`,priority=10

on https://github.com/argoproj/argo-cd/blob/master/pkg/apis/application/v1alpha1/types.go would be sufficient

nikzayn commented 2 weeks ago

@absynth76 I would like to take this up.

/assign