-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
5,401 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package v1alpha1 | ||
|
||
type ClusterConfigSpec struct { | ||
|
||
// +kubebuilder:validation:Optional | ||
ListenerClass string `json:"listenerClass,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package v1alpha1 | ||
|
||
type ImageSpec struct { | ||
Custom string `json:"custom,omitempty"` | ||
Repo string `json:"repo,omitempty"` | ||
KdsVersion string `json:"kdsVersion,omitempty"` | ||
ProductVersion string `json:"productVersion,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package v1alpha1 | ||
|
||
import ( | ||
apiv1alpha1 "github.com/zncdata-labs/superset-operator/pkg/apis/v1alpha1" | ||
corev1 "k8s.io/api/core/v1" | ||
) | ||
|
||
type NodeSpec struct { | ||
RoleGroups map[string]NodeRoleGroupSpec `json:"roleGroups,omitempty"` | ||
Config *NodeConfigSpec `json:"config,omitempty"` | ||
PodDisruptionBudget *apiv1alpha1.PodDisruptionBudgetSpec `json:"podDisruptionBudget,omitempty"` | ||
CommandOverrides []string `json:"commandOverrides,omitempty"` | ||
EnvOverrides []string `json:"envOverrides,omitempty"` | ||
ConfigOverrides *NodeConfigOverridesSpec `json:"configOverrides,omitempty"` | ||
} | ||
|
||
type NodeConfigSpec struct { | ||
Affinity *corev1.Affinity `json:"affinity,omitempty"` | ||
Tolerations []corev1.Toleration `json:"tolerations,omitempty"` | ||
PodDisruptionBudget *apiv1alpha1.PodDisruptionBudgetSpec `json:"podDisruptionBudget,omitempty"` | ||
GracefulShutdownTimeout *string `json:"gracefulShutdownTimeoutSeconds,omitempty"` | ||
Logging *apiv1alpha1.LoggingConfigSpec `json:"logging,omitempty"` | ||
Resources *apiv1alpha1.ResourcesSpec `json:"resources,omitempty"` | ||
} | ||
|
||
type NodeRoleGroupSpec struct { | ||
Replicas *int32 `json:"replicas,omitempty"` | ||
Config *NodeConfigSpec `json:"config,omitempty"` | ||
PodDisruptionBudget *apiv1alpha1.PodDisruptionBudgetSpec `json:"podDisruptionBudget,omitempty"` | ||
CommandOverrides []string `json:"commandOverrides,omitempty"` | ||
EnvOverrides []string `json:"envOverrides,omitempty"` | ||
ConfigOverrides *NodeConfigOverridesSpec `json:"configOverrides,omitempty"` | ||
} | ||
|
||
type NodeConfigOverridesSpec struct { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package v1alpha1 | ||
|
||
import ( | ||
apiv1alpha1 "github.com/zncdata-labs/superset-operator/pkg/apis/v1alpha1" | ||
corev1 "k8s.io/api/core/v1" | ||
) | ||
|
||
type WorkerSpec struct { | ||
RoleGroups map[string]WorkerRoleGroupSpec `json:"roleGroups,omitempty"` | ||
Config *WorkerConfigSpec `json:"config,omitempty"` | ||
PodDisruptionBudget *apiv1alpha1.PodDisruptionBudgetSpec `json:"podDisruptionBudget,omitempty"` | ||
CommandOverrides []string `json:"commandOverrides,omitempty"` | ||
EnvOverrides []string `json:"envOverrides,omitempty"` | ||
ConfigOverrides *WorkerConfigOverridesSpec `json:"configOverrides,omitempty"` | ||
} | ||
|
||
type WorkerConfigSpec struct { | ||
Affinity *corev1.Affinity `json:"affinity,omitempty"` | ||
Tolerations []corev1.Toleration `json:"tolerations,omitempty"` | ||
PodDisruptionBudget *apiv1alpha1.PodDisruptionBudgetSpec `json:"podDisruptionBudget,omitempty"` | ||
GracefulShutdownTimeout *string `json:"gracefulShutdownTimeoutSeconds,omitempty"` | ||
Logging *apiv1alpha1.LoggingConfigSpec `json:"logging,omitempty"` | ||
Resources *apiv1alpha1.ResourcesSpec `json:"resources,omitempty"` | ||
} | ||
|
||
type WorkerRoleGroupSpec struct { | ||
Replicas *int32 `json:"replicas,omitempty"` | ||
Config *WorkerConfigSpec `json:"config,omitempty"` | ||
PodDisruptionBudget *apiv1alpha1.PodDisruptionBudgetSpec `json:"podDisruptionBudget,omitempty"` | ||
CommandOverrides []string `json:"commandOverrides,omitempty"` | ||
EnvOverrides []string `json:"envOverrides,omitempty"` | ||
ConfigOverrides *WorkerConfigOverridesSpec `json:"configOverrides,omitempty"` | ||
} | ||
|
||
type WorkerConfigOverridesSpec struct { | ||
} |
Oops, something went wrong.