forked from submariner-io/submariner
-
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.
Add submariner-networkplugin-syncer stub
This adds a simple image and binary for the submariner-networkplugin-syncer which will be used to test the eventhandler controller which will be built on next commits. Co-Authored-by: Sridhar Gaddam <[email protected]> Signed-off-by: Miguel Angel Ajo <[email protected]>
- Loading branch information
Showing
4 changed files
with
34 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM registry.access.redhat.com/ubi8/ubi-minimal | ||
|
||
WORKDIR /var/submariner | ||
|
||
# install the networkpluginc-sync | ||
COPY package/submariner-networkplugin-syncer.sh bin/submariner-networkplugin-syncer /usr/local/bin/ | ||
|
||
ENTRYPOINT ["/usr/local/bin/submariner-networkplugin-syncer.sh"] | ||
|
||
USER ${USER_UID} |
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,14 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
trap "exit 1" SIGTERM SIGINT | ||
|
||
SUBMARINER_VERBOSITY=${SUBMARINER_VERBOSITY:-2} | ||
|
||
if [ "${SUBMARINER_DEBUG}" == "true" ]; then | ||
DEBUG="-v=3" | ||
else | ||
DEBUG="-v=${SUBMARINER_VERBOSITY}" | ||
fi | ||
|
||
exec submariner-networkplugin-sync ${DEBUG} -alsologtostderr |
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,4 @@ | ||
package main | ||
|
||
func main() { | ||
} |