Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just for diff view #14

Open
wants to merge 149 commits into
base: 20191022-b
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
421d44a
Correct git repo
JoshuaFox Nov 24, 2019
0da73c2
wrong dir name
JoshuaFox Nov 24, 2019
e2f90ea
small fixes
JoshuaFox Nov 24, 2019
683ca13
Upgrade version of our package to 1.10 and use newer ubb image
JoshuaFox Nov 25, 2019
b5a120c
Merge pull request #5 from RedisLabs/JoshuaFox-dirname-1
JoshuaFox Nov 26, 2019
98798b0
rbac.yaml.template is in manifest/ not scripts/
JoshuaFox Nov 26, 2019
48f1b70
Must apply rd.yaml
JoshuaFox Nov 26, 2019
68cf30c
Merge pull request #4 from RedisLabs/JoshuaFox-correct-git-repo-for-docs
JoshuaFox Nov 26, 2019
cd9478b
Merge branch 'master' into JoshuaFox-patch-1-1
JoshuaFox Nov 26, 2019
b590134
Merge pull request #6 from RedisLabs/JoshuaFox-patch-1-1
JoshuaFox Nov 26, 2019
3d7d079
Edit the Readme for content and style
JoshuaFox Nov 26, 2019
f4592bf
Fix redis image registry url
JoshuaFox Nov 26, 2019
7515cb9
version to 1.10 and 5.4.6-1183
JoshuaFox Nov 26, 2019
f1735dd
Merge branch 'master' into versions.1.10
JoshuaFox Nov 27, 2019
f9467b6
Merge pull request #9 from RedisLabs/versions.1.10
eranchetz Nov 27, 2019
0c292c8
adding config for Google Cloud Build
JoshuaFox Nov 28, 2019
3c5f321
fix docker-tagging in next-to-last step
JoshuaFox Nov 28, 2019
195c5a9
dynamic version tag
JoshuaFox Nov 28, 2019
25af882
cloudbuild that can take a variable
JoshuaFox Dec 1, 2019
df421c0
take operator version from tag name
JoshuaFox Dec 1, 2019
2619684
work with tags
JoshuaFox Dec 1, 2019
277d15a
cloudbuild.yaml
JoshuaFox Dec 1, 2019
5c79cf7
cloudbuild.yaml
JoshuaFox Dec 1, 2019
d106cf7
cloudbuild.yaml
JoshuaFox Dec 1, 2019
9e2bcc0
cloudbuild.yaml
JoshuaFox Dec 1, 2019
ac43a17
cloudbuild.yaml
JoshuaFox Dec 1, 2019
b375095
cloudbuild.yaml
JoshuaFox Dec 1, 2019
f116591
cloudbuild.yaml
JoshuaFox Dec 1, 2019
36a84c2
POD_NAME env
JoshuaFox Dec 8, 2019
1843824
V5.4.6-1186 of Operator; V1.11 of MP package; config uiService;typos
JoshuaFox Dec 12, 2019
37b6478
uiService
JoshuaFox Dec 12, 2019
cd6cf33
Merge pull request #10 from RedisLabs/v1186
JoshuaFox Dec 12, 2019
4cef9fc
switch version to 1.11
Dec 15, 2019
b3202ea
edit Readme significantly
JoshuaFox Dec 15, 2019
1627c6f
Fix INGRESS_AVAILABLE type
eranchetz Dec 22, 2019
a10cea5
fix typo in redis-ent-cluster yaml UI_SERVICE
Dec 30, 2019
d67d10d
TAG should be envsubst-ed
JoshuaFox Dec 30, 2019
1b7ecaa
order for envsubst
JoshuaFox Dec 31, 2019
90e6288
autoincrement version
JoshuaFox Dec 31, 2019
6c57047
Merge pull request #11 from RedisLabs/envsubst
eranchetz Jan 1, 2020
c878d10
Merge pull request #12 from RedisLabs/increment
eranchetz Jan 1, 2020
7d00c52
identify mismatched versions between files
JoshuaFox Jan 1, 2020
0006e3f
v.1.14
JoshuaFox Jan 1, 2020
111ab59
v 1.15
JoshuaFox Jan 13, 2020
1b8bc7b
v1.15
JoshuaFox Jan 13, 2020
0fbf42f
v1.15
JoshuaFox Jan 13, 2020
2e1fb47
v.1.15 envsubst
JoshuaFox Jan 13, 2020
8d5dd04
Update README.md
JoshuaFox Jan 19, 2020
93133d8
Update README.md
JoshuaFox Jan 19, 2020
7b71659
Helm
JoshuaFox Jan 19, 2020
d3e5102
Helm
JoshuaFox Jan 26, 2020
d49f0b4
Helm
JoshuaFox Jan 26, 2020
c0c77ac
Helm
JoshuaFox Jan 26, 2020
623ae2a
Helm
JoshuaFox Jan 26, 2020
3896f37
HELM
JoshuaFox Jan 26, 2020
0c00c9d
Helm
JoshuaFox Jan 27, 2020
1abbe54
Helm
JoshuaFox Jan 27, 2020
f532174
Helm
JoshuaFox Jan 27, 2020
9b94d94
Helm
JoshuaFox Jan 28, 2020
fc5d1b4
ubbagent; ingressAvailable
JoshuaFox Feb 2, 2020
caf41f4
ubbagent
JoshuaFox Feb 4, 2020
993950c
ubbagent
JoshuaFox Feb 4, 2020
85fdbc2
GKE marketplace mostly works
sam-andaluri Mar 23, 2021
ffd672c
fix readme
sam-andaluri Mar 23, 2021
71e91fe
fix markdown in readme
sam-andaluri Mar 23, 2021
8960a4e
promote to staging
sam-andaluri Mar 29, 2021
20b8161
change registry to gcr.io
sam-andaluri Mar 30, 2021
0ad7e01
fix app icon
sam-andaluri Apr 1, 2021
e8b216e
retagging images to make them GCP partner portal friendly
sam-andaluri Apr 2, 2021
fe81e5b
adjustments to allow publish minimal containers; usage meter version;…
alexmilowski Apr 6, 2021
2963cd3
fix for preserving existing CR
alexmilowski Apr 6, 2021
16569ef
Merge pull request #16 from RedisLabs/publish-adjustments
sam-andaluri Apr 6, 2021
0b8d150
added docs for usage meter
alexmilowski Apr 7, 2021
e05b822
added metric name; fixed port
alexmilowski Apr 7, 2021
6d7449d
Merge pull request #17 from RedisLabs/usage-meter
sam-andaluri Apr 7, 2021
63b3191
added logging; flushed errors
alexmilowski Apr 7, 2021
be7ade7
adjustments to report metric directly; shortened aggregation time
alexmilowski Apr 7, 2021
1332399
enabled database controller; fixed ubbagent endpoint; changed to inte…
alexmilowski Apr 7, 2021
a6d8164
Merge pull request #18 from RedisLabs/usage-meter
sam-andaluri Apr 8, 2021
899bfbb
expose storage class as an optional param
sam-andaluri Apr 8, 2021
f1e0b2e
added time period to allow scaled reporting (e.g., fractional shard h…
alexmilowski Apr 8, 2021
b5db9f4
changed to shard hour fration pricing metric; changed reporting time …
alexmilowski Apr 8, 2021
16b21bc
changed to use shard hour metric
alexmilowski Apr 8, 2021
8e95f88
Merge pull request #19 from RedisLabs/shard-pricing
sam-andaluri Apr 8, 2021
076ae34
Fix to use the primary image for the operator; removed separate push …
alexmilowski Apr 9, 2021
c0c4985
Merge pull request #20 from RedisLabs/operator-image-fix
sam-andaluri Apr 9, 2021
45a8cff
ugrade scripts
alexmilowski Apr 13, 2021
281163b
fix service account. cleanup makefile
sam-andaluri Apr 14, 2021
f5cbb31
Merge pull request #21 from RedisLabs/ugrade-scripts
sam-andaluri Apr 14, 2021
c5733a6
fixed repo
alexmilowski Apr 14, 2021
7a14821
add test case. fix app deletion
sam-andaluri Apr 15, 2021
ee30d50
update to new release
sam-andaluri Jul 17, 2021
8f9a62a
fix values to get template to work without errors
sam-andaluri Jul 20, 2021
e48b5e8
cleanup manual install instructions
sam-andaluri Jul 29, 2021
d5995e6
fix a typo
sam-andaluri Jul 29, 2021
31e2306
fix markdown
sam-andaluri Jul 29, 2021
8201540
Tweak readme fix typos and cleanup
sam-andaluri Aug 5, 2021
2595d10
fix makefile to merge to master
sam-andaluri Aug 6, 2021
54bc083
Fix verification
sam-andaluri Oct 6, 2021
27a84fb
fix storage class
sam-andaluri Oct 8, 2021
1e391a2
CI integration
Jan 31, 2022
a06c856
Merge pull request #22 from RedisLabs/nick/dev-deploy
Feb 9, 2022
1c23291
add support to control the operator repo from Docker Hub to pull from…
alon-zada Feb 14, 2022
fca570c
change deletion flow (#24)
Mar 1, 2022
845180f
update for compatibility with operator 6.2.10-4
Mar 1, 2022
d959749
update latest operator build
Mar 21, 2022
86c96c6
move crds from configmap to container
Mar 21, 2022
5650d9a
fix syntax/indent and operation order
Mar 22, 2022
be9517e
RBAC for job
Mar 22, 2022
f04ef7c
update webhook name
Mar 22, 2022
e772f11
fix admission
Mar 22, 2022
97e0946
adding wait for REDB crd to be created in init container
randv1r Mar 30, 2022
067726e
updating clusterRole in README.md
randv1r Apr 3, 2022
4f7f0bb
Merge pull request #25 from RedisLabs/nick/update-version-71830
randv1r Apr 3, 2022
853acd8
RED-65561 - set repo in makefile to production repo
randv1r Apr 6, 2022
b5a091c
Merge pull request #26 from RedisLabs/change-makefile-repo-to-product…
randv1r Apr 6, 2022
5136f02
RED-65561 - adding permissions for deploy service account job
randv1r Apr 10, 2022
fb3c8c6
Merge pull request #27 from RedisLabs/add-permissions-to-deployjobser…
randv1r Apr 11, 2022
cff8aa2
RED-78945 - Fix usage meter build and deployer image semver versionin…
alon-zada Jun 21, 2022
36cfff4
changes for 6.2.10-45
yuvallevy2 Jun 30, 2022
191b760
Merge pull request #29 from RedisLabs/yuvallevy2-lucy
yuvallevy2 Jul 4, 2022
81e2a29
usage-meter - Update openssl to resolve vulnerability
yuvallevy2 Jul 4, 2022
4dea38d
Merge pull request #30 from RedisLabs/yuvallevy2-fix_openssl_vuln
yuvallevy2 Jul 4, 2022
74e9261
6.2.12-1 promotion
yuvallevy2 Sep 20, 2022
fdc8ca6
Merge pull request #31 from RedisLabs/yuvallevy2-millenniumfalcon
yuvallevy2 Sep 22, 2022
84352eb
promote 6.2.18-3
heinrich-redislabs Nov 14, 2022
32f2bbc
Revert "promote 6.2.18-3"
heinrich-redislabs Nov 14, 2022
e884500
Promote 6.2.18-3
heinrich-redislabs Nov 14, 2022
e1aa351
Merge pull request #32 from RedisLabs/heinrich-redislabs-promote-nept…
heinrich-redislabs Nov 14, 2022
7805207
RED-88872 - operator yaml diff (#33)
almoggue Nov 29, 2022
44d6f93
Release version 6.4.2-4 (#35)
alon-zada Mar 19, 2023
e08adcb
Release version 6.4.2-5
Apr 30, 2023
d360526
Merge pull request #36 from RedisLabs/6.4.2-5
randv1r May 3, 2023
d2b0dbd
Update README.md
bascar May 5, 2023
67e09b9
Merge pull request #37 from RedisLabs/bascar-patch-1
bascar May 8, 2023
653fa95
7.2.4 2 (#39)
alon-zada Aug 28, 2023
fea491d
Release version 7.2.4-12
Dec 21, 2023
1aa0108
update tags
Dec 21, 2023
029db64
Merge pull request #40 from RedisLabs/7.2.4-12
randv1r Dec 21, 2023
fa3fb17
Release version 7.4.2-2 (#41)
alon-zada Feb 18, 2024
23538c2
Release version 7.4.2-12
May 1, 2024
6649dae
Update version tags
zcahana May 1, 2024
07338ef
Update REAADB CRD
zcahana May 1, 2024
8ecdc1a
Merge pull request #42 from RedisLabs/7.4.2-12
zcahana May 1, 2024
22310ac
Release version 7.4.6-2
Jul 30, 2024
03d88c6
Update version tags
zcahana Jul 30, 2024
129e4a7
Merge pull request #43 from RedisLabs/7.4.6-2
zcahana Jul 31, 2024
2661b63
Release version 7.8.2-6
Dec 3, 2024
98fe899
Merge pull request #44 from RedisLabs/7.8.2-6
randv1r Dec 4, 2024
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.build/
156 changes: 156 additions & 0 deletions BUILD.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
# Overview

This repo is for building and deploying [Redis Enterprise](https://github.com/RedisLabs/redis-enterprise-k8s-docs) for GKE Market Place.

## Design

### Solution Information

Redis-Enterprise cluster is deployed within a Kubernetes StatefulSet.

The deployment creates two services:

- A client-facing one, designed to be used for client connections to the Redis-Enterprise
cluster with port forwarding or using a LoadBalancer,
- Service discovery: a headless service for connections between
the Redis-Enterprise nodes.

# Build instructions

## Quick install with Google Cloud Marketplace

Get up and running with a few clicks! Install this Redis Enterprise app to a
Google Kubernetes Engine cluster using Google Cloud Marketplace. You can do this from the Applications tab in the GKE page in the Cloud Console.

### Prerequisites

#### Set up command-line tools

You'll need the following tools in your development environment:

- [gcloud](https://cloud.google.com/sdk/gcloud/)
- [kubectl](https://kubernetes.io/docs/reference/kubectl/overview/)
- [docker](https://docs.docker.com/install/)
- [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
- [marketplace tools](https://github.com/GoogleCloudPlatform/marketplace-k8s-app-tools/blob/master/docs/tool-prerequisites.md)

Configure `gcloud` as a Docker credential helper:

```shell
gcloud auth login
gcloud auth configure-docker
```

#### Permissions

User who builds and deploys the solution would need "Kubernetes Engine Admin" and "Editor" permissions.

#### Create a Google Kubernetes Engine cluster

Create a new cluster from the command line. The command is idempotent so runs after the first are not needed, but do no harm.

```shell
export CLUSTER=redis-cluster
export ZONE=us-west1-a
gcloud container clusters create "$CLUSTER" --zone "$ZONE"
```

Configure `kubectl` to connect to the new cluster. The following is optional as by default cluster create adds credentials to local kube config.

```shell
gcloud container clusters get-credentials "$CLUSTER" --zone "$ZONE"
```
Create a namespace where redis cluster and database should be created

```shell
kubectl create namespace redis
```

#### Clone the repos


```shell
git clone https://github.com/GoogleCloudPlatform/click-to-deploy
cd k8s
git clone https://github.com/RedisLabs/gkemarketplace
```

Optional: For reference, you can get RedisLabs Enterprise K8s Operator code (i.e., unrelated to Google MP)

```shell
git clone https://github.com/RedisLabs/redis-enterprise-k8s-docs.git
```

Optional: For reference, you can get MP K8s tools, examples, and instructions

```shell
git clone https://github.com/GoogleCloudPlatform/marketplace-k8s-app-tools
```

#### Building

```shell
cd gkemarketplace
make clean
make app/build
```

#### Deploying to GKE

An Application resource is an addition to the Kubernetes metamodel: A collection of individual Kubernetes components, such as Services, Deployments, etc, that you can manage as a group.

The Application resource is defined by the [Kubernetes SIG-apps](https://github.com/kubernetes/community/tree/master/sig-apps) community. The source code can be found on
[github.com/kubernetes-sigs/application](https://github.com/kubernetes-sigs/application).


```shell
make crd/install
mpdev install --deployer=<deployer-repo> --parameters='{"name": "redis-enterprise-operator", "namespace": "redis", "operator.nodeCpu": 5000, "operator.nodeMem": 16, "reportingSecret": "gs://cloud-marketplace-tools/reporting_secrets/fake_reporting_secret.yaml"}
```

#### View the app in the Google Cloud Platform Console

Get the Google Cloud Console URL for your app, then open this URL in your browser:

```shell
echo "https://console.cloud.google.com/kubernetes/application/${ZONE}/${CLUSTER}/${NAMESPACE}/${APP_INSTANCE_NAME}"
```

#### Get the status of the cluster

By default, the application does not have an external IP address. Use `kubectl port-forward` to access the dashboard on the master
node at `localhost`.

```
kubectl port-forward redis-enterprise-cluster-0 8443

```

#### Getting the Admin Password

See [instructions here](https://docs.redislabs.com/latest/rs/faqs/) under "How to retrieve the username/password for a Redis Enterprise Cluster?"

In summary, `kubectl get secret redis-enterprise -o yaml|grep password|cut -d':' -f 2|base64 --decode` should get you the password, and you should already know the username (default `[email protected]`)

#### Access the Redis-Enterprise service externally

```
kubectl get services -n $NAMESPACE
```

**NOTE:**

1. It might take some time for the external IP to be provisioned.
2. This works out-of-the-box in GKE but not in Anthos, where special measures are needed to configure the Load Balancer.


# Uninstall the Application

## Using the Google Cloud Platform Console

1. In the GCP Console, open [Kubernetes Applications](https://console.cloud.google.com/kubernetes/application).

1. From the list of applications, click **Redis-Enterprise**.

1. On the Application Details page, click **Delete**.

146 changes: 103 additions & 43 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,65 +1,125 @@
include helper/app.Makefile
include helper/crd.Makefile
include helper/gcloud.Makefile
include helper/var.Makefile


TAG ?= 1.9
REGISTRY ?= gcr.io/proven-reality-226706
METRICS_EXPORTER_TAG ?= v0.7.1

$(info ---- TAG = $(TAG))

APP_DEPLOYER_IMAGE ?= $(REGISTRY)/redislabs/deployer:$(TAG)
NAME ?= redislabs-1

ifdef METRICS_EXPORTER_ENABLED
METRICS_EXPORTER_ENABLED_FIELD = , "metrics.enabled": "$(METRICS_EXPORTER_ENABLED)"
endif
# app.Makefile provides the main targets for installing the application.
# It requires several APP_* variables defined as followed.
include ../app.Makefile
# crd.Makefile provides targets to install Application CRD.
include ../crd.Makefile
# Production repo
#REGISTRY ?= marketplace.gcr.io/google/redis-enterprise-operator
# Artifact repo
#REGISTRY := us-central1-docker.pkg.dev/proven-reality-226706/redis-market-place
# the repo the publish copies from?
REGISTRY := gcr.io/proven-reality-226706/redislabs
# CI registry
# REGISTRY ?= gcr.io/redislabs-k8s-dev-238506/gkemp-redis-ci
# gcloud.Makefile provides default values for REGISTRY and NAMESPACE derived from local
# gcloud and kubectl environments.
include ../gcloud.Makefile
include ../var.Makefile

$(info ---- REGISTRY = $(REGISTRY))

CHART_NAME := redis-operator
$(info ---- CHART_NAME = $(CHART_NAME))

REDIS_TAG ?= 7.8.2-34
$(info ---- REDIS_TAG = $(REDIS_TAG))

OPERATOR_TAG ?= 7.8.2-6
$(info ---- OPERATOR_TAG = $(OPERATOR_TAG))

# The repo to pull the operator image from Docker Hub registry.
OPERATOR_REPO ?= operator
$(info ---- OPERATOR_REPO = $(OPERATOR_REPO))

# Deployer tag is used for displaying versions in Producer Portal.
# Producer Portal requires a minor version tag, and it follow the semver.org officially recommended regex: (/^(0|[1-9]\d*)\.(0|[1-9]\d*)$
# please view: https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
# the operator tag is converted to the <major ver>.<minorver without dots><build number>
# i.e.: 6.2.10-34 is converted to 6.2.1034.
# This can also have a different patch number from the OPERATOR_TAG to indicate
# a marketplace-only change
DEPLOYER_TAG ?= 6.021001
$(info ---- DEPLOYER_TAG = $(DEPLOYER_TAG))

# Tag the deployer image with modified version.
APP_DEPLOYER_IMAGE := $(REGISTRY)/deployer:$(DEPLOYER_TAG)

NAME ?= redis-enterprise-operator-ci
NAMESPACE ?= redis

APP_PARAMETERS ?= { \
"APP_INSTANCE_NAME": "$(NAME)", \
"NAMESPACE": "$(NAMESPACE)", \
"REPORTING_SECRET": "test-value" \
$(METRICS_EXPORTER_ENABLED_FIELD) \
"NAMESPACE": "$(NAMESPACE)" \
}

TESTER_IMAGE ?= $(REGISTRY)/redislabs/tester:$(TAG)
TESTER_IMAGE ?= $(REGISTRY)/tester:$(OPERATOR_TAG)

.PHONY: dev/install
dev/install: crd/install | .build/app/dev
.build/app/dev install \
--deployer='$(APP_DEPLOYER_IMAGE)' --parameters='{"name": "redis-enterprise-operator", "namespace": "$(NAMESPACE)", "operator.nodeCpu": 5000, "operator.nodeMem": 16, "reportingSecret": "gs://cloud-marketplace-tools/reporting_secrets/fake_reporting_secret.yaml"}' | tee install.log

app/build:: .build/redislabs/deployer \
.build/redislabs/redislabs \

app/build:: .build/redis-enterprise-operator/deployer \
.build/redis-enterprise-operator/primary \
.build/redis-enterprise-operator/usage-meter \
.build/redis-enterprise-operator/tester

.build/redislabs: | .build
mkdir -p "$@"

.build/redis-enterprise-operator: | .build
mkdir -p "$@"

.build/redislabs/deployer: deployer/* \
schema.yaml \
.build/var/APP_DEPLOYER_IMAGE \
.build/var/MARKETPLACE_TOOLS_TAG \
.build/var/REGISTRY \
.build/var/TAG \
| .build/redislabs
.build/redis-enterprise-operator/deployer: deployer/* \
chart/**/* \
schema.yaml \
.build/var/DEPLOYER_TAG \
.build/var/APP_DEPLOYER_IMAGE \
.build/var/MARKETPLACE_TOOLS_TAG \
.build/var/REGISTRY \
.build/var/OPERATOR_TAG \
.build/var/CHART_NAME \
| .build/redis-enterprise-operator
$(call print_target, $@)
docker build \
--build-arg REGISTRY="$(REGISTRY)/redislabs" \
--build-arg TAG="$(TAG)" \
--build-arg REGISTRY="$(REGISTRY)" \
--build-arg TAG="$(OPERATOR_TAG)" \
--build-arg CHART_NAME="$(CHART_NAME)" \
--build-arg MARKETPLACE_TOOLS_TAG="$(MARKETPLACE_TOOLS_TAG)" \
--tag "$(APP_DEPLOYER_IMAGE)" \
-f deployer/Dockerfile \
.
docker push "$(APP_DEPLOYER_IMAGE)"
@touch "$@"


.build/redislabs/redislabs: .build/var/REGISTRY \
.build/var/TAG \
| .build/redislabs
docker pull redislabs/operator:498_f987b08
docker tag redislabs/operator:498_f987b08 \
"$(REGISTRY)/redislabs:$(TAG)"
docker push "$(REGISTRY)/redislabs:$(TAG)"
# Operator image is the primary image for Redis Enterprise.
# Label the primary image with the same tag as deployer image.
# From the partner portal, primary image is queried using the same tag
# as deployer image. When pulling the image from docker hub use
# the redis native tag and push that image as primary image with deployer tag.
.build/redis-enterprise-operator/primary: .build/var/REGISTRY \
.build/var/OPERATOR_TAG \
.build/var/DEPLOYER_TAG \
| .build/redis-enterprise-operator
$(call print_target, $@)
docker pull redislabs/$(OPERATOR_REPO):$(OPERATOR_TAG)
docker tag redislabs/$(OPERATOR_REPO):$(OPERATOR_TAG) "$(REGISTRY):$(OPERATOR_TAG)"
docker push "$(REGISTRY):$(OPERATOR_TAG)"
@touch "$@"

.build/redis-enterprise-operator/usage-meter: usage-meter/* \
.build/var/REGISTRY \
.build/var/OPERATOR_TAG \
| .build/redis-enterprise-operator
$(call print_target, $@)
cd usage-meter \
&& docker build --tag "$(REGISTRY)/usagemeter:$(OPERATOR_TAG)" .
docker push "$(REGISTRY)/usagemeter:$(OPERATOR_TAG)"
@touch "$@"

.build/redis-enterprise-operator/tester: apptest/**/* \
| .build/redis-enterprise-operator
$(call print_target, $@)
cd apptest/tester \
&& docker build --tag "$(TESTER_IMAGE)" .
docker push "$(TESTER_IMAGE)"
@touch "$@"
Loading