Skip to content

Commit

Permalink
fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
pbusko committed Oct 25, 2024
1 parent ef9168a commit 3f36248
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions helm/korifi/job-task-runner/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,11 @@ spec:
- "--health-probe-bind-address=:8081"
- "--leader-elect"
- "--ttl={{ required "jobTTL is required" .Values.jobTaskRunner.jobTTL }}"
- "--add-seccomp-profile={{ .Values.jobTaskRunner.temporarySetPodSeccompProfile }}"
{{- else }}
args:
- --health-probe-bind-address=:8081
- --leader-elect
- --ttl={{ required "jobTTL is required" .Values.jobTaskRunner.jobTTL }}
- --add-seccomp-profile={{ .Values.jobTaskRunner.temporarySetPodSeccompProfile }}
{{- end }}
livenessProbe:
httpGet:
Expand Down
3 changes: 0 additions & 3 deletions job-task-runner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,11 @@ func main() {
enableLeaderElection bool
probeAddr string
ttl string
addSeccompProfile bool
)

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.StringVar(&ttl, "ttl", "24h", "The time to live for a task job.")
flag.BoolVar(&addSeccompProfile, "add-seccomp-profile", false, "Add temporary seccomp profile to the task job.")
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
"Enable leader election for controller manager. "+
"Enabling this will ensure there is only one active controller manager.")
Expand Down Expand Up @@ -82,7 +80,6 @@ func main() {
mgr.GetScheme(),
jobtaskcontrollers.NewStatusGetter(mgr.GetClient()),
jobTTL,
addSeccompProfile,
).SetupWithManager(mgr); err != nil {
setupLog.Error(err, "unable to create controller", "controller", "TaskWorkload")
os.Exit(1)
Expand Down
5 changes: 1 addition & 4 deletions statefulset-runner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ func setupControllers(mgr manager.Manager) error {
if err := statefulsetcontrollers.NewAppWorkloadReconciler(
mgr.GetClient(),
mgr.GetScheme(),
statefulsetcontrollers.NewAppWorkloadToStatefulsetConverter(
mgr.GetScheme(),
false,
),
statefulsetcontrollers.NewAppWorkloadToStatefulsetConverter(mgr.GetScheme()),
statefulsetcontrollers.NewPDBUpdater(mgr.GetClient()),
controllersLog,
).SetupWithManager(mgr); err != nil {
Expand Down

0 comments on commit 3f36248

Please sign in to comment.