-
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.
IOPZ-1445 Make create-k8s-chained-sessions.sh idempotent
This commit makes the `create-k8s-chained-sessions.sh` script idempotent (it no longer breaks or behaves weirdly if some or all chained sessions already exist). In addition, it tidies up some aspects of the script, removes unnecessary output, and makes improvements so the script now passes the ShellCheck linter. fixed a bug in leapp filtering now that there are multiple sso sessions with the same name per account. Also updated the script to create chained sessions for each of the k8s developer "profiles" we have i.e. "reader", "writer", and "admin" depending on what base sso roles the user has. fixed bugs in profile lookup. Removed integration env refactored profile creation cleaned up log output
- Loading branch information
1 parent
2bcfa4e
commit d39a6ec
Showing
3 changed files
with
81 additions
and
36 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
# A collection of utility functions to be sourced by other scripts | ||
|
||
RED='\033[0;31m' | ||
GREEN='\033[0;32m' | ||
YELLOW='\033[0;33m' | ||
NC='\033[0m' # No Color | ||
|
||
red_echo () { echo -e "${RED}$*${NC}"; } | ||
green_echo () { echo -e "${GREEN}$*${NC}"; } | ||
yellow_echo () { echo -e "${YELLOW}$*${NC}"; } | ||
|
||
logStdErr() { | ||
while read -r line; do | ||
red_echo "$line" >&2 | ||
done | ||
} |