-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
===================================================================== --- New Scripts -------------------------- zsh ) amazon EKS - aws/eks/login --- Changes ------------------------------ - moved global .config to global/config.zsh - moved various global configurations to global/ --- Bug Fixes ---------------------------- - REDIS_AUTH no longer required to attempt connection - global configurations now propagate to non-zsh scripts
- Loading branch information
Showing
7 changed files
with
65 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
##################################################################### | ||
|
||
[ ! $SCWRYPTS_ROOT ] && SCWRYPTS_ROOT="$(dirname ${0:a:h})" | ||
|
||
source "${0:a:h}/config.zsh" | ||
|
||
##################################################################### | ||
|
||
__SCWRYPT=1 # arbitrary; indicates scwrypts exists | ||
|
||
__PREFERRED_PYTHON_VERSIONS=(3.10 3.9) | ||
__NODE_VERSION=18.0.0 | ||
|
||
__ENV_TEMPLATE=$SCWRYPTS_ROOT/.env.template | ||
|
||
##################################################################### | ||
|
||
__RUN_SCWRYPT() { | ||
((SUBSCWRYPT+=1)) | ||
printf ' '; printf '--%.0s' {1..$SUBSCWRYPT}; printf " ($SUBSCWRYPT) " | ||
echo " BEGIN SUBSCWRYPT : $(basename $1)" | ||
|
||
SUBSCWRYPT=$SUBSCWRYPT SCWRYPTS_ENV=$ENV_NAME \ | ||
"$SCWRYPTS_ROOT/scwrypts" $@ | ||
EXIT_CODE=$? | ||
|
||
printf ' '; printf '--%.0s' {1..$SUBSCWRYPT}; printf " ($SUBSCWRYPT) " | ||
echo " END SUBSCWRYPT : $(basename $1)" | ||
((SUBSCWRYPT-=1)) | ||
|
||
return $EXIT_CODE | ||
} |
Binary file not shown.
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,6 @@ | ||
_DEPENDENCIES+=( | ||
kubectl | ||
) | ||
_REQUIRED_ENV+=() | ||
source ${0:a:h}/../common.zsh | ||
##################################################################### |
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,19 @@ | ||
#!/bin/zsh | ||
_DEPENDENCIES+=() | ||
_REQUIRED_ENV+=() | ||
source ${0:a:h}/common.zsh | ||
##################################################################### | ||
|
||
__STATUS "performing AWS ECR docker login" | ||
|
||
CLUSTER_NAME=$(\ | ||
_AWS eks list-clusters \ | ||
| jq -r '.[] | .[]' \ | ||
| __FZF 'select a cluster' | ||
) | ||
[ ! $CLUSTER_NAME ] && __ABORT | ||
|
||
__STATUS "updating kubeconfig for '$CLUSTER_NAME'" | ||
_AWS eks update-kubeconfig --name $CLUSTER_NAME \ | ||
&& __SUCCESS "kubeconfig updated with '$CLUSTER_NAME'" \ | ||
|| __ERROR "failed to update kubeconfig; do you have permissions to access '$CLUSTER_NAME'?" |
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