-
Notifications
You must be signed in to change notification settings - Fork 111
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
Implementation for new systemd configuration method #365
Merged
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
a519556
Add gomock binary download and makefile entry to generate mocks
SchSeba e78cae4
enable CGO
SchSeba e440c7a
Create the new api for ConfigurationMode and update the helper functions
SchSeba f72f2a0
Create the systemd changes for the bindata yaml folder
SchSeba 727022c
Update controllers
SchSeba 2adccca
Update utils and create interface for better unit tests implementation
SchSeba cfb0e3d
switch the bash files implementation with golang configuration
SchSeba 4e0b661
Create the new systemd cmd and implementation changes in the daemon pkg
SchSeba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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 |
---|---|---|
|
@@ -69,6 +69,7 @@ func main() { | |
var metricsAddr string | ||
var enableLeaderElection bool | ||
var probeAddr string | ||
|
||
flag.StringVar(&metricsAddr, "metrics-bind-address", ":8080", "The address the metric endpoint binds to.") | ||
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081", "The address the probe endpoint binds to.") | ||
flag.BoolVar(&enableLeaderElection, "leader-elect", false, | ||
|
@@ -82,6 +83,7 @@ func main() { | |
ctrl.SetLogger(zap.New(zap.UseFlagOptions(&opts))) | ||
|
||
restConfig := ctrl.GetConfigOrDie() | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: this change is not needed |
||
kubeClient, err := client.New(restConfig, client.Options{Scheme: scheme}) | ||
if err != nil { | ||
setupLog.Error(err, "couldn't create client") | ||
|
@@ -210,7 +212,7 @@ func main() { | |
func initNicIDMap() error { | ||
namespace := os.Getenv("NAMESPACE") | ||
kubeclient := kubernetes.NewForConfigOrDie(ctrl.GetConfigOrDie()) | ||
if err := sriovnetworkv1.InitNicIDMap(kubeclient, namespace); err != nil { | ||
if err := sriovnetworkv1.InitNicIDMapFromConfigMap(kubeclient, namespace); err != nil { | ||
return err | ||
} | ||
|
||
|
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 |
---|---|---|
|
@@ -36,7 +36,7 @@ import ( | |
"github.com/k8snetworkplumbingwg/sriov-network-operator/test/util/pod" | ||
) | ||
|
||
var waitingTime time.Duration = 20 * time.Minute | ||
var waitingTime = 20 * time.Minute | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: this change is not needed |
||
var sriovNetworkName = "test-sriovnetwork" | ||
var snoTimeoutMultiplier time.Duration = 0 | ||
|
||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
nit: this change is not needed