Skip to content

Commit

Permalink
Merge branch 'master' into miani-k8s-jenkins-20250113
Browse files Browse the repository at this point in the history
  • Loading branch information
armandomiani authored Jan 17, 2025
2 parents 3f54778 + 81aea59 commit b88a31c
Show file tree
Hide file tree
Showing 29 changed files with 51 additions and 45 deletions.
1 change: 1 addition & 0 deletions k8s/c2d_deployer.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ endif
else \
echo "crane is already installed"; \
fi; \
chmod +x "$(CRANE_BIN)"; \
"$(CRANE_BIN)" version


Expand Down
1 change: 1 addition & 0 deletions k8s/django/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CHART_NAME := django
APP_ID ?= $(CHART_NAME)

TRACK ?= 5.0
SERVICE_NAME := services/b0af85ce-23df-43aa-9f54-b6e81eeb27d1.cloudpartnerservices.goog
UWSGI_EXPORTER_TRACK ?= 1.1
NGINX_TRACK ?= 1.25
EXPORTER_TAG ?= 0.11
Expand Down
5 changes: 2 additions & 3 deletions k8s/django/apptest/tester/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.5
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.8

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
gettext \
jq \
uuid-runtime \
wget \
curl \
&& rm -rf /var/lib/apt/lists/*

RUN wget -q -O /bin/kubectl \
RUN curl -L -o /bin/kubectl \
https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kubectl \
&& chmod 755 /bin/kubectl

Expand Down
1 change: 1 addition & 0 deletions k8s/drupal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CHART_NAME := drupal
APP_ID ?= $(CHART_NAME)

TRACK ?= 10.3
SERVICE_NAME := services/a046f271-479a-43ff-a12f-f10c6812120e.cloudpartnerservices.goog

MYSQL_EXPORTER_TAG ?= exporter
MARIADB_TAG ?= 11.1
Expand Down
5 changes: 2 additions & 3 deletions k8s/drupal/apptest/tester/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.5
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.8

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
gettext \
jq \
uuid-runtime \
wget \
mariadb-client \
curl \
&& rm -rf /var/lib/apt/lists/*

RUN wget -q -O /bin/kubectl \
RUN curl -L -o /bin/kubectl \
https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kubectl \
&& chmod 755 /bin/kubectl

Expand Down
4 changes: 2 additions & 2 deletions k8s/drupal/apptest/tester/tests/common/drupal-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ actions:
bodyText:
html:
title:
equals: 'Welcome! | Drupal_Site'
equals: 'Welcome! | C2D_Drupal_Site'

- name: Login URL should be 200 OK (service DNS)
httpTest:
Expand All @@ -24,4 +24,4 @@ actions:
bodyText:
html:
title:
equals: 'Log in | Drupal_Site'
equals: 'Log in | C2D_Drupal_Site'
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ actions:
bodyText:
html:
title:
equals: 'Welcome! | Drupal_Site'
equals: 'Welcome! | C2D_Drupal_Site'

- name: Site address should be 200 OK (external IP) (TLS)
bashTest:
script: curl -f -k "https://${EXTERNAL_IP}"
expect:
stdout:
contains: 'Welcome to Drupal_Site | Drupal_Site'
contains: 'Welcome to Drupal_Site | C2D_Drupal_Site'
exitCode:
equals: 0
2 changes: 1 addition & 1 deletion k8s/drupal/chart/drupal/templates/drupal-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ spec:
path: /
port: 80
initialDelaySeconds: 300
periodSeconds: 120
periodSeconds: 60
timeoutSeconds: 5
successThreshold: 2
failureThreshold: 10
Expand Down
2 changes: 1 addition & 1 deletion k8s/drupal/chart/drupal/templates/mariadb-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ stringData:
mysqld_exporter.sql: |
CREATE USER IF NOT EXISTS '{{ .Values.db.exporter.user }}'@'127.0.0.1' IDENTIFIED BY '{{ .Values.db.exporter.password }}' WITH MAX_USER_CONNECTIONS 3;
# https://dev.mysql.com/doc/refman/5.6/en/grant.html
GRANT PROCESS, REPLICATION CLIENT, SELECT ON *.* TO '{{ .Values.db.exporter.user }}'@'127.0.0.1';
GRANT PROCESS, REPLICATION CLIENT, SLAVE MONITOR, SELECT ON *.* TO '{{ .Values.db.exporter.user }}'@'127.0.0.1';
FLUSH PRIVILEGES;
data:
mysqld-exporter-pass: {{ .Values.db.exporter.password | b64enc | quote }}
4 changes: 2 additions & 2 deletions k8s/drupal/chart/drupal/templates/mariadb-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ spec:
httpGet:
path: /metrics
port: 9104
initialDelaySeconds: 240
initialDelaySeconds: 160
timeoutSeconds: 30
failureThreshold: 10
periodSeconds: 120
periodSeconds: 60
{{ if .Values.metrics.exporter.enabled }}
- name: prometheus-to-sd
image: {{ .Values.metrics.image }}
Expand Down
1 change: 1 addition & 0 deletions k8s/falco/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CHART_NAME := falco
APP_ID ?= $(CHART_NAME)

TRACK ?= 0.36
SERVICE_NAME := services/76e37ab7-1ffc-47ce-9e31-0b3791bb75b0.cloudpartnerservices.goog

EXPORTER_TAG ?= 0.7
METRICS_EXPORTER_TAG ?= v0.11.1-gke.1
Expand Down
5 changes: 2 additions & 3 deletions k8s/falco/apptest/tester/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.5
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.8

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl \
gettext \
python3 \
wget \
&& rm -rf /var/lib/apt/lists/*

RUN wget -q -O /bin/kubectl \
RUN curl -L -o /bin/kubectl \
https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kubectl \
&& chmod 755 /bin/kubectl

Expand Down
4 changes: 2 additions & 2 deletions k8s/falco/apptest/tester/tests/basic-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ actions:
bashTest:
script: |-
kubectl wait --for=jsonpath='{.status.numberReady}'=3 --timeout=120s --namespace $NAMESPACE daemonset "${APP_INSTANCE_NAME}-falco"
falcoPods=$(kubectl get pods -l app.kubernetes.io/component=falco -o jsonpath="{..metadata.name}")
falcoPods=$(kubectl get pods -n $NAMESPACE -l app.kubernetes.io/component=falco -o jsonpath="{..metadata.name}")
for podName in ${falcoPods}; do
kubectl exec ${podName} -c falco -- curl localhost:8765/healthz
kubectl exec ${podName} -c falco -- curl -s localhost:8765/healthz
if [ $? -ne 0 ]; then
exit 1
fi
Expand Down
1 change: 1 addition & 0 deletions k8s/gitea/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ APP_ID ?= $(CHART_NAME)
WAIT_FOR_READY_TIMEOUT ?= 100

TRACK ?= 1.22
SERVICE_NAME := services/174d8184-ad0d-4f01-8537-68c9110c4d38.cloudpartnerservices.goog
POSTGRESQL_TAG ?= latest
EXPORTER_TAG ?= latest
METRICS_EXPORTER_TAG ?= v0.11.1-gke.1
Expand Down
6 changes: 3 additions & 3 deletions k8s/gitea/apptest/tester/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.5
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.8

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
postgresql-client \
wget \
curl \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p /opt/kubectl/1.21 \
&& wget -q -O /opt/kubectl/1.21/kubectl \
&& curl -L -o /opt/kubectl/1.21/kubectl \
https://storage.googleapis.com/kubernetes-release/release/v1.21.6/bin/linux/amd64/kubectl \
&& chmod 755 /opt/kubectl/1.21/kubectl \
&& ln -s /opt/kubectl/1.21/kubectl /usr/bin/kubectl
Expand Down
1 change: 1 addition & 0 deletions k8s/influxdb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CHART_NAME := influxdb
APP_ID ?= $(CHART_NAME)

TRACK ?= 2.7
SERVICE_NAME := services/98477e57-9f15-425d-9e9c-f9318eea0d56.cloudpartnerservices.goog

METRICS_EXPORTER_TAG ?= v0.11.1-gke.1

Expand Down
5 changes: 2 additions & 3 deletions k8s/influxdb/apptest/tester/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.5
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.8

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
gettext \
jq \
uuid-runtime \
wget \
curl \
&& rm -rf /var/lib/apt/lists/*

RUN wget -q -O /bin/kubectl \
RUN curl -L -o /bin/kubectl \
https://storage.googleapis.com/kubernetes-release/release/v1.12.0/bin/linux/amd64/kubectl \
&& chmod 755 /bin/kubectl

Expand Down
1 change: 1 addition & 0 deletions k8s/joomla/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CHART_NAME ?= joomla
APP_ID ?= $(CHART_NAME)

TRACK ?= 4.4
SERVICE_NAME := services/012bd695-77ae-4119-a8d1-371a93102f64.cloudpartnerservices.goog

APACHE_EXPORTER_TAG ?= 0.13
METRICS_EXPORTER_TAG ?= v0.11.1-gke.1
Expand Down
5 changes: 2 additions & 3 deletions k8s/joomla/apptest/tester/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.5
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.8

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
gettext \
jq \
uuid-runtime \
wget \
mariadb-client \
curl \
&& rm -rf /var/lib/apt/lists/*

RUN wget -q -O /bin/kubectl \
RUN curl -L -o /bin/kubectl \
https://storage.googleapis.com/kubernetes-release/release/v1.24.5/bin/linux/amd64/kubectl \
&& chmod 755 /bin/kubectl

Expand Down
1 change: 1 addition & 0 deletions k8s/mariadb-galera/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ APP_ID ?= $(CHART_NAME)
VERIFY_WAIT_TIMEOUT = 1800

TRACK ?= 11.5
SERVICE_NAME := services/8afcaf9c-1b2d-47c1-93f0-588a78dccca9.cloudpartnerservices.goog
METRICS_EXPORTER_TAG ?= v0.5.1

SOURCE_REGISTRY ?= marketplace.gcr.io/google
Expand Down
2 changes: 1 addition & 1 deletion k8s/mariadb-galera/apptest/tester/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.5
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.8

RUN apt-get update && apt-get install -y --no-install-recommends \
mariadb-client \
Expand Down
1 change: 1 addition & 0 deletions k8s/mariadb/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ APP_ID ?= $(CHART_NAME)
VERIFY_WAIT_TIMEOUT = 1800

TRACK ?= 11.5
SERVICE_NAME := services/1b05c98f-d74b-4d67-a78c-16ea597cd191.cloudpartnerservices.goog
METRICS_EXPORTER_TAG ?= v0.5.1

SOURCE_REGISTRY ?= marketplace.gcr.io/google
Expand Down
2 changes: 1 addition & 1 deletion k8s/mariadb/apptest/tester/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.5
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.8

RUN apt-get update && apt-get install -y --no-install-recommends \
mariadb-client \
Expand Down
1 change: 1 addition & 0 deletions k8s/prometheus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CHART_NAME := prometheus
APP_ID ?= $(CHART_NAME)

TRACK ?= 2.54
SERVICE_NAME := services/057070e7-b352-4b46-bc03-fc8f141fce9a.cloudpartnerservices.goog
TRACK_ALERTMANAGER ?= 0.27
TRACK_KUBESTATEMETRICS ?= 2.13
TRACK_NODEEXPORTER ?= 1.8
Expand Down
5 changes: 2 additions & 3 deletions k8s/prometheus/apptest/tester/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.5
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.8

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
gettext \
jq \
uuid-runtime \
wget \
curl \
&& rm -rf /var/lib/apt/lists/*

RUN wget -q -O /bin/kubectl \
RUN curl -L -o /bin/kubectl \
https://storage.googleapis.com/kubernetes-release/release/v1.23.15/bin/linux/amd64/kubectl \
&& chmod 755 /bin/kubectl

Expand Down
1 change: 1 addition & 0 deletions k8s/solr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ WAIT_FOR_READY_TIMEOUT := 600

TRACK ?= 9.6
ZK_TAG ?= 3.8
SERVICE_NAME := services/effa00b5-9dfc-4626-aa25-85435f332575.cloudpartnerservices.goog

METRICS_EXPORTER_TAG ?= v0.11.1-gke.1

Expand Down
16 changes: 8 additions & 8 deletions k8s/solr/apptest/tester/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.5
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.8

RUN set -eu \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
gettext \
jq \
uuid-runtime \
wget \
curl
ca-certificates \
gettext \
jq \
uuid-runtime \
wget \
curl

RUN set -eu \
&& wget -q -O /bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.23.15/bin/linux/amd64/kubectl \
&& curl -L -o /bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.23.15/bin/linux/amd64/kubectl \
&& chmod 755 /bin/kubectl

COPY tests/solrCloud-test.yaml /tests/solrCloud-test.yaml
Expand Down
1 change: 1 addition & 0 deletions k8s/spark/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ APP_ID ?= $(CHART_NAME)

TRACK ?= 3.5
METRICS_EXPORTER_TAG ?= v0.11.1-gke.1
SERVICE_NAME := services/1372e838-1abc-4b08-aaf0-94d75cba452a.cloudpartnerservices.goog

SOURCE_REGISTRY ?= marketplace.gcr.io/google

Expand Down
8 changes: 4 additions & 4 deletions k8s/spark/apptest/tester/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2022 Google LLC
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,14 +12,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.5
FROM gcr.io/cloud-marketplace-tools/testrunner:0.1.8

RUN apt-get update && apt-get install -y --no-install-recommends \
curl wget dnsutils netcat jq \
ca-certificates curl dnsutils netcat-traditional jq \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir -p /opt/kubectl/1.21 \
&& wget -q -O /opt/kubectl/1.21/kubectl \
&& curl -L -o /opt/kubectl/1.21/kubectl \
https://storage.googleapis.com/kubernetes-release/release/v1.21.6/bin/linux/amd64/kubectl \
&& chmod 755 /opt/kubectl/1.21/kubectl \
&& ln -s /opt/kubectl/1.21/kubectl /usr/bin/kubectl
Expand Down

0 comments on commit b88a31c

Please sign in to comment.