-
Notifications
You must be signed in to change notification settings - Fork 68
Conversation
this is very similar to https://github.com/elastic/apm-integration-testing/blob/master/scripts/modules/elastic_stack.py#L678-L682, isn't it? |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪 |
@jalvz it is very similar, but that one just controls the local package registry. It could be useful to run a proxy between Kibana and EPR, so I think we should allow a full URL to be specified. Maybe in another PR we could change the |
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.
Shouldn't the enable_package_registry
be aware of the package_registry_url
?
Not sure I follow. The new |
Only set when passing --snapshot, --enable-package-registry, or --package-registry-url. Otherwise, rely on the default registry URL for the stack version.
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.
All good, I got confused by multiple package registry related config options.
…rt-from-build * upstream/master: (24 commits) Add mergify (elastic#1089) fix: update flake8 and deps to work with Python 3.8+ (elastic#1085) chore: bump elastic stack (elastic#1087) fix: force to activate venv (elastic#1086) fix: --opbeans-node-agent-local-repo=/a/local/dir (elastic#1084) ci: jjbb remove periodic-folder-trigger (elastic#1079) Fix APM Server managed by Elastic Agent setup (elastic#1078) docker/opbeans/go: use -mod=mod (elastic#1077) [fleet] fix elastic-agent setup (elastic#1076) update supported stack versions (elastic#1075) [CI] Increase timeout (elastic#1070) Add --package-registry-url flag (elastic#1069) Create opbeans_user/role with write/read access for the opbeans-python (elastic#1063) reset postgres sequences after database migration (elastic#1062) chore: bump Elastic Stack (elastic#1060) docker/go/nethttp: go build -mod=mod (elastic#1061) check agent liveness via version subcommand (elastic#1059) test: use filebeat step to grab Docker logs (elastic#1029) Update dotnet sdk 5.0 docker image (elastic#1048) docs: using Dyno (elastic#1056) ...
What does this PR do?
Add a
--package-registry-url
flag to control the Elastic Package Registry URL passed into the managed APM Server service and Kibana service environment variables.Also, set
XPACK_FLEET_REGISTRYURL
in the Kibana environment (consistently with APM Server) regardless of whether we're using a local package registry or not.Remove the dependency from APM Server to the local package registry; there is already a transitive dependency through Kibana.
Why is it important?
When running build candidates in the future we should probably default to running with the production Elastic Package Registry (epr.elastic.co). We will need to test with snapshots and staging though, so we can test with packages before they're promoted.
Related issues
Closes #1068