Commit 3b08cfa9 authored by Edmund Ochieng's avatar Edmund Ochieng

add printcolumn markers

parent 542b0a5b
......@@ -186,6 +186,10 @@ type GitLabStatus struct {
// +kubebuilder:object:root=true
// +kubebuilder:resource:shortName=gl
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="STATUS",type=string,JSONPath=`.status.phase`
// +kubebuilder:printcolumn:name="REDIS",type=string,JSONPath=`.status.health.redis`
// +kubebuilder:printcolumn:name="DATABASE",type=string,JSONPath=`.status.health.database`
// +kubebuilder:printcolumn:name="CONSOLE",type=string,JSONPath=`.status.health.workhorse`
// +operator-sdk:csv:customresourcedefinitions:displayName="GitLab"
// +operator-sdk:csv:customresourcedefinitions:resources={{ConfigMap,v1,""},{Secret,v1,""},{Service,v1,""},{Pod,v1,""},{Deployment,v1,""},{StatefulSet,v1,""},{PersistentVolumeClaim,v1,""},{Runner,v1beta1,""},{GLBackup,v1beta1,""}}
......
......@@ -6,6 +6,19 @@ metadata:
creationTimestamp: null
name: gitlabs.apps.gitlab.com
spec:
additionalPrinterColumns:
- JSONPath: .status.phase
name: STATUS
type: string
- JSONPath: .status.health.redis
name: REDIS
type: string
- JSONPath: .status.health.database
name: DATABASE
type: string
- JSONPath: .status.health.workhorse
name: CONSOLE
type: string
group: apps.gitlab.com
names:
kind: GitLab
......
......@@ -8,6 +8,19 @@ metadata:
creationTimestamp: null
name: gitlabs.apps.gitlab.com
spec:
additionalPrinterColumns:
- JSONPath: .status.phase
name: STATUS
type: string
- JSONPath: .status.health.redis
name: REDIS
type: string
- JSONPath: .status.health.database
name: DATABASE
type: string
- JSONPath: .status.health.workhorse
name: CONSOLE
type: string
group: apps.gitlab.com
names:
kind: GitLab
......
......@@ -6,6 +6,19 @@ metadata:
creationTimestamp: null
name: gitlabs.apps.gitlab.com
spec:
additionalPrinterColumns:
- JSONPath: .status.phase
name: STATUS
type: string
- JSONPath: .status.health.redis
name: REDIS
type: string
- JSONPath: .status.health.database
name: DATABASE
type: string
- JSONPath: .status.health.workhorse
name: CONSOLE
type: string
group: apps.gitlab.com
names:
kind: GitLab
......
Markdown is supported
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