Skip to content

Commit

Permalink
Merge pull request #16 from alejandroEsc/ae/v2/servicemissing
Browse files Browse the repository at this point in the history
k8s: update api to include service obj
  • Loading branch information
alejandroEsc authored Nov 20, 2023
2 parents 5c1f696 + a1c4df3 commit 989b9bc
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 2 deletions.
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

0 comments on commit 989b9bc

Please sign in to comment.