Skip to content

adds ingress resource #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions api/v1beta1/questdb_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ type QuestDBConfigSpec struct {
LogConfig string `json:"logConfig,omitempty"`
}

type QuestDBIngressSpec struct {
Enabled bool `json:"enabled,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
IngressClassName string `json:"ingressClassName,omitempty"`
}

// QuestDBSpec defines the desired state of QuestDB
type QuestDBSpec struct {
Volume QuestDBVolumeSpec `json:"volume"`
Expand All @@ -54,6 +60,7 @@ type QuestDBSpec struct {
// ImagePullPolicy defaults to IfNotPresent
ImagePullPolicy v1.PullPolicy `json:"imagePullPolicy,omitempty"`
ImagePullSecrets []v1.LocalObjectReference `json:"imagePullSecrets,omitempty"`
Ingress QuestDBIngressSpec `json:"ingress,omitempty"`
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
PodAnnotations map[string]string `json:"podAnnotations,omitempty"`
PodSecurityContext v1.PodSecurityContext `json:"podSecurityContext,omitempty"`
Expand Down
23 changes: 23 additions & 0 deletions api/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions config/crd/bases/crd.questdb.io_questdbs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2601,6 +2601,17 @@ spec:
type: object
x-kubernetes-map-type: atomic
type: array
ingress:
properties:
annotations:
additionalProperties:
type: string
type: object
enabled:
type: boolean
ingressClassName:
type: string
type: object
nodeSelector:
additionalProperties:
type: string
Expand Down
17 changes: 17 additions & 0 deletions docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,22 @@ _Appears in:_



#### QuestDBIngressSpec





_Appears in:_
- [QuestDBSpec](#questdbspec)

| Field | Description |
| --- | --- |
| `enabled` _boolean_ | |
| `annotations` _object (keys:string, values:string)_ | |
| `ingressClassName` _string_ | |


#### QuestDBSnapshot


Expand Down Expand Up @@ -165,6 +181,7 @@ _Appears in:_
| `extraVolumes` _[Volume](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#volume-v1-core) array_ | |
| `imagePullPolicy` _[PullPolicy](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#pullpolicy-v1-core)_ | ImagePullPolicy defaults to IfNotPresent |
| `imagePullSecrets` _[LocalObjectReference](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#localobjectreference-v1-core) array_ | |
| `ingress` _[QuestDBIngressSpec](#questdbingressspec)_ | |
| `nodeSelector` _object (keys:string, values:string)_ | |
| `podAnnotations` _object (keys:string, values:string)_ | |
| `podSecurityContext` _[PodSecurityContext](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#podsecuritycontext-v1-core)_ | |
Expand Down