Skip to content

Commit

Permalink
feat(pluginpreset): additional printcolumns (#670)
Browse files Browse the repository at this point in the history
* feat(pluginpreset): additional printcolumns

adding Plugin Definition, Release Namespace and Ready as printcolumns

* Automatic generation of CRD API Docs

---------

Co-authored-by: CRD API Docs Bot <[email protected]>
  • Loading branch information
IvoGoman and CRD API Docs Bot authored Oct 28, 2024
1 parent 087721e commit 0307f94
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
12 changes: 11 additions & 1 deletion charts/manager/crds/greenhouse.sap_pluginpresets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,17 @@ spec:
singular: pluginpreset
scope: Namespaced
versions:
- name: v1alpha1
- additionalPrinterColumns:
- jsonPath: .spec.plugin.pluginDefinition
name: Plugin Definition
type: string
- jsonPath: .spec.plugin.releaseNamespace
name: Release Namespace
type: string
- jsonPath: .status.statusConditions.conditions[?(@.type == "Ready")].status
name: Ready
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: PluginPreset is the Schema for the PluginPresets API
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/api/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.0
info:
title: Greenhouse
version: a72ea02
version: fecfd97
description: PlusOne operations platform
paths:
/TeamMembership:
Expand Down
3 changes: 3 additions & 0 deletions pkg/apis/greenhouse/v1alpha1/pluginpreset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ type PluginPresetStatus struct {

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:printcolumn:name="Plugin Definition",type=string,JSONPath=`.spec.plugin.pluginDefinition`
//+kubebuilder:printcolumn:name="Release Namespace",type=string,JSONPath=`.spec.plugin.releaseNamespace`
//+kubebuilder:printcolumn:name="Ready",type="string",JSONPath=`.status.statusConditions.conditions[?(@.type == "Ready")].status`

// PluginPreset is the Schema for the PluginPresets API
type PluginPreset struct {
Expand Down

0 comments on commit 0307f94

Please sign in to comment.