Skip to content

Commit

Permalink
add descriptins to printcolumn, add categories
Browse files Browse the repository at this point in the history
  • Loading branch information
Gottox committed Nov 13, 2024
1 parent 19a3e62 commit b54f063
Show file tree
Hide file tree
Showing 38 changed files with 148 additions and 107 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
tags:
- 'v[0-9]*.[0-9]*.[0-9]*'
- 'snapshot-*'

jobs:
prepare:
Expand All @@ -24,6 +25,7 @@ jobs:
test "${helm_appversion}" = "${GITHUB_REF_NAME}"
build:
if: contains(github.ref_name, 'snapshot') == false
needs: prepare
runs-on: 'ubuntu-latest'
strategy:
Expand Down Expand Up @@ -57,6 +59,7 @@ jobs:


release:
if: contains(github.ref_name, 'snapshot') == false
needs:
- container
- build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ spec:
jsonPath: .spec.endpoint.instanceRef
name: Instance
type: string
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ spec:
jsonPath: .spec.baseUrl
name: Base URL
type: string
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ spec:
scope: Namespaced
versions:
- additionalPrinterColumns:
- description: ''
- description: true if the realm is ready
jsonPath: .status.ready
name: Ready
type: boolean
- description: ''
- description: Status String of the resource
jsonPath: .status.status
name: Status
type: string
- description: ''
- description: time since the realm was created
jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
4 changes: 3 additions & 1 deletion docs/src/configuration.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Configuration

Here be dragons.
`Rustcloak` itself is configured using [Helm Charts][1]

[1]: https://github.com/withlazers/rustcloak-operator/tree/main/charts/rustcloak-operator
8 changes: 5 additions & 3 deletions src/crd/api_object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ use std::ops::Add;
version = "v1",
namespaced,
status = "KeycloakApiStatus",
category = "keycloak",
category = "all",
printcolumn = r#"{
"name":"Instance",
"type":"string",
Expand All @@ -23,19 +25,19 @@ use std::ops::Add;
printcolumn = r#"{
"name":"Ready",
"type":"boolean",
"description":"",
"description":"true if the realm is ready",
"jsonPath":".status.ready"
}"#,
printcolumn = r#"{
"name":"Status",
"type":"string",
"description":"",
"description":"Status String of the resource",
"jsonPath":".status.status"
}"#,
printcolumn = r#"{
"name":"Age",
"type":"date",
"description":"",
"description":"time since the realm was created",
"jsonPath":".metadata.creationTimestamp"
}"#
)]
Expand Down
Loading

0 comments on commit b54f063

Please sign in to comment.