Fixup jobs, roles...

This commit is contained in:
2022-06-10 11:33:09 +02:00
parent 1350a26162
commit 8156f8cfa2
5 changed files with 25 additions and 6 deletions

View File

@@ -78,7 +78,7 @@ func buildCrontab(deployName string, deployment *helm.Deployment, s *types.Servi
cmd = podget + cmd
if cron.Image == "" {
cron.Image = "bitnami/kubectl"
cron.Image = "bitnami/kubectl:1.20"
}
name := deployName

View File

@@ -74,6 +74,7 @@ func buildDeployment(name string, s *types.ServiceConfig, linked map[string]type
// Add selectors
selectors := buildSelector(name, s)
selectors[helm.K+"/resource"] = "deployment"
deployment.Spec.Selector = map[string]interface{}{
"matchLabels": selectors,
}