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

Kafka cluster CRD spec was updated with Kraft field #529

Merged
merged 1 commit into from
Aug 24, 2023

Conversation

tengu-alt
Copy link
Collaborator

No description provided.

@tengu-alt tengu-alt self-assigned this Aug 22, 2023
@tengu-alt tengu-alt linked an issue Aug 22, 2023 that may be closed by this pull request
@@ -33,6 +35,7 @@ var (
ErrTypeAssertion = errors.New("unable to assert type")
ErrImmutableSchemaRegistry = errors.New("schema registry is immutable")
ErrImmutableRestProxy = errors.New("rest proxy is immutable")
ErrImmutableKraft = errors.New("Kraft is immutable")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Kraft -> kraft

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@@ -20,6 +20,8 @@ import "errors"

var (
ErrZeroDataCentres = errors.New("cluster spec doesn't have data centres")
ErrMoreThanOneKraft = errors.New("cluster spec spec does not support more than one Kraft")
ErrMoreThanThreeControllerNodeCount = errors.New("Kraft does not support more than three controller nodes")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Kraft -> kraft

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

refactored

@@ -34,6 +34,7 @@ type KafkaCluster struct {
DedicatedZookeeper []*DedicatedZookeeper `json:"dedicatedZookeeper"`
DefaultNumberOfPartitions int `json:"defaultNumberOfPartitions"`
DefaultReplicationFactor int `json:"defaultReplicationFactor"`
Kraft []*Kraft `json:"kraft"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Kraft []*Kraft `json:"kraft"`
Kraft []*Kraft `json:"kraft,omitempty"`

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

refactored

@tengu-alt tengu-alt force-pushed the kafka-spec-updating-by-kraft branch 3 times, most recently from 62f9e21 to ef36f0d Compare August 23, 2023 12:26
@@ -20,6 +20,8 @@ import "errors"

var (
ErrZeroDataCentres = errors.New("cluster spec doesn't have data centres")
ErrMoreThanOneKraft = errors.New("cluster spec spec does not support more than one kraft")
Copy link
Contributor

Choose a reason for hiding this comment

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

spec spec

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

refactored

@testisnullus testisnullus merged commit f0ee5c1 into main Aug 24, 2023
1 check passed
@testisnullus testisnullus added the enhancement New feature or request label Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kafka Kraft
4 participants