forked from sclorg/container-common-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Additions and changes in the library to allow running with external c…
…luster Allow to not run local cluster, if already logged into any (remote/local) cluster. Allow to use external docker registry and allow skipping image upload and new project creation. Add posibility to import images and use explicit image for default cmd (that is used for testing). New environment variables: * CT_SKIP_NEW_PROJECT: if set to true, no new project is created * CT_SKIP_UPLOAD_IMAGE: if set to true, image is not uploaded to the cluster * CT_NAMESPACE: possibility to re-define the namespace for images New functions: * ct_os_test_cmd_internal: runs a check cmd for verification of the service in the container that is internal in the cluster * ct_os_test_response_internal: checks a response using curl from the container that is internal in the cluster * ct_os_cmd_image_run: run a cmd in the container that is internal in the cluster * ct_os_deploy_cmd_image: deploys a helper container, that is used for commands that needs to run internally in the cluster * ct_os_get_image_from_pod: helper function for getting image name with a register from an existing pod Incompatible change: -p NAME is not set for all templates in ct_os_test_template_app_func, so templates which need it, must set it explicitly as a parameter Other changes: * some calls (curl etc.) are done from within the cluster by default, from a different (helper) container. That's necessary for clusters that do not expose services outside.
- Loading branch information
Showing
2 changed files
with
240 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters