Skip to content

Commit

Permalink
Change default Cluster manager
Browse files Browse the repository at this point in the history
Julien Guitton committed Jan 8, 2024
1 parent f5da917 commit 1875268
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions api/v1/common_types.go
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ type DataflowState string
// DataflowUpdateRequestType defines the type of versioned flow update request.
type DataflowUpdateRequestType string

// ComponentUpdateStrategy defines the type of strategy to update a component
// ComponentUpdateStrategy defines the type of strategy to update a component.
// +kubebuilder:validation:Enum={"drop","drain"}
type ComponentUpdateStrategy string

@@ -58,7 +58,7 @@ type ClientConfigType string
// +kubebuilder:validation:Enum={"external","internal"}
type ClusterType string

// ClusterManagerType represents an interface implementing the ClientConfigManager.
// ClusterManagerType defines the type of manager will handle the cluster.
// +kubebuilder:validation:Enum={"zookeeper","kubernetes"}
type ClusterManagerType string

6 changes: 3 additions & 3 deletions api/v1/nificluster_types.go
Original file line number Diff line number Diff line change
@@ -44,10 +44,10 @@ type NifiClusterSpec struct {
ProxyUrl string `json:"proxyUrl,omitempty"`
// Service defines the policy for services owned by NiFiKop operator.
Service ServicePolicy `json:"service,omitempty"`
// Pod defines the policy for pods owned by NiFiKop operator.
// Pod defines the policy for pods owned by NiFiKop operator.
Pod PodPolicy `json:"pod,omitempty"`
// clusterManager specifies
// +kubebuilder:default:=kubernetes
// clusterManager specifies which manager will handle the cluster election and states.
// +kubebuilder:default:=zookeeper
// +optional
ClusterManager ClusterManagerType `json:"clusterManager,omitempty"`
// zKAddress specifies the ZooKeeper connection string
8 changes: 4 additions & 4 deletions api/v1alpha1/common_types.go
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ type ConnectionState string
// DataflowUpdateRequestType defines the type of versioned flow update request.
type DataflowUpdateRequestType string

// ComponentUpdateStrategy defines the type of strategy to update a component
// ComponentUpdateStrategy defines the type of strategy to update a component.
// +kubebuilder:validation:Enum={"drop","drain"}
type ComponentUpdateStrategy string

@@ -51,15 +51,15 @@ type ConfigurationState string
// InitClusterNode holds info about if the node was part of the init cluster setup.
type InitClusterNode bool

// PKIBackend represents an interface implementing the PKIManager
// PKIBackend represents an interface implementing the PKIManager.
// +kubebuilder:validation:Enum={"cert-manager","vault"}
type PKIBackend string

// ClientConfigType represents an interface implementing the ClientConfigManager
// ClientConfigType represents an interface implementing the ClientConfigManager.
// +kubebuilder:validation:Enum={"tls","basic"}
type ClientConfigType string

// ClusterType represents an interface implementing the ClientConfigManager
// ClusterType represents an interface implementing the ClientConfigManager.
// +kubebuilder:validation:Enum={"external","internal"}
type ClusterType string

2 changes: 1 addition & 1 deletion api/v1alpha1/nificonnection_types.go
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ type NifiConnectionSpec struct {
Destination ComponentReference `json:"destination"`
// the Configuration of the connection.
Configuration ConnectionConfiguration `json:"configuration,omitempty"`
// describes the way the operator will deal with data when a connection will be updated : drop or drain.
// describes the way the operator will deal with data when a connection will be updated: drop or drain.
UpdateStrategy v1.ComponentUpdateStrategy `json:"updateStrategy"`
}

2 changes: 1 addition & 1 deletion config/crd/bases/nifi.konpyutaika.com_nificlusters.yaml
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ spec:
clusterImage:
type: string
clusterManager:
default: kubernetes
default: zookeeper
enum:
- zookeeper
- kubernetes
2 changes: 1 addition & 1 deletion helm/nifikop/crds/nifi.konpyutaika.com_nificlusters.yaml
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ spec:
clusterImage:
type: string
clusterManager:
default: kubernetes
default: zookeeper
enum:
- zookeeper
- kubernetes

0 comments on commit 1875268

Please sign in to comment.