Skip to content
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

k8s: update api to include service obj #16

Merged
merged 1 commit into from
Nov 20, 2023
Merged
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
11 changes: 11 additions & 0 deletions src/go/k8s/api/redpanda/v1alpha1/redpanda_clusterspec_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ type RedpandaClusterSpec struct {

Resources *Resources `json:"resources,omitempty"`

Service *Service `json:"service,omitempty"`

Storage *Storage `json:"storage,omitempty"`

PostInstallJob *PostInstallJob `json:"post_install_job,omitempty"`
Expand Down Expand Up @@ -609,3 +611,12 @@ type Enterprise struct {
License *string `json:"license,omitempty"`
LicenseSecretRef *EnterpriseLicenseSecretRef `json:"licenseSecretRef,omitempty"`
}

type ServiceInternal struct {
Annotations map[string]string `json:"annotations,omitempty"`
}

type Service struct {
Name *string `json:"name,omitempty"`
Internal *ServiceInternal `json:"internal,omitempty"`
}
54 changes: 53 additions & 1 deletion src/go/k8s/api/redpanda/v1alpha1/zz_generated.deepcopy.go

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

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

12 changes: 12 additions & 0 deletions src/go/k8s/config/crd/bases/cluster.redpanda.com_redpandas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1008,6 +1008,18 @@ spec:
- container
type: object
type: object
service:
properties:
internal:
properties:
annotations:
additionalProperties:
type: string
type: object
type: object
name:
type: string
type: object
serviceAccount:
properties:
annotations:
Expand Down
Loading