-
Notifications
You must be signed in to change notification settings - Fork 395
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
Added K8s example for header routing #193
Conversation
9b7cb72
to
abc3a5a
Compare
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.
Nice stuff, @kiranmeduri :)
exit 1 | ||
fi | ||
|
||
if [ -z "${MESH_NAME}" ]; then |
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.
Should this be EKS_CLUSTER not MESH_NAME?
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.
MESH_NAME is more appropriate given that this example should work outside of EKS, i.e. any K8s cluster
for f in mesh app; do | ||
eval "cat <<EOF | ||
$(<${DIR}/${f}.yaml.template) | ||
EOF" >${OUT_DIR}/${f}.yaml |
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.
You might use the envsubst
program instead of the above use of eval
:
for f in mesh app; do
envsubst <$DIR/$f.yaml.template >$DIR/$f.yaml
done
https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html
You'd want to export
the vars used in the template, though.
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.
Don't I need to install gettext for this to work?
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.
Pretty sure envsubst
is a standard utility on Linux at this point, but not a huge deal :)
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.
Not on my mac :(. Will leave it for now. Thanks for pointer.
7f91829
to
9afb817
Compare
9afb817
to
4d64e89
Compare
4d64e89
to
eda8475
Compare
Issue #, if available:
Description of changes:
Related to aws/aws-app-mesh-controller-for-k8s#56
Keeping in draft until controller change is released.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.