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

add variable to control ssh portal and nats #631

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
51 changes: 28 additions & 23 deletions .github/workflows/test-suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,29 @@ jobs:
strategy:
fail-fast: false
matrix:
test:
- active-standby-kubernetes
- api
- deploytarget
- features-kubernetes
- features-kubernetes-2
- features-variables
- services
- tasks
test: [
{ test: "active-standby-kubernetes", sshportal: false },
{ test: "api", sshportal: false },
{ test: "deploytarget", sshportal: false },
{ test: "features-kubernetes", sshportal: true },
{ test: "features-kubernetes-2", sshportal: false },
{ test: "features-variables", sshportal: false },
{ test: "services", sshportal: false },
{ test: "tasks", sshportal: false }
]
## Re-enable any of these tests in your branch for specific testing
## - bitbucket
## - bulk-deployment
## - drush
## - generic
## - github
## - gitlab
## - image-cache
## - nginx
## - node
## - python
## - ssh-legacy
## - workflows
## { test: "bitbucket", sshportal: false },
## { test: "bulk-deployment", sshportal: false },
## { test: "drush", sshportal: true },
## { test: "generic", sshportal: false },
## { test: "github", sshportal: false },
## { test: "gitlab", sshportal: false },
## { test: "image-cache", sshportal: false },
## { test: "nginx", sshportal: false },
## { test: "node", sshportal: false },
## { test: "python", sshportal: false },
## { test: "ssh-legacy", sshportal: false },
## { test: "workflows", sshportal: false },

steps:
# Continue after getting a shell via: `touch continue`
Expand Down Expand Up @@ -119,12 +120,16 @@ jobs:
sudo cp /tmp/kubens /usr/local/bin/kubens
sudo ln -s $(which kubectl) /usr/local/bin/kc

- name: Set SSH Portal environment variable
run: |
echo "ENABLE_SSH_PORTAL=${{ matrix.test.sshportal }}" >> $GITHUB_ENV

- name: Helm-install the test fixtures and fill lagoon-test/ci/linter-values.yaml
if: |
(steps.list-changed.outputs.changed == 'true') ||
(contains(github.event.pull_request.labels.*.name, 'needs-testing'))
# run: make -j8 -O fill-test-ci-values TESTS=[${{ matrix.test }}] IMAGE_REGISTRY=testlagoon IMAGE_TAG=main OVERRIDE_BUILD_DEPLOY_DIND_IMAGE=uselagoon/build-deploy-image:main OVERRIDE_ACTIVE_STANDBY_TASK_IMAGE=testlagoon/task-activestandby:main
run: make -j8 -O fill-test-ci-values TESTS=[${{ matrix.test }}]
# run: make -j8 -O fill-test-ci-values TESTS=[${{ matrix.test.test }}] IMAGE_REGISTRY=testlagoon IMAGE_TAG=main OVERRIDE_BUILD_DEPLOY_DIND_IMAGE=uselagoon/build-deploy-image:main OVERRIDE_ACTIVE_STANDBY_TASK_IMAGE=testlagoon/task-activestandby:main
run: make -j8 -O fill-test-ci-values TESTS=[${{ matrix.test.test }}]

- name: Free up some disk space
if: |
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ install-lagoon-core: install-minio
$$([ $(OVERRIDE_BUILD_DEPLOY_DIND_IMAGE) ] && echo '--set buildDeployImage.default.image=$(OVERRIDE_BUILD_DEPLOY_DIND_IMAGE)') \
$$([ $(DISABLE_CORE_HARBOR) ] && echo '--set api.additionalEnvs.DISABLE_CORE_HARBOR=$(DISABLE_CORE_HARBOR)') \
$$([ $(OPENSEARCH_INTEGRATION_ENABLED) ] && echo '--set api.additionalEnvs.OPENSEARCH_INTEGRATION_ENABLED=$(OPENSEARCH_INTEGRATION_ENABLED)') \
$$([ $(ENABLE_SSH_PORTAL) ] && echo '--set sshPortalAPI.enabled=$(ENABLE_SSH_PORTAL)') \
$$([ $(ENABLE_SSH_PORTAL) ] && echo '--set nats.enabled=$(ENABLE_SSH_PORTAL)') \
--set "keycloakFrontEndURL=http://lagoon-keycloak.$$($(KUBECTL) get nodes -o jsonpath='{.items[0].status.addresses[0].address}').nip.io:32080" \
--set "lagoonAPIURL=http://lagoon-api.$$($(KUBECTL) get nodes -o jsonpath='{.items[0].status.addresses[0].address}').nip.io:32080/graphql" \
--set actionsHandler.image.repository=$(IMAGE_REGISTRY)/actions-handler \
Expand Down Expand Up @@ -233,6 +235,8 @@ install-lagoon-remote: install-lagoon-build-deploy install-lagoon-core install-m
--wait \
--timeout $(TIMEOUT) \
--values ./charts/lagoon-remote/ci/linter-values.yaml \
$$([ $(ENABLE_SSH_PORTAL) ] && echo '--set sshPortal.enabled=$(ENABLE_SSH_PORTAL)') \
$$([ $(ENABLE_SSH_PORTAL) ] && echo '--set nats.enabled=$(ENABLE_SSH_PORTAL)') \
--set "lagoon-build-deploy.enabled=false" \
--set "dockerHost.registry=registry.$$($(KUBECTL) get nodes -o jsonpath='{.items[0].status.addresses[0].address}').nip.io:32080" \
--set "dbaas-operator.mariadbProviders.development.environment=development" \
Expand Down
Loading