Skip to content

Commit

Permalink
Descriptions for CRD spec
Browse files Browse the repository at this point in the history
  • Loading branch information
alb-car committed Nov 30, 2023
1 parent b226250 commit 41f1d2e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
12 changes: 7 additions & 5 deletions api/v1/dremiorestserver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ import (
// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.
// Important: Run "make generate" after modifying this file

// DremioRestServerSpec defines the desired state of DremioRestServer
// Dremio REST Server properties
type DremioRestServerSpec struct {
// JAVA_TOOL_OPTIONS (on JDK 9+, --add-opens=java.base/java.nio=ALL-UNNAMED is required)
// Corresponds to JAVA_TOOL_OPTIONS: on JDK 9+, --add-opens=java.base/java.nio=ALL-UNNAMED is required
// +operator-sdk:csv:customresourcedefinitions:type=spec
JavaOptions string `json:"javaOptions,omitempty"` // JAVA_TOOL_OPTIONS

// Comma-separated list of tables to expose
// +operator-sdk:csv:customresourcedefinitions:type=spec
Tables string `json:"tables,omitempty"` // DREMIO_TABLES (comma-separated)

// Properties to connect to Dremio
// +operator-sdk:csv:customresourcedefinitions:type=spec
Dremio DremioProperties `json:"dremio,omitempty"`

Expand Down Expand Up @@ -63,7 +65,7 @@ type Requests struct {
Memory string `json:"memory,omitempty"`
}

// DremioRestServerStatus defines the observed state of DremioRestServer
// Dremio REST Server status
type DremioRestServerStatus struct {
// +operator-sdk:csv:customresourcedefinitions:type=status
State string `json:"state,omitempty" patchStrategy:"merge"`
Expand All @@ -72,7 +74,7 @@ type DremioRestServerStatus struct {
//+kubebuilder:object:root=true
//+kubebuilder:subresource:status

// DremioRestServer is the Schema for the dremiorestservers API
// Schema for the dremiorestservers API
type DremioRestServer struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand All @@ -83,7 +85,7 @@ type DremioRestServer struct {

//+kubebuilder:object:root=true

// DremioRestServerList contains a list of DremioRestServer
// List of DremioRestServer
type DremioRestServerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
- name: v1
schema:
openAPIV3Schema:
description: DremioRestServer is the Schema for the dremiorestservers API
description: Schema for the dremiorestservers API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand All @@ -33,7 +33,7 @@ spec:
metadata:
type: object
spec:
description: DremioRestServerSpec defines the desired state of DremioRestServer
description: Dremio REST Server properties
properties:
containerLimits:
description: Corresponds to resources.limits of a container
Expand All @@ -52,6 +52,7 @@ spec:
type: string
type: object
dremio:
description: Properties to connect to Dremio
properties:
host:
type: string
Expand All @@ -68,14 +69,15 @@ spec:
type: string
type: object
javaOptions:
description: JAVA_TOOL_OPTIONS (on JDK 9+, --add-opens=java.base/java.nio=ALL-UNNAMED
is required)
description: 'Corresponds to JAVA_TOOL_OPTIONS: on JDK 9+, --add-opens=java.base/java.nio=ALL-UNNAMED
is required'
type: string
tables:
description: Comma-separated list of tables to expose
type: string
type: object
status:
description: DremioRestServerStatus defines the observed state of DremioRestServer
description: Dremio REST Server status
properties:
state:
type: string
Expand Down
12 changes: 7 additions & 5 deletions deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
- name: v1
schema:
openAPIV3Schema:
description: DremioRestServer is the Schema for the dremiorestservers API
description: Schema for the dremiorestservers API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand All @@ -45,7 +45,7 @@ spec:
metadata:
type: object
spec:
description: DremioRestServerSpec defines the desired state of DremioRestServer
description: Dremio REST Server properties
properties:
containerLimits:
description: Corresponds to resources.limits of a container
Expand All @@ -64,6 +64,7 @@ spec:
type: string
type: object
dremio:
description: Properties to connect to Dremio
properties:
host:
type: string
Expand All @@ -80,14 +81,15 @@ spec:
type: string
type: object
javaOptions:
description: JAVA_TOOL_OPTIONS (on JDK 9+, --add-opens=java.base/java.nio=ALL-UNNAMED
is required)
description: 'Corresponds to JAVA_TOOL_OPTIONS: on JDK 9+, --add-opens=java.base/java.nio=ALL-UNNAMED
is required'
type: string
tables:
description: Comma-separated list of tables to expose
type: string
type: object
status:
description: DremioRestServerStatus defines the observed state of DremioRestServer
description: Dremio REST Server status
properties:
state:
type: string
Expand Down

0 comments on commit 41f1d2e

Please sign in to comment.