Skip to content

Commit

Permalink
Merge pull request #206 from kajinamit/restartpolicy
Browse files Browse the repository at this point in the history
Use constant to define restart policy
  • Loading branch information
openshift-merge-robot authored Mar 7, 2023
2 parents 0676a93 + 7cddf35 commit 444986f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/keystone/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func BootstrapJob(
Annotations: annotations,
},
Spec: corev1.PodSpec{
RestartPolicy: "OnFailure",
RestartPolicy: corev1.RestartPolicyOnFailure,
ServiceAccountName: ServiceAccount,
Containers: []corev1.Container{
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/keystone/dbsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func DbSyncJob(
Annotations: annotations,
},
Spec: corev1.PodSpec{
RestartPolicy: "OnFailure",
RestartPolicy: corev1.RestartPolicyOnFailure,
ServiceAccountName: ServiceAccount,
Containers: []corev1.Container{
{
Expand Down

0 comments on commit 444986f

Please sign in to comment.