feat: always set auth cookie (#8213)
* feat: always set auth cookie Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com> * feat: Add annotation to always set auth cookie * Add annotation * Add global configmap key * Provide unit tests and e2e tests * Fix e2e documentation autogen script Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com> * Regenerate e2e tests Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
parent
93af9f726a
commit
2c27e66cc7
13 changed files with 501 additions and 537 deletions
|
|
@ -25,9 +25,12 @@ set -o pipefail
|
|||
URL="https://github.com/kubernetes/ingress-nginx/tree/main/"
|
||||
DIR=$(cd $(dirname "${BASH_SOURCE}")/.. && pwd -P)
|
||||
|
||||
echo "
|
||||
echo "<!---
|
||||
This file is autogenerated!
|
||||
Do not try to edit it manually.
|
||||
-->
|
||||
|
||||
# e2e test suite for [NGINX Ingress Controller]($URL)
|
||||
# e2e test suite for [Ingress NGINX Controller]($URL)
|
||||
|
||||
"
|
||||
|
||||
|
|
@ -37,7 +40,7 @@ for FILE in `find $DIR/test/e2e -name "*.go"`;do
|
|||
# line number
|
||||
DESCRIBE_LINE=$(echo $DESCRIBE | cut -f1 -d ':')
|
||||
# clean describe, extracting the string
|
||||
DESCRIBE=$(echo $DESCRIBE | sed -En 's/.*"(.*)".*/\1/p')
|
||||
DESCRIBE=$(echo $DESCRIBE | sed -En 's/.*("|`)(.*)("|`).*/\2/p')
|
||||
|
||||
FILE_URL=$(echo $FILE | sed "s|${DIR}/|${URL}|g")
|
||||
echo "
|
||||
|
|
@ -48,7 +51,7 @@ for FILE in `find $DIR/test/e2e -name "*.go"`;do
|
|||
ITS=$(cat $FILE | grep -n -oP 'It\(.*')
|
||||
while IFS= read -r line; do
|
||||
IT_LINE=$(echo $line | cut -f1 -d ':')
|
||||
IT=$(echo $line | sed -En 's/.*"(.*)".*/\1/p')
|
||||
IT=$(echo $line | sed -En 's/.*("|`)(.*)("|`).*/\2/p')
|
||||
echo "- [$IT]($FILE_URL#L$IT_LINE)"
|
||||
done <<< "$ITS"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue