Skip to content

Commit

Permalink
test(chart): update chart values for CI tests
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
  • Loading branch information
VietND96 committed Mar 1, 2024
1 parent c323bed commit 57a8b08
Show file tree
Hide file tree
Showing 14 changed files with 99 additions and 70 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ chart_test_autoscaling_job_hostname:
./tests/charts/make/chart_test.sh JobAutoscaling

chart_test_autoscaling_job:
CHART_ENABLE_TRACING=true CHART_FULL_DISTRIBUTED_MODE=true CHART_ENABLE_INGRESS_HOSTNAME=true RELEASE_NAME=selenium \
CHART_ENABLE_TRACING=true CHART_FULL_DISTRIBUTED_MODE=true CHART_ENABLE_INGRESS_HOSTNAME=true SELENIUM_GRID_HOST=selenium-grid.local RELEASE_NAME=selenium \
VERSION=$(TAG_VERSION) VIDEO_TAG=$(FFMPEG_TAG_VERSION)-$(BUILD_DATE) NAMESPACE=$(NAMESPACE) \
./tests/charts/make/chart_test.sh JobAutoscaling

Expand Down
2 changes: 1 addition & 1 deletion charts/selenium-grid/certs/cert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ keytool -genkeypair \
-keyalg RSA \
-v \
-dname "CN=SeleniumHQ,OU=Software Freedom Conservancy,O=SeleniumHQ,L=Unknown,ST=Unknown,C=Unknown" \
-ext "SAN:c=DNS:localhost,DNS:selenium-grid.local" \
-ext "SAN:c=DNS:localhost,DNS:selenium-grid.local,DNS:selenium-grid.prod,DNS:selenium.dev" \
-validity 3650 \
-storepass ${STOREPASS} \
-keypass ${KEYPASS} \
Expand Down
Binary file modified charts/selenium-grid/certs/selenium.jks
Binary file not shown.
43 changes: 22 additions & 21 deletions charts/selenium-grid/certs/selenium.pem
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
-----BEGIN CERTIFICATE-----
MIID4jCCAsqgAwIBAgIJAJcK6V/XPo7CMA0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A3yqUPusQpIaYW
PbIimVI4lQIDAQABo3EwbzAdBgNVHQ4EFgQU/S73OMhN3yV4ustP37TY9upJQFYw
TgYDVR0RAQH/BEQwQoIJbG9jYWxob3N0ghNzZWxlbml1bS1ncmlkLmxvY2FsghJz
ZWxlbml1bS1ncmlkLnByb2SCDHNlbGVuaXVtLmRldjANBgkqhkiG9w0BAQsFAAOC
AQEAs8CCz5kQnuWjcFQojkjbMk9L92HBWV89ME+YL4o/TJk56EYW3UurEALgO6MJ
h14vdXOAYO6TERUMNKaSO5CydfbuKp5JpJhpY/qbHKPE/wJYIfMEO2hicYefjEKi
wxy4TE1FrfbmHV+MKmS21u7JTTyoqpqD+dWoURikdwBwm6cvyPx9Hntc2uHMc53D
BQtveBxkr4fMT+dcAommWfY+LHWg2bvEWzTJxELK7D5b63z/AI3MAL5XEznbqoV7
ibZpC2D8wZ4N2E3tOT7iruMVuGVI98N40ytSuSwrUNjn7CT+htnpn1zVWZx3FpiT
pez6yj8ecncxrGOgp2Ty6r5Quw==
-----END CERTIFICATE-----
2 changes: 1 addition & 1 deletion charts/selenium-grid/certs/selenium.pkcs8.base64
Original file line number Diff line number Diff line change
@@ -1 +1 @@
LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1JSUV2UUlCQURBTkJna3Foa2lHOXcwQkFRRUZBQVNDQktjd2dnU2pBZ0VBQW9JQkFRQ2VrajA5eHZyRDQrbmsKS21aZjEwaDNUbnRJRnFLSTc1eDM1WjJHeHdIRTJLcXQzZU53YnFVcm5pMnpSYllJYWxkZG5hd1diT3FjMnBnRQpuTHRNN1ZSb0NneGxZekFSYWV2ZkkydVkrRUJJNFFqZ3pTVFpzdHVXa3NQcVNtSHJMT280cTc1d09TWUZVdGZhCmErNmw3aWpuVlFMS1dvNHdDbkdzc2s5VUJKV3ZOVTlaTWRUekVxTHZJTXIySGkwTG1LWHM5ay9GYklNK1hJQUEKeW5mOGFHNGF3cTBzL2VaVGlybUVxYmhtaTJ1ZHdN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dnJPCmlpRjg1V29BczZxa1A1eEt6SmdYM3JDdkk3YkUwQ1pJMlVQTDlRd1J2RitvZGx4N0huSUh5UVEzNmswbGJiMXMKNDAwbUR6M1lYT0xIemliQnNzcGRiRzNmekE2bnhoWnlrd3Y3SmlzT2I5cU10a0ZRVmtxbTNPZVRtaTZoSk9XVgpYODl1RjZNU0JRS0JnRTNJUmh0ZVpFYjNPSFp5UWJVTVRPdlhiR1VWMVlGR1YrWDVHRmJyTmZkajNVY1NGS09FCml1VmJQcENzcnV6VzVYanBKZW5iRmVoQk1LaUJ1cStUNWhWQWFHVXhFK0t1eDJmUXRsZFVEZFRORTRMS0lWSHIKVFM1Tis3QUNzNUxPNmNWeWF0d2xnYWlLQVBxd2xlL1NVbXpiRlJGRDk0NmNNTXBVSU9oL1FBWmhBb0dBSlNwcQpuRHFEUUUvenAxNlRGY2dHdVJrWEFwSVZSeXV4VkdQcm1CZndYcnVLSEQvSkxyRFlqOEMrMWY5R2tuUzZsUXMwCmFYMFJUeE9mZGpzSWoxQWFzMjl6OVYycU84TXZlaXFZTi9PdWQzUm9kTTlxcnlvZ1dXdUtmUytWSUlNWlgzeHoKU1c1VnQvN1NYN1pTTTJobDVJSlN6cC9ONXlvQWpxV3JqNXEwYzBVQ2dZRUFvbDdaMW1UYXhoWng2cWpScis1MAo5T1NnMElBK3YvSHZoM1pPRkRTUE5xdHlESTl1eGo3K0dDb3JTYjExRmJzaU1obXkxT0tGMlRiSnN6YkNPTFhUCjNzelFpVjVWenNyWUVsR3V1d2NqNkpwU3ZCb2VFTmF2NzhVRVlncTNoQW9MSXNmMGlHN3ozME5OYXAwQ25JZ2QKSnFRRGt3K3pNT0JXY3p2S04rbVQ0NDA9Ci0tLS0tRU5EIFBSSVZBVEUgS0VZLS0tLS0K
3 changes: 2 additions & 1 deletion charts/selenium-grid/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ Common autoscaling spec template
{{- with .node.scaledObjectOptions -}}
{{- $spec = mergeOverwrite ($spec | fromYaml) . | toYaml -}}
{{- end -}}
{{- $spec = mergeOverwrite ($spec | fromYaml) (dict "scaleTargetRef" (dict "name" .name) "advanced" (dict "horizontalPodAutoscalerConfig" (dict "name" .name))) | toYaml -}}
{{- $advanced := (dict "scaleTargetRef" (dict "name" .name) "advanced" (dict "horizontalPodAutoscalerConfig" (dict "name" .name) "restoreToOriginalReplicaCount" true)) -}}
{{- $spec = mergeOverwrite ($spec | fromYaml) $advanced | toYaml -}}
{{- else if eq .Values.autoscaling.scalingType "job" -}}
{{- with .Values.autoscaling.scaledJobOptions -}}
{{- $spec = mergeOverwrite ($spec | fromYaml) . | toYaml -}}
Expand Down
46 changes: 16 additions & 30 deletions charts/selenium-grid/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,9 @@ tracing:
path: &jaegerBasePath "/jaeger"
pathType: Prefix

monitoring:
enabled: false

# Keda scaled object configuration
autoscaling:
# Enable autoscaling. Implies installing KEDA
Expand All @@ -529,7 +532,7 @@ autoscaling:
scalingType: job
# Annotations for KEDA resources: ScaledObject and ScaledJob
annotations:
helm.sh/hook: post-install,post-upgrade
"helm.sh/hook": post-install,post-upgrade,post-rollback
# Options for KEDA scaled resources (keep only common options used for both ScaledJob and ScaledObject)
scaledOptions:
minReplicaCount: 0
Expand Down Expand Up @@ -1162,6 +1165,14 @@ customLabels: {}

# Configuration for dependency chart keda
keda:
additionalAnnotations:
"helm.sh/hook": pre-install,pre-upgrade,pre-rollback
podAnnotations:
keda:
"helm.sh/hook": pre-install,pre-upgrade,pre-rollback
crds:
additionalAnnotations:
"helm.sh/hook": pre-install,pre-upgrade,pre-rollback
http:
timeout: 60000
webhooks:
Expand Down Expand Up @@ -1193,48 +1204,23 @@ jaeger:
enabled: false

prometheus-stack:
cleanPrometheusOperatorObjectNames: true
defaultRules:
create: true
annotations:
"helm.sh/hook": post-install,post-upgrade,post-rollback
alertmanager:
enabled: true
annotations:
"helm.sh/hook": post-install,post-upgrade,post-rollback
enabled: true
ingress:
enabled: true
ingressClassName: nginx
hosts:
- alertmanager.selenium-grid.prod
grafana:
enabled: true
adminPassword: admin
forceDeployDatasources: true
forceDeployDashboards: true
annotations:
"helm.sh/hook": post-install,post-upgrade,post-rollback
ingress:
enabled: true
ingressClassName: nginx
hosts:
- grafana.selenium-grid.prod
prometheus:
enabled: true
annotations:
"helm.sh/hook": post-install,post-upgrade,post-rollback
enabled: true
ingress:
enabled: true
ingressClassName: nginx
hosts:
- pts.selenium-grid.prod
prometheusSpec:
storageSpec:
volumeClaimTemplate:
spec:
storageClassName: "standard"
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 5Gi
selector:
matchLabels:
app.kubernetes.io/name: "prometheus"
2 changes: 1 addition & 1 deletion tests/charts/ci/DeploymentAutoscaling-values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
autoscaling:
enableWithExistingKEDA: true
enabled: true
scalingType: deployment
scaledOptions:
minReplicaCount: 0
Expand Down
2 changes: 1 addition & 1 deletion tests/charts/ci/JobAutoscaling-values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
autoscaling:
enableWithExistingKEDA: true
enabled: true
scalingType: job
scaledJobOptions:
successfulJobsHistoryLimit: 0
Expand Down
3 changes: 0 additions & 3 deletions tests/charts/ci/base-auth-ingress-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ global:
seleniumGrid:
logLevel: INFO

monitoring:
enabled: true

ingress:
annotations:
nginx.ingress.kubernetes.io/use-regex: "true"
Expand Down
35 changes: 35 additions & 0 deletions tests/charts/ci/base-tls-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,38 @@ tls:
registrationSecret:
enabled: true
value: "HappyTestOps"

monitoring:
enabled: false

prometheus-stack:
alertmanager:
ingress:
enabled: true
ingressClassName: nginx
hosts:
- alertmanager.selenium-grid.prod
grafana:
ingress:
enabled: true
ingressClassName: nginx
hosts:
- grafana.selenium-grid.prod
prometheus:
ingress:
enabled: true
ingressClassName: nginx
hosts:
- pts.selenium-grid.prod
prometheusSpec:
storageSpec:
volumeClaimTemplate:
spec:
storageClassName: "standard"
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 5Gi
selector:
matchLabels:
app.kubernetes.io/name: "prometheus"
6 changes: 0 additions & 6 deletions tests/charts/make/chart_cluster_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,10 @@ elif [ "${CLUSTER}" = "minikube" ]; then
sudo chown -R $USER $HOME/.kube $HOME/.minikube
fi

echo "Install KEDA core on kind kubernetes cluster"
helm upgrade -i ${KEDA_NAMESPACE} -n ${KEDA_NAMESPACE} --create-namespace --set webhooks.enabled=false kedacore/keda

if [ "${CLUSTER}" = "kind" ]; then
echo "Load built local Docker Images into Kind Cluster"
image_list=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep ${NAMESPACE} | grep ${BUILD_DATE:-$VERSION})
for image in $image_list; do
kind load docker-image --name ${CLUSTER_NAME} "$image"
done
fi

echo "Wait for KEDA core to be ready"
kubectl -n ${KEDA_NAMESPACE} wait --for=condition=ready pod -l app.kubernetes.io/instance=${KEDA_NAMESPACE} --timeout 180s
18 changes: 16 additions & 2 deletions tests/charts/make/chart_setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@ on_failure() {
trap 'on_failure' ERR

if [ "$(uname -m)" = "x86_64" ]; then
echo "Installing Docker for AMD64 / x86_64"
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
echo "==============================="
if [ "${CLUSTER}" = "kind" ]; then
echo "Installing kind for AMD64 / x86_64"
curl -fsSL -o ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
Expand All @@ -40,8 +55,7 @@ if [ "$(uname -m)" = "x86_64" ]; then
curl -sLO https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz
sudo tar -xf go$GO_VERSION.linux-amd64.tar.gz -C /usr/local
rm -rf go$GO_VERSION.linux-amd64.tar.gz*
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
source ~/.bashrc || true
sudo ln -sf /usr/local/go/bin/go /usr/bin/go
go version
echo "==============================="
echo "Installing CRI-CTL (CLI for CRI-compatible container runtimes)"
Expand Down
5 changes: 3 additions & 2 deletions tests/charts/make/chart_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ cleanup() {
done
if [ "${SKIP_CLEANUP}" = "false" ]; then
echo "Clean up chart release and namespace"
helm delete ${RELEASE_NAME} --namespace ${SELENIUM_NAMESPACE}
kubectl delete namespace ${SELENIUM_NAMESPACE}
helm delete ${RELEASE_NAME} --namespace ${SELENIUM_NAMESPACE} --wait
kubectl patch ns ${SELENIUM_NAMESPACE} -p '{"metadata":{"finalizers":null}}'
kubectl delete namespace ${SELENIUM_NAMESPACE} --wait=false
fi
}

Expand Down

0 comments on commit 57a8b08

Please sign in to comment.