Skip to content

Commit

Permalink
Merge pull request syndesisio#8927 from phantomjinx/entesb-14410
Browse files Browse the repository at this point in the history
ENTESB-14410: Stops erroneous OLM subscriptions with no package defined
  • Loading branch information
phantomjinx authored Aug 13, 2020
2 parents b23c2b8 + 27628b4 commit 2c0ecef
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,12 @@
name: syndesis-operator
spec:
tags:
{{if .DevSupport}}
- name: "latest"
from:
name: {{.Image}}:latest
kind: ImageStreamTag
{{else}}
- name: "{{.Tag}}"
from:
name: {{.Image}}:{{.Tag}}
{{if .DevSupport}}
kind: ImageStreamTag
{{else}}
kind: DockerImage
importPolicy:
scheduled: true
Expand Down
4 changes: 2 additions & 2 deletions install/operator/pkg/generator/assets_vfsdata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion install/operator/pkg/syndesis/action/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ func (a *installAction) Execute(ctx context.Context, syndesis *v1beta1.Syndesis)

a.log.Info("Installing addon", "Name", addonInfo.Name())

if config.ApiServer.OlmSupport && addonInfo.GetOlmSpec() != nil {
if config.ApiServer.OlmSupport && addonInfo.GetOlmSpec() != nil && addonInfo.GetOlmSpec().Package != "" {
a.log.Info("Subscribing to OLM operator:", "Package", addonInfo.GetOlmSpec().Package, "Channel", addonInfo.GetOlmSpec().Channel)
//
// Using the operator hub is not mutally exclusive to loading the addon
// resources. Each addon should be tailored with conditionals to be
Expand Down
Loading

0 comments on commit 2c0ecef

Please sign in to comment.