Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
Signed-off-by: SK Ali Arman <[email protected]>
  • Loading branch information
sheikh-arman committed Sep 25, 2024
1 parent c78368b commit 8a95766
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions vendor/kubedb.dev/apimachinery/apis/kubedb/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -1337,6 +1337,7 @@ const (

ClickHouseInternalKeeperDataPath = "/var/lib/clickhouse/coordination/log"
ClickHouseInternalKeeperSnapshotPath = "/var/lib/clickhouse/coordination/snapshots"
ClickHOuseKeeeprConfigFileVolumeDir = "/tmp/clickhouse-keeper"

ComponentCoOrdinator = "co-ordinator"
ClickHouseVolumeData = "data"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ func (c *ClickHouse) ValidateCreateOrUpdate() error {
}
}

if c.Spec.DisableSecurity {
if c.Spec.AuthSecret != nil {
allErr = append(allErr, field.Invalid(field.NewPath("spec").Child("authSecret"),
c.Name,
"authSecret should be nil when security is disabled"))
return apierrors.NewInvalid(schema.GroupKind{Group: "ClickHouse.kubedb.com", Kind: "ClickHouse"}, c.Name, allErr)
}
}

if c.Spec.ClusterTopology != nil {
clusterName := map[string]bool{}
clusters := c.Spec.ClusterTopology.Cluster
Expand Down

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.

0 comments on commit 8a95766

Please sign in to comment.