Skip to content

Commit

Permalink
fix(jiva): add serviceAccount to clean up jobs
Browse files Browse the repository at this point in the history
Signed-off-by: shubham <[email protected]>
  • Loading branch information
shubham14bajpai authored and kmova committed Feb 2, 2021
1 parent 99e5494 commit dba86c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/apis/openebs.io/v1alpha1/versionDetails.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ var (
"1.8.0": true, "1.9.0": true, "1.10.0": true, "1.11.0": true,
"1.12.0": true, "2.0.0": true, "2.1.0": true, "2.2.0": true,
"2.3.0": true, "2.4.0": true, "2.4.1": true, "2.5.0": true,
"2.6.0": true,
}
validDesiredVersion = strings.Split(version.GetVersion(), "-")[0]
)
Expand Down
3 changes: 3 additions & 0 deletions pkg/install/v1alpha1/jiva_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ spec:
enabled: "false"
- name: ReplicaTolerations
value: "none"
- name: ServiceAccountName
value: {{env "OPENEBS_SERVICE_ACCOUNT"}}
taskNamespace: {{env "OPENEBS_NAMESPACE"}}
run:
tasks:
Expand Down Expand Up @@ -1337,6 +1339,7 @@ spec:
{{- end }}
template:
spec:
serviceAccountName: {{ .Config.ServiceAccountName.value }}
restartPolicy: OnFailure
nodeSelector:
kubernetes.io/hostname: {{ kubeNodeGetHostNameOrNodeName .ListItems.currentRepeatResource }}
Expand Down

0 comments on commit dba86c6

Please sign in to comment.