Skip to content

Commit 4027e15

Browse files
committed
chore(workflow): remove cluster domain
1 parent 2370abb commit 4027e15

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

charts/workflow/values.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
global:
88
# Admin email, used for each component to send email to administrator
99
email: "drycc@drycc.cc"
10-
# A domain name consists of one or more parts.
11-
# Periods (.) are used to separate these parts.
12-
# Each part must be 1 to 63 characters in length and can contain lowercase letters, digits, and hyphens (-).
13-
# It must start and end with a lowercase letter or digit.
14-
clusterDomain: "cluster.local"
1510
# The publicly resolvable hostname to build your cluster with.
1611
#
1712
# This will be the hostname that is used to build endpoints such as "drycc.$HOSTNAME"

install.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ shopt -s expand_aliases
66
GATEWAY_CLASS="istio"
77
CLUSTER_CIDR=${CLUSTER_CIDR:-"10.42.0.0/16"}
88
SERVICE_CIDR=${SERVICE_CIDR:-"10.43.0.0/16"}
9-
CLUSTER_DOMAIN=${CLUSTER_DOMAIN:-"cluster.local"}
109
CERT_MANAGER_ENABLED="${CERT_MANAGER_ENABLED:-false}"
1110
DRYCC_REGISTRY="${DRYCC_REGISTRY:-registry.drycc.cc}"
1211
CHARTS_URL=oci://registry.drycc.cc/$([ "$CHANNEL" == "stable" ] && echo charts || echo charts-testing)
@@ -255,7 +254,7 @@ function install_k3s_server {
255254
install_runtime
256255
configure_registry
257256
configure_k3s_mirrors
258-
INSTALL_K3S_EXEC="server ${INSTALL_K3S_EXEC} --embedded-registry --flannel-backend=none --disable-network-policy --disable=traefik --disable=servicelb --disable-kube-proxy --cluster-cidr=${CLUSTER_CIDR} --service-cidr=${SERVICE_CIDR} --cluster-domain=${CLUSTER_DOMAIN}"
257+
INSTALL_K3S_EXEC="server ${INSTALL_K3S_EXEC} --embedded-registry --flannel-backend=none --disable-network-policy --disable=traefik --disable=servicelb --disable-kube-proxy --cluster-cidr=${CLUSTER_CIDR} --service-cidr=${SERVICE_CIDR}"
259258
if [[ -n "${K3S_DATA_DIR}" ]] ; then
260259
INSTALL_K3S_EXEC="$INSTALL_K3S_EXEC --data-dir=${K3S_DATA_DIR}/rancher/k3s"
261260
fi
@@ -524,7 +523,6 @@ function install_drycc {
524523

525524
cat << EOF > "/tmp/drycc-values.yaml"
526525
global:
527-
clusterDomain: ${CLUSTER_DOMAIN}
528526
platformDomain: ${PLATFORM_DOMAIN}
529527
certManagerEnabled: ${CERT_MANAGER_ENABLED}
530528
@@ -688,15 +686,14 @@ function install_helmbroker {
688686
helm upgrade --install helmbroker $CHARTS_URL/helmbroker \
689687
--set valkey.enabled=false \
690688
--set gateway.gatewayClass=${GATEWAY_CLASS} \
691-
--set global.clusterDomain=${CLUSTER_DOMAIN} \
692689
--set global.platformDomain=${PLATFORM_DOMAIN} \
693690
--set global.certManagerEnabled=${CERT_MANAGER_ENABLED} \
694691
--set persistence.size=${HELMBROKER_PERSISTENCE_SIZE:-5Gi} \
695692
--set persistence.storageClass=${HELMBROKER_PERSISTENCE_STORAGE_CLASS:-"longhorn"} \
696693
--set username=${HELMBROKER_USERNAME} \
697694
--set password=${HELMBROKER_PASSWORD} \
698695
--set replicas=${HELMBROKER_REPLICAS} \
699-
--set valkeyUrl=redis://:${VALKEY_PASSWORD}@drycc-valkey.drycc.svc.${CLUSTER_DOMAIN}:16379/11 \
696+
--set valkeyUrl=redis://:${VALKEY_PASSWORD}@drycc-valkey.drycc.svc:16379/11 \
700697
--set celeryReplicas=${HELMBROKER_CELERY_REPLICAS} \
701698
--namespace drycc-helmbroker --create-namespace $options --wait -f - <<EOF
702699
repositories:
@@ -718,7 +715,7 @@ metadata:
718715
spec:
719716
relistBehavior: Duration
720717
relistRequests: 5
721-
url: http://${HELMBROKER_USERNAME}:${HELMBROKER_PASSWORD}@drycc-helmbroker.drycc-helmbroker.svc.${CLUSTER_DOMAIN}
718+
url: http://${HELMBROKER_USERNAME}:${HELMBROKER_PASSWORD}@drycc-helmbroker.drycc-helmbroker.svc
722719
EOF
723720

724721
echo -e "\\033[32m---> Helmbroker username: $HELMBROKER_USERNAME\\033[0m"

0 commit comments

Comments
 (0)