Skip to content
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
28 changes: 28 additions & 0 deletions ci/kubetest/test_clickhouse_service_default_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import pytest

from helpers.clickhouse import get_clickhouse_cluster_service_spec
from helpers.utils import (
VALUES_DISABLE_EVERYTHING,
create_namespace_if_not_exists,
install_chart,
is_posthog_healthy,
merge_yaml,
wait_for_pods_to_be_ready,
)

VALUES = merge_yaml(
VALUES_DISABLE_EVERYTHING,
"""
clickhouse:
enabled: true
""",
)


def test_default_service_type(kube):
create_namespace_if_not_exists()
install_chart(VALUES)
wait_for_pods_to_be_ready(kube)

cluster_service = get_clickhouse_cluster_service_spec(kube)
assert cluster_service.type == "ClusterIP", "ClickHouse cluster service type is {}".format(cluster_service.type)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"name": "charts-clickhouse",
"repository": "git@github.com:PostHog/charts-clickhouse.git",
"dependencies": {
"eslint": "v8.26.0"
"eslint": "^8.27.0"
}
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,10 @@ eslint-visitor-keys@^3.3.0:
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826"
integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==

eslint@v8.26.0:
version "8.26.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.26.0.tgz#2bcc8836e6c424c4ac26a5674a70d44d84f2181d"
integrity sha512-kzJkpaw1Bfwheq4VXUezFriD1GxszX6dUekM7Z3aC2o4hju+tsR/XyTC3RcoSD7jmy9VkPU3+N6YjVU2e96Oyg==
eslint@^8.27.0:
version "8.27.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.27.0.tgz#d547e2f7239994ad1faa4bb5d84e5d809db7cf64"
integrity sha512-0y1bfG2ho7mty+SiILVf9PfuRA49ek4Nc60Wmmu62QlobNR+CeXa4xXIJgcuwSQgZiWaPH+5BDsctpIW0PR/wQ==
dependencies:
"@eslint/eslintrc" "^1.3.3"
"@humanwhocodes/config-array" "^0.11.6"
Expand Down