-
Notifications
You must be signed in to change notification settings - Fork 15
feat: allow solo to deploy pre-configured resource profiles #175
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
Merged
Merged
Changes from 23 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
521e3d5
feat: add prompt for profile during network deploy
leninmehedy be9f6d2
feat: first implementation of resource profile manager
leninmehedy c657a10
fix: recycle haproxy pods if it is not UP after several attempts
leninmehedy d24a204
fix: use wait for pod ready condition to check pod condition to impro…
leninmehedy e9b2e50
test: use separate profile files for tests
leninmehedy 5898ab4
fix: use port forward if load balancer IP is not in supported network…
leninmehedy 4215ac5
fix: update profile tiny
leninmehedy e1504c1
doc: update README with console log of the commands
leninmehedy a58323a
fix: update tiny profile
leninmehedy cd362f0
fix: mirror node db resource spec interpretation
leninmehedy 1708f0c
fix: add additional profiles
leninmehedy 3f48a97
fix: create cached values file directory during solo init
leninmehedy 4781678
feat: add dev scripts to view telemetry
leninmehedy d1afeb9
fix defaults and constants
leninmehedy ce95971
make it work
leninmehedy b3f7eb0
fix dev telemetry scripts
leninmehedy 5bbf7fb
use correct FST version
leninmehedy 0b0fcf2
fix: enable force flag for mirror-node destroy command and fix styling
leninmehedy 40b3fd6
update wait time
leninmehedy 4620f48
save sample dashboar
leninmehedy 86a78d4
Merge branch 'main' into 00097-pre-configured-profiles
leninmehedy 765732d
fix setup script
leninmehedy daf17da
test: increase test timeout
leninmehedy 3012780
address PR comments and remove dev folder
leninmehedy 32c463c
test: reduce error logging in the console for failed test to avoid co…
leninmehedy 0f81257
Merge branch 'main' into 00097-pre-configured-profiles
leninmehedy 9394895
test: increase test execution time to accommodate recently added chec…
leninmehedy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -513,3 +513,4 @@ secring.* | |
junit*.xml | ||
node_modules/ | ||
coverage/ | ||
deleteme.yaml |
This file contains hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Force the use of bash as the shell for more features | ||
SHELL=/bin/bash | ||
|
||
# Setup variables | ||
SCRIPTS_DIR=$(PWD)/scripts | ||
|
||
# scripts | ||
TELEMETRY_SCRIPT="telemetry.sh" | ||
|
||
######################################### Telemetry - Start ################################# | ||
.PHONY: deploy-grafana-tempo | ||
deploy-grafana-tempo: | ||
source "${SCRIPTS_DIR}/${TELEMETRY_SCRIPT}" && deploy_grafana_tempo && expose_grafana | ||
|
||
.PHONY: destroy-grafana-tempo | ||
destroy-grafana-tempo: | ||
source "${SCRIPTS_DIR}/${TELEMETRY_SCRIPT}" && unexpose_grafana && destroy_grafana_tempo | ||
|
||
.PHONY: deploy-prometheus | ||
deploy-prometheus: | ||
source "${SCRIPTS_DIR}/${TELEMETRY_SCRIPT}" && deploy-prometheus-operator | ||
-$(MAKE) wait-for-prometheus-operator | ||
source "${SCRIPTS_DIR}/${TELEMETRY_SCRIPT}" && deploy-prometheus && expose_prometheus | ||
|
||
.PHONY: wait-for-prometheus-operator | ||
wait-for-prometheus-operator: | ||
kubectl wait --for=condition=Ready pods -l app.kubernetes.io/name=prometheus-operator --timeout 300s --all-namespaces | ||
|
||
.PHONY: destroy-prometheus | ||
destroy-prometheus: | ||
source "${SCRIPTS_DIR}/${TELEMETRY_SCRIPT}" && destroy-prometheus-operator && unexpose_prometheus && destroy-prometheus | ||
|
||
.PHONY: deploy-telemetry-stack | ||
deploy-telemetry-stack: deploy-prometheus deploy-grafana-tempo | ||
|
||
.PHONY: destroy-telemetry-stack | ||
destroy-telemetry-stack: | ||
# Note: - prefix ensures errors are ignored and continues | ||
-${MAKE} destroy-prometheus | ||
-${MAKE} destroy-grafana-tempo | ||
######################################### Telemetry - End ################################# |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env bash | ||
start_time=$(date +%s) | ||
|
||
function log_time() { | ||
local end_time duration execution_time | ||
|
||
local func_name=$1 | ||
|
||
end_time=$(date +%s) | ||
duration=$((end_time - start_time)) | ||
execution_time=$(printf "%.2f seconds" "${duration}") | ||
echo "-----------------------------------------------------------------------------------------------------" | ||
echo "<<< ${func_name} execution took: ${execution_time} >>>" | ||
echo "-----------------------------------------------------------------------------------------------------" | ||
} | ||
|
||
function show_env_vars() { | ||
echo "--------------------------Env Setup: fullstack-testing ------------------------------------------------" | ||
echo "CLUSTER_NAME: ${CLUSTER_NAME}" | ||
echo "RELEASE_NAME: ${RELEASE_NAME}" | ||
echo "USER: ${USER}" | ||
echo "NAMESPACE: ${NAMESPACE}" | ||
echo "SCRIPT_DIR: ${SCRIPT_DIR}" | ||
echo "-----------------------------------------------------------------------------------------------------" | ||
echo "" | ||
} | ||
|
||
# ----------------------------- Setup ENV Variables ------------------------------------------------------------- | ||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)" | ||
USER="${USER:-changeme}" | ||
CLUSTER_NAME="${SOLO_CLUSTER_NAME:-solo-e2e}" | ||
NAMESPACE="${SOLO_NAMESPACE:-solo}" | ||
|
||
# telemetry related env variables | ||
readonly TELEMETRY_DIR="${SCRIPT_DIR}/../telemetry" | ||
readonly PROMETHEUS_DIR="${TELEMETRY_DIR}/prometheus" | ||
readonly PROMETHEUS_VERSION=v0.67.1 | ||
readonly PROMETHEUS_OPERATOR_YAML="${PROMETHEUS_DIR}/prometheus-operator.yaml" | ||
readonly PROMETHEUS_YAML="${PROMETHEUS_DIR}/prometheus.yaml" | ||
readonly PROMETHEUS_RBAC_YAML="${PROMETHEUS_DIR}/prometheus-rbac.yaml" | ||
readonly PROMETHEUS_EXAMPLE_APP_YAML="${PROMETHEUS_DIR}/example-app.yaml" | ||
|
||
show_env_vars |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.