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: Allow connectors to be deployed with operator. #9

Merged
merged 5 commits into from
Nov 17, 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
4 changes: 2 additions & 2 deletions .github/workflows/lint-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
steps:

- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: stable

Expand Down

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

13 changes: 13 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 @@ -37,6 +37,8 @@ type RedpandaClusterSpec struct {

Console *RedpandaConsole `json:"console,omitempty"`

Connectors *RedpandaConnectors `json:"connectors,omitempty"`

Auth *Auth `json:"auth,omitempty"`

TLS *TLS `json:"tls,omitempty"`
Expand Down Expand Up @@ -164,6 +166,17 @@ type ConsoleCreateObj struct {
Create bool `json:"create"`
}

type RedpandaConnectors struct {
Enabled *bool `json:"enabled,omitempty"`

Deployment *ConnectorsCreateObj `json:"deployment,omitempty"`
Test *ConnectorsCreateObj `json:"test,omitempty"`
}

type ConnectorsCreateObj struct {
Create *bool `json:"enabled,omitempty"`
}
Comment on lines +169 to +178
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be only part of the configuration. It only reflects Redpanda values where user could define Connectors values in standard helm deployment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Consider this the first part. For now I want to unblock users so they can deploy connectors.


// Auth is a top-level field of the values file
type Auth struct {
SASL *SASL `json:"sasl"`
Expand Down
57 changes: 56 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.

15 changes: 15 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 @@ -161,6 +161,21 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
connectors:
properties:
deployment:
properties:
enabled:
type: boolean
type: object
enabled:
type: boolean
test:
properties:
enabled:
type: boolean
type: object
type: object
console:
properties:
affinity:
Expand Down
Loading
Loading