Skip to content

Commit

Permalink
feat(kubernetes): support Pod annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jlegrone committed Oct 2, 2019
1 parent 016efbd commit 9871edc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion driver/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const (
type Driver struct {
Namespace string
ServiceAccountName string
Annotations map[string]string
LimitCPU resource.Quantity
LimitMemory resource.Quantity
Tolerations []v1.Toleration
Expand Down Expand Up @@ -142,7 +143,8 @@ func (k *Driver) Run(op *driver.Operation) (driver.OperationResult, error) {
BackoffLimit: &k.BackoffLimit,
Template: v1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Labels: labelMap,
Labels: labelMap,
Annotations: k.Annotations,
},
Spec: v1.PodSpec{
ServiceAccountName: k.ServiceAccountName,
Expand Down

0 comments on commit 9871edc

Please sign in to comment.