Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Commit a17a211

Browse files
authored
Merge pull request #122 from paliarush/fixed-kubernetes-version
Elasticsearch and Heapster fixes
2 parents 61896d6 + 7a693be commit a17a211

File tree

7 files changed

+9
-22
lines changed

7 files changed

+9
-22
lines changed

etc/helm/requirements.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ dependencies:
1010
version: 5.5.0
1111
- name: elasticsearch
1212
repository: https://helm.elastic.co
13-
version: 6.5.0
13+
version: 6.8.8
1414
digest: sha256:d8cb388574e1db38759d9b1113cc4fc95ff550aeb024c5a449d711c2636cc66d
1515
generated: 2019-08-19T10:57:16.077076-05:00

etc/helm/requirements.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ dependencies:
1313
version: "5.5.0"
1414
- name: elasticsearch
1515
repository: "https://helm.elastic.co"
16-
appVersion: "6.7.1"
16+
appVersion: "6.5.0"
1717
version: "6.5.0"

etc/helm/values.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ rabbitmq:
9090
password: 123123q
9191

9292
elasticsearch:
93-
imageTag: "6.7.1"
94-
esMajorVersion: 6
95-
96-
replicas: 1
97-
minimumMasterNodes: 1
98-
9993
# Permit co-located instances for solitary minikube virtual machines.
10094
antiAffinity: "soft"
10195

init_project.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ if [[ ! $(isMinikubeRunning) -eq 1 ]]; then
9494
minikube start --kubernetes-version=v1.15.6 -v=0 --cpus=2 --memory=4096
9595
minikube config set kubernetes-version v1.15.6
9696
minikube addons enable ingress
97-
minikube addons enable heapster
98-
# TODO: Remove if not needed
99-
# minikube start --kubernetes-version=v1.15.6 -v=0 --cache-images --cpus=2 --memory=4096 2> >(logError) | {
100-
# while IFS= read -r line
101-
# do
102-
# filterDevboxOutput "${line}"
103-
# lastline="${line}"
104-
# done
105-
# filterDevboxOutput "${lastline}"
106-
# }
10797
fi
10898

10999
config_content="$(cat ${config_path})"

scripts/functions.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ function outputErrorsOnly()
9292
{
9393
errors="$(echo "${1}" | grep -iv "Connection to 127.0.0.1 closed." \
9494
| grep -iv "Cloning into .*\.\.\."\
95+
| grep -iv "Overwrite the existing configuration for session-save .*"\
9596
| grep -iv "Checking out .* done\."\
9697
)"
9798
if [[ -n "${errors}" ]]; then
@@ -104,6 +105,7 @@ function outputInfoOnly()
104105
{
105106
info="$(echo "${1}" | grep -iv "Connection to 127.0.0.1 closed." \
106107
| grep -i "Cloning into .*\.\.\."\
108+
| grep -i "Overwrite the existing configuration for session-save .*"\
107109
| grep -i "Checking out .* done\."\
108110
)"
109111
if [[ -n "${info}" ]]; then
@@ -149,6 +151,7 @@ function initLogFile()
149151
log_file="debug"
150152
fi
151153
echo "log/${log_file}.log" > "${log_file_path}"
154+
chmod a+w "${log_file_path}"
152155
rm -f "${devbox_dir}/log/${log_file}.log"
153156
touch "${devbox_dir}/log/${log_file}.log"
154157
chmod a+w "${devbox_dir}/log/${log_file}.log"

scripts/guest/m-reinstall

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ php ${install_cmd} 2> >(logError) > >(log)
105105
# php -d xdebug.remote_autostart=1 ${install_cmd} 2> >(logError) > >(log)
106106

107107
status "Configuring Redis for session and as cache backend"
108-
php "${DEVBOX_ROOT}/$(getContext)/bin/magento" setup:config:set --page-cache=redis --page-cache-redis-server=magento2-redis-master
109-
php "${DEVBOX_ROOT}/$(getContext)/bin/magento" setup:config:set --cache-backend=redis --cache-backend-redis-server=magento2-redis-master
110-
php "${DEVBOX_ROOT}/$(getContext)/bin/magento" setup:config:set --session-save=redis --session-save-redis-host=magento2-redis-master
108+
yes | php "${DEVBOX_ROOT}/$(getContext)/bin/magento" setup:config:set --page-cache=redis --page-cache-redis-server=magento2-redis-master
109+
yes | php "${DEVBOX_ROOT}/$(getContext)/bin/magento" setup:config:set --cache-backend=redis --cache-backend-redis-server=magento2-redis-master
110+
yes | php "${DEVBOX_ROOT}/$(getContext)/bin/magento" setup:config:set --session-save=redis --session-save-redis-host=magento2-redis-master
111111

112112
if [[ $? != 0 ]]; then
113113
error "Magento installation failed."

tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Current project contains functional tests for [Kubernetes DevBox for Magento 2 D
77
1. Make sure that your host meets requirements listed [here](https://github.com/magento/magento2-kubernetes-devbox#requirements)
88
1. Copy [configuration.sh.dist](include/configuration.sh.dist) to `include/configuration.sh` and make necessary changes
99
1. Copy [auth.json.dist](include/auth.json.dist) to `include/auth.json` and add valid keys. This step is required only for testing of Composer-based installations
10-
1. Run [testsuite.sh](testsuite.sh) in bash
10+
1. Run [NoCustomConfigBasicTest.sh](NoCustomConfigBasicTest.sh) or any other test in bash

0 commit comments

Comments
 (0)