Skip to content

Commit

Permalink
Use constant to define restart policy
Browse files Browse the repository at this point in the history
... instead hard-coding the string in our own logic.
  • Loading branch information
kajinamit committed Mar 6, 2023
1 parent b4b2a35 commit 7cddf35
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 7cddf35

Please sign in to comment.