This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
metadata.sh
100 lines (76 loc) · 5.61 KB
/
metadata.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#!/usr/bin/env bash
# This script contains metadata that is either used in other scripts or expanded
# into templates via `tools/compile_templates.sh`.
# "Shadowing" these two environment variables so that they don't affect
# similarly named environment variables in other scripts loading this script.
_script_directory="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
_project_directory="$(realpath -L "${_script_directory}")"
################################################################################
################################# Operator #####################################
################################################################################
# https://github.com/mesosphere/kudo-cassandra-operator
export PROJECT_NAME="kudo-cassandra-operator"
export OPERATOR_NAME="cassandra"
# More details about KUDO Versioning:
# https://github.com/kudobuilder/kudo/pull/1028
# NOTE: Keep the version in tests in sync, see https://github.com/mesosphere/kudo-cassandra-operator/issues/136
export OPERATOR_VERSION="1.0.3"
# This should be an empty string on stable branches and "-SNAPSHOT" on
# non-stable branches.
export POSSIBLE_SNAPSHOT_SUFFIX=""
export OPERATOR_DIRECTORY="${_project_directory}/operator"
export VENDOR_DIRECTORY="${_project_directory}/shared/vendor"
################################################################################
############################### Dependencies ###################################
################################################################################
# http://www.apache.org/dyn/closer.lua/cassandra/3.11.6
# https://hub.docker.com/_/cassandra
# https://github.com/docker-library/cassandra/blob/master/3.11/Dockerfile
# NOTE: Keep the version in tests in sync, see https://github.com/mesosphere/kudo-cassandra-operator/issues/136
export CASSANDRA_VERSION="3.11.7"
# https://github.com/kudobuilder/kudo/releases/tag/vx.y.z
export KUDO_VERSION="0.17.4"
export KUBERNETES_VERSION="1.16.0"
export JOLOKIA_VERSION="1.6.2"
export CASSANDRA_EXPORTER_DOCKER_IMAGE="criteord/cassandra_exporter"
export CASSANDRA_EXPORTER_VERSION="2.3.4"
# https://github.com/thelastpickle/cassandra-medusa/releases
export MEDUSA_BACKUP_VERSION="0.6.0"
export RECOVERY_CONTROLLER_VERSION="0.0.2"
################################################################################
############################## Docker images ###################################
################################################################################
export CASSANDRA_DOCKER_IMAGE_FROM="cassandra:${CASSANDRA_VERSION}"
export CASSANDRA_DOCKER_IMAGE_NAMESPACE="mesosphere"
export CASSANDRA_DOCKER_IMAGE_NAME="${OPERATOR_NAME}"
export CASSANDRA_DOCKER_IMAGE_TAG="${CASSANDRA_VERSION}-${OPERATOR_VERSION}${POSSIBLE_SNAPSHOT_SUFFIX}${IMAGE_DISAMBIGUATION_SUFFIX:-}"
export CASSANDRA_DOCKER_IMAGE="${CASSANDRA_DOCKER_IMAGE_NAMESPACE}/${CASSANDRA_DOCKER_IMAGE_NAME}:${CASSANDRA_DOCKER_IMAGE_TAG}"
export PROMETHEUS_EXPORTER_DOCKER_IMAGE_FROM="${CASSANDRA_EXPORTER_DOCKER_IMAGE}:${CASSANDRA_EXPORTER_VERSION}"
export PROMETHEUS_EXPORTER_DOCKER_IMAGE_NAMESPACE="mesosphere"
export PROMETHEUS_EXPORTER_DOCKER_IMAGE_NAME="cassandra-prometheus-exporter"
export PROMETHEUS_EXPORTER_DOCKER_IMAGE_TAG="${CASSANDRA_EXPORTER_VERSION}-${OPERATOR_VERSION}${POSSIBLE_SNAPSHOT_SUFFIX}${IMAGE_DISAMBIGUATION_SUFFIX:-}"
export PROMETHEUS_EXPORTER_DOCKER_IMAGE="${PROMETHEUS_EXPORTER_DOCKER_IMAGE_NAMESPACE}/${PROMETHEUS_EXPORTER_DOCKER_IMAGE_NAME}:${PROMETHEUS_EXPORTER_DOCKER_IMAGE_TAG}"
export MEDUSA_BACKUP_DOCKER_IMAGE_FROM="cassandra:${CASSANDRA_VERSION}"
export MEDUSA_BACKUP_DOCKER_IMAGE_NAMESPACE="mesosphere"
export MEDUSA_BACKUP_DOCKER_IMAGE_NAME="kudo-cassandra-medusa"
export MEDUSA_BACKUP_DOCKER_IMAGE_TAG="${MEDUSA_BACKUP_VERSION}-${OPERATOR_VERSION}${POSSIBLE_SNAPSHOT_SUFFIX}${IMAGE_DISAMBIGUATION_SUFFIX:-}"
export MEDUSA_BACKUP_DOCKER_IMAGE="${MEDUSA_BACKUP_DOCKER_IMAGE_NAMESPACE}/${MEDUSA_BACKUP_DOCKER_IMAGE_NAME}:${MEDUSA_BACKUP_DOCKER_IMAGE_TAG}"
export RECOVERY_CONTROLLER_DOCKER_IMAGE_NAMESPACE="mesosphere"
export RECOVERY_CONTROLLER_DOCKER_IMAGE_NAME="kudo-cassandra-recovery"
export RECOVERY_CONTROLLER_DOCKER_IMAGE_TAG="${RECOVERY_CONTROLLER_VERSION}-${OPERATOR_VERSION}${POSSIBLE_SNAPSHOT_SUFFIX}${IMAGE_DISAMBIGUATION_SUFFIX:-}"
export RECOVERY_CONTROLLER_DOCKER_IMAGE="${RECOVERY_CONTROLLER_DOCKER_IMAGE_NAMESPACE}/${RECOVERY_CONTROLLER_DOCKER_IMAGE_NAME}:${RECOVERY_CONTROLLER_DOCKER_IMAGE_TAG}"
################################################################################
################################# Testing ######################################
################################################################################
export INTEGRATION_TESTS_DOCKER_IMAGE_FROM="golang:1.13.1-stretch"
export INTEGRATION_TESTS_DOCKER_IMAGE_NAMESPACE="mesosphere"
export INTEGRATION_TESTS_DOCKER_IMAGE_NAME="kudo-cassandra-tests"
export INTEGRATION_TESTS_DOCKER_IMAGE_TAG="latest${IMAGE_DISAMBIGUATION_SUFFIX:-}"
export INTEGRATION_TESTS_DOCKER_IMAGE="${INTEGRATION_TESTS_DOCKER_IMAGE_NAMESPACE}/${INTEGRATION_TESTS_DOCKER_IMAGE_NAME}:${INTEGRATION_TESTS_DOCKER_IMAGE_TAG}"
################################################################################
############################# Data Services ####################################
################################################################################
# DS_KUDO_VERSION is used by the shared data-services-kudo tooling.
# DS_KUDO_VERSION *may* be set by TeamCity Jobs if a fixed KUDO version is preferred for the test execution
# If not DS_KUDO_VERSION is set, we use and install the required KUDO version from the operator
export DS_KUDO_VERSION="${DS_KUDO_VERSION:-v${KUDO_VERSION}}"