Skip to content

Commit

Permalink
[OKD only] update upstream URL and channel
Browse files Browse the repository at this point in the history
Update CVO upstream setting from OCP Cincinnati to OKD's release-controller
  • Loading branch information
vrutkovs committed Aug 12, 2020
1 parent 7ec307f commit a71f424
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions data/data/manifests/bootkube/cvo-overrides.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ metadata:
namespace: openshift-cluster-version
name: version
spec:
{{- if .IsOKD }}
upstream: https://origin-release.svc.ci.openshift.org/graph
channel: stable-4
{{- else }}
upstream: https://api.openshift.com/api/upgrades_info/v1/graph
channel: stable-4.6
{{- end }}
clusterID: {{.CVOClusterID}}
1 change: 1 addition & 0 deletions pkg/asset/manifests/operators.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ func (m *Manifests) generateBootKubeManifests(dependencies asset.Parents) []*ass
McsTLSKey: base64.StdEncoding.EncodeToString(mcsCertKey.Key()),
PullSecretBase64: base64.StdEncoding.EncodeToString([]byte(installConfig.Config.PullSecret)),
RootCaCert: string(rootCA.Cert()),
IsOKD: installConfig.Config.IsOKD(),
}

files := []*asset.File{}
Expand Down
1 change: 1 addition & 0 deletions pkg/asset/manifests/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ type bootkubeTemplateData struct {
PullSecretBase64 string
RootCaCert string
WorkerIgnConfig string
IsOKD bool
}

type baremetalTemplateData struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/asset/releaseimage/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

var (
// defaultReleaseImageOriginal is the value served when defaultReleaseImagePadded is unmodified.
defaultReleaseImageOriginal = "registry.svc.ci.openshift.org/origin/release:4.5"
defaultReleaseImageOriginal = "registry.svc.ci.openshift.org/origin/release:4.6"
// defaultReleaseImagePadded may be replaced in the binary with a pull spec that overrides defaultReleaseImage as
// a null-terminated string within the allowed character length. This allows a distributor to override the payload
// location without having to rebuild the source.
Expand Down

0 comments on commit a71f424

Please sign in to comment.