Skip to content

Commit

Permalink
Merge pull request #98 from BuddhiWathsala/master
Browse files Browse the repository at this point in the history
Fix local imagePullSecret skip issue
  • Loading branch information
mohanvive authored Oct 4, 2019
2 parents 6659415 + 150325f commit 1c7d3d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ data:
siddhiProfile: runner
siddhiImage: siddhiio/siddhi-runner-alpine:5.1.0-beta
autoIngressCreation: "true"
# siddhiImageSecret: siddhiio
# ingressTLS: siddhi-tls
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,16 +330,10 @@ func (sc *SiddhiController) UpdateDefaultConfigs() {

if configMap.Data["siddhiImage"] != "" {
sc.Image.Name = configMap.Data["siddhiImage"]
if sc.SiddhiProcess.Spec.Container.Image != "" {
sc.Image.Name = sc.SiddhiProcess.Spec.Container.Image
}
}

if configMap.Data["siddhiImageSecret"] != "" {
sc.Image.Secret = configMap.Data["siddhiImageSecret"]
if sc.SiddhiProcess.Spec.ImagePullSecret != "" {
sc.Image.Secret = sc.SiddhiProcess.Spec.ImagePullSecret
}
}

if configMap.Data["siddhiProfile"] != "" {
Expand All @@ -357,4 +351,10 @@ func (sc *SiddhiController) UpdateDefaultConfigs() {
}

}
if sc.SiddhiProcess.Spec.Container.Image != "" {
sc.Image.Name = sc.SiddhiProcess.Spec.Container.Image
}
if sc.SiddhiProcess.Spec.ImagePullSecret != "" {
sc.Image.Secret = sc.SiddhiProcess.Spec.ImagePullSecret
}
}

0 comments on commit 1c7d3d4

Please sign in to comment.