-
Notifications
You must be signed in to change notification settings - Fork 13
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
Deploy fleet-manager from template in e2e tests #1659
Conversation
239c283
to
4073e7b
Compare
b5a5c14
to
1cfb983
Compare
1cfb983
to
1d00af4
Compare
@@ -201,6 +199,6 @@ port-forwarding stop db 5432 || true | |||
port-forwarding stop fleet-manager 8000 || true | |||
|
|||
log "Killing oc processes forcefully" | |||
pkill -9 oc || true | |||
pkill -9 '^oc$' || true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This expects regexp and kills all processes with the substring "oc" in the name. It drives my laptop crazy
@@ -679,15 +683,14 @@ deploy/project: | |||
|
|||
# deploy the postgres database required by the service to an OpenShift cluster | |||
deploy/db: | |||
oc process -f ./templates/db-template.yml | oc apply -f - -n $(NAMESPACE) | |||
oc process -f ./templates/db-template.yml --local | oc apply -f - -n $(NAMESPACE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add --local
here and below to be able to render templates against *KS clusters
@@ -18,14 +18,14 @@ | |||
# cluster_dns: apps.example.com #Valid cluster DNS. This will be used to build central host url and to communicate with standalone clusters. Required when "provider_type" is "standalone" | |||
# supported_instance_type: "eval" # could be "eval", "standard" or both i.e "standard,eval" or "eval,standard". Defaults to "standard,eval" if not set | |||
clusters: | |||
- name: rancher-desktop | |||
- name: dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The requirement for the cluster name to match the KUBECONFIG context name no longer exists, so we can squash these config files.
dev/env/scripts/bootstrap.sh
Outdated
ensure_operator_image_exists.sh | ||
fi | ||
log "Ensuring operator images exist from dev GitOps config" | ||
ensure_operator_image_exists.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the problem on my colima cluster when ose-kube-rbac-proxy
image cannot be pulled.
@@ -165,6 +137,9 @@ init() { | |||
eval "$(minikube docker-env)" | |||
fi | |||
|
|||
} | |||
|
|||
print_env() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reduces the noise, since lib.sh#init
is called several times during test execution
7d2e98e
to
db754e3
Compare
db754e3
to
f93663b
Compare
f93663b
to
879311f
Compare
200ab08
to
f6bad53
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kovayur, ludydoo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
f6bad53
to
c7b6af5
Compare
New changes are detected. LGTM label has been removed. |
Description
A big cleanup, the main goal of which is to use the service template in E2E tests the same way we use it in app-interface.
As a result:
fleet-manager
anddb
indev/env/manifests
that duplicate templates content.cluster_dns
for openshift clusters inMakefile
tools
Checklist (Definition of Done)
Test manual
ROX-12345: ...
Test manual
Tested on colima:
make deploy/bootstrap
make deploy/dev