Unverified Commit c7dbe488 authored by Mike Bryant's avatar Mike Bryant Committed by GitHub
Browse files

feat: Add additional printer columns for Health and Sync status (#4641)

parent bdee71d4
Showing with 67 additions and 1 deletion
+67 -1
......@@ -3659,7 +3659,7 @@
},
"v1alpha1Application": {
"type": "object",
"title": "Application is a definition of Application resource.\n+genclient\n+genclient:noStatus\n+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object\n+kubebuilder:resource:path=applications,shortName=app;apps",
"title": "Application is a definition of Application resource.\n+genclient\n+genclient:noStatus\n+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object\n+kubebuilder:resource:path=applications,shortName=app;apps\n+kubebuilder:printcolumn:name=\"Sync Status\",type=string,JSONPath=`.status.sync.status`\n+kubebuilder:printcolumn:name=\"Health Status\",type=string,JSONPath=`.status.health.status`\n+kubebuilder:printcolumn:name=\"Revision\",type=string,JSONPath=`.status.sync.revision`,priority=10",
"properties": {
"metadata": {
"$ref": "#/definitions/v1ObjectMeta"
......
......@@ -6,6 +6,17 @@ metadata:
app.kubernetes.io/part-of: argocd
name: applications.argoproj.io
spec:
additionalPrinterColumns:
- JSONPath: .status.sync.status
name: Sync Status
type: string
- JSONPath: .status.health.status
name: Health Status
type: string
- JSONPath: .status.sync.revision
name: Revision
priority: 10
type: string
group: argoproj.io
names:
kind: Application
......@@ -16,6 +27,7 @@ spec:
- apps
singular: application
scope: Namespaced
subresources: {}
validation:
openAPIV3Schema:
description: Application is a definition of Application resource.
......
......@@ -7,6 +7,17 @@ metadata:
app.kubernetes.io/part-of: argocd
name: applications.argoproj.io
spec:
additionalPrinterColumns:
- JSONPath: .status.sync.status
name: Sync Status
type: string
- JSONPath: .status.health.status
name: Health Status
type: string
- JSONPath: .status.sync.revision
name: Revision
priority: 10
type: string
group: argoproj.io
names:
kind: Application
......@@ -17,6 +28,7 @@ spec:
- apps
singular: application
scope: Namespaced
subresources: {}
validation:
openAPIV3Schema:
description: Application is a definition of Application resource.
......
......@@ -7,6 +7,17 @@ metadata:
app.kubernetes.io/part-of: argocd
name: applications.argoproj.io
spec:
additionalPrinterColumns:
- JSONPath: .status.sync.status
name: Sync Status
type: string
- JSONPath: .status.health.status
name: Health Status
type: string
- JSONPath: .status.sync.revision
name: Revision
priority: 10
type: string
group: argoproj.io
names:
kind: Application
......@@ -17,6 +28,7 @@ spec:
- apps
singular: application
scope: Namespaced
subresources: {}
validation:
openAPIV3Schema:
description: Application is a definition of Application resource.
......
......@@ -7,6 +7,17 @@ metadata:
app.kubernetes.io/part-of: argocd
name: applications.argoproj.io
spec:
additionalPrinterColumns:
- JSONPath: .status.sync.status
name: Sync Status
type: string
- JSONPath: .status.health.status
name: Health Status
type: string
- JSONPath: .status.sync.revision
name: Revision
priority: 10
type: string
group: argoproj.io
names:
kind: Application
......@@ -17,6 +28,7 @@ spec:
- apps
singular: application
scope: Namespaced
subresources: {}
validation:
openAPIV3Schema:
description: Application is a definition of Application resource.
......
......@@ -7,6 +7,17 @@ metadata:
app.kubernetes.io/part-of: argocd
name: applications.argoproj.io
spec:
additionalPrinterColumns:
- JSONPath: .status.sync.status
name: Sync Status
type: string
- JSONPath: .status.health.status
name: Health Status
type: string
- JSONPath: .status.sync.revision
name: Revision
priority: 10
type: string
group: argoproj.io
names:
kind: Application
......@@ -17,6 +28,7 @@ spec:
- apps
singular: application
scope: Namespaced
subresources: {}
validation:
openAPIV3Schema:
description: Application is a definition of Application resource.
......
......@@ -94,6 +94,9 @@ message AppProjectStatus {
// +genclient:noStatus
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:resource:path=applications,shortName=app;apps
// +kubebuilder:printcolumn:name="Sync Status",type=string,JSONPath=`.status.sync.status`
// +kubebuilder:printcolumn:name="Health Status",type=string,JSONPath=`.status.health.status`
// +kubebuilder:printcolumn:name="Revision",type=string,JSONPath=`.status.sync.revision`,priority=10
message Application {
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
......
......@@ -46,6 +46,9 @@ import (
// +genclient:noStatus
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:resource:path=applications,shortName=app;apps
// +kubebuilder:printcolumn:name="Sync Status",type=string,JSONPath=`.status.sync.status`
// +kubebuilder:printcolumn:name="Health Status",type=string,JSONPath=`.status.health.status`
// +kubebuilder:printcolumn:name="Revision",type=string,JSONPath=`.status.sync.revision`,priority=10
type Application struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata" protobuf:"bytes,1,opt,name=metadata"`
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment