-
Notifications
You must be signed in to change notification settings - Fork 2k
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
e2e: test cni args #23597
e2e: test cni args #23597
Conversation
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.
LGTM!
"type": "cni_args.sh" | ||
} | ||
] | ||
} |
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.
This file is missing a EOL at the end of the file, which will mess up various unix tools (ex. try running wc -l
on this file and you'll see it'll only have 8 lines!). You should be able to fix-on-save in your editor.
|
||
set -euo pipefail | ||
|
||
# things are prefixed with "Fancy*" because this is a fancy plugin. |
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.
😆
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.
Daniel did this if you can tell 🤣
Co-authored-by: Daniel Bennett <[email protected]>
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
This PR adds an e2e test for cni args implemented in #23538.
The test uses a job specification with a custom cni plugin "cni_args.sh" to write a file containing an interpolated variable passed in as a cni arg to the task local folder. Then the test makes sure that this file exists in the correct location and checks that the value was written and interpolated correctly.