Skip to content

Commit

Permalink
fix k8s job tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IbraheemAlSaady committed Jan 15, 2022
1 parent 69ee823 commit fdfcfa2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/v1alpha1/k8s_jobs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ var _ = Describe("Kubernetes RBAC", func() {
for _, v := range job.Spec.Template.Spec.Volumes {
if v.Name == gitSSHKeyVolumeName {
sshVolume = &v
break
}
}

Expect(sshVolume).ToNot(BeNil())
Expect(sshVolume.Name).To(Equal(gitSSHKeyVolumeName))
Expect(sshVolume.VolumeSource.Secret.SecretName).To(Equal(run.Spec.GitSSHKey.ValueFrom.Secret.SecretName))
})
})
Expand Down

0 comments on commit fdfcfa2

Please sign in to comment.