crd: Add enterprise, organization, repository, and runner labels to runnerdeployments print columns (#2310)
Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
This commit is contained in:
		
							parent
							
								
									65184f1ed8
								
							
						
					
					
						commit
						362fa5d52e
					
				|  | @ -77,6 +77,11 @@ type RunnerDeploymentStatus struct { | ||||||
| // +kubebuilder:object:root=true
 | // +kubebuilder:object:root=true
 | ||||||
| // +kubebuilder:resource:shortName=rdeploy
 | // +kubebuilder:resource:shortName=rdeploy
 | ||||||
| // +kubebuilder:subresource:status
 | // +kubebuilder:subresource:status
 | ||||||
|  | // +kubebuilder:printcolumn:JSONPath=".spec.template.spec.enterprise",name=Enterprise,type=string
 | ||||||
|  | // +kubebuilder:printcolumn:JSONPath=".spec.template.spec.organization",name=Organization,type=string
 | ||||||
|  | // +kubebuilder:printcolumn:JSONPath=".spec.template.spec.repository",name=Repository,type=string
 | ||||||
|  | // +kubebuilder:printcolumn:JSONPath=".spec.template.spec.group",name=Group,type=string
 | ||||||
|  | // +kubebuilder:printcolumn:JSONPath=".spec.template.spec.labels",name=Labels,type=string
 | ||||||
| // +kubebuilder:printcolumn:JSONPath=".spec.replicas",name=Desired,type=number
 | // +kubebuilder:printcolumn:JSONPath=".spec.replicas",name=Desired,type=number
 | ||||||
| // +kubebuilder:printcolumn:JSONPath=".status.replicas",name=Current,type=number
 | // +kubebuilder:printcolumn:JSONPath=".status.replicas",name=Current,type=number
 | ||||||
| // +kubebuilder:printcolumn:JSONPath=".status.updatedReplicas",name=Up-To-Date,type=number
 | // +kubebuilder:printcolumn:JSONPath=".status.updatedReplicas",name=Up-To-Date,type=number
 | ||||||
|  |  | ||||||
|  | @ -17,6 +17,21 @@ spec: | ||||||
|   scope: Namespaced |   scope: Namespaced | ||||||
|   versions: |   versions: | ||||||
|     - additionalPrinterColumns: |     - additionalPrinterColumns: | ||||||
|  |         - jsonPath: .spec.template.spec.enterprise | ||||||
|  |           name: Enterprise | ||||||
|  |           type: string | ||||||
|  |         - jsonPath: .spec.template.spec.organization | ||||||
|  |           name: Organization | ||||||
|  |           type: string | ||||||
|  |         - jsonPath: .spec.template.spec.repository | ||||||
|  |           name: Repository | ||||||
|  |           type: string | ||||||
|  |         - jsonPath: .spec.template.spec.group | ||||||
|  |           name: Group | ||||||
|  |           type: string | ||||||
|  |         - jsonPath: .spec.template.spec.labels | ||||||
|  |           name: Labels | ||||||
|  |           type: string | ||||||
|         - jsonPath: .spec.replicas |         - jsonPath: .spec.replicas | ||||||
|           name: Desired |           name: Desired | ||||||
|           type: number |           type: number | ||||||
|  |  | ||||||
|  | @ -17,6 +17,21 @@ spec: | ||||||
|   scope: Namespaced |   scope: Namespaced | ||||||
|   versions: |   versions: | ||||||
|     - additionalPrinterColumns: |     - additionalPrinterColumns: | ||||||
|  |         - jsonPath: .spec.template.spec.enterprise | ||||||
|  |           name: Enterprise | ||||||
|  |           type: string | ||||||
|  |         - jsonPath: .spec.template.spec.organization | ||||||
|  |           name: Organization | ||||||
|  |           type: string | ||||||
|  |         - jsonPath: .spec.template.spec.repository | ||||||
|  |           name: Repository | ||||||
|  |           type: string | ||||||
|  |         - jsonPath: .spec.template.spec.group | ||||||
|  |           name: Group | ||||||
|  |           type: string | ||||||
|  |         - jsonPath: .spec.template.spec.labels | ||||||
|  |           name: Labels | ||||||
|  |           type: string | ||||||
|         - jsonPath: .spec.replicas |         - jsonPath: .spec.replicas | ||||||
|           name: Desired |           name: Desired | ||||||
|           type: number |           type: number | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue