-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate a development channel in charts #768
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
namespace: fleet-default | ||
spec: | ||
options: | ||
image: {{ .Values.channel.image }}:{{ .Values.channel.tag }} | ||
type: custom | ||
{{ end }} | ||
{{ if hasPrefix "registry.opensuse.org" .Values.registryUrl }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd make this more strict by also including an AND condition like contains "isv/rancher/elemental"
. This way the check would be valid for branched charts in OBS too.
An example of an unstable channel I created is here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's smart, would anyway move the unstable channel to a separate yaml file (channel-unstable.yaml? channel-dev.yaml? you name it): that would make it easier to automatically drop it from the version we publish in the marketplace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense 👍
.obs/chartfile/operator/values.yaml
Outdated
@@ -10,8 +10,9 @@ seedImage: | |||
imagePullPolicy: IfNotPresent | |||
|
|||
channel: | |||
image: "%%IMG_REPO%%/rancher/elemental-channel" | |||
tag: "%VERSION%" | |||
name: "sle-micro-5.5-channel" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a name here so this turns to be customizable too. I like seeing the OS stream in the channel name, it makes everything way more obvious in CLI and the UI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really nice
@fgiudici @anmazzotti this is what I had in mind for setting a development channel only for projects under |
@@ -10,8 +10,9 @@ seedImage: | |||
imagePullPolicy: IfNotPresent | |||
|
|||
channel: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am also wondering if this shouldn't be a list of channels. Makes sense from a structure point of view, but I wonder if this wouldn't make it way cumbersome and unpleasant from a UX PoV.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think will make things more convoluted from the user/UX side.
But multi-channel is a good point... we can provide extra ready-to-use yamls "kubectl apply" ready in our repos and docs 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also opt to not introduce many channels at install time. One default is great, then we can point to the documentation to install additional ones. Otherwise it will be a lot of clutter.
.obs/chartfile/operator/values.yaml
Outdated
image: "%%IMG_REPO%%/rancher/elemental-channel" | ||
tag: "%VERSION%" | ||
name: "sle-micro-5.5-channel" | ||
image: "%%IMG_REPO%%/rancher/elemental-channel/sle-micro" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also if we have development channel, there is no reason to have this %%IMG_REPO%%
as this should be an official already existing channel reference such as registry.suse.com/rancher/elemental-channel/...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cannot agree more 👍🏼
I like this. I think you can simply add your OBS Dockerfile and .json to the elemental-channels project, this could be the The only thing I miss is when this image is refreshed. Can we for example trigger the elemental-channel service after build-baremetal-iso-image succeeds? Otherwise the elemental-channels Github refresh action runs nightly, but for a development image I'd really love to always have the latest latest. |
I'd not put in the same OBS package as the others as a flavor (we can include it in the github repository). The reason for that is because I'd love to be capable to keep OBS sources untouched when promoting from Dev to Staging to release projects. So if we keep development channel as a separate OBS image, then we can just simply do not submit it to release project and we are certain these bits are never landing in IBS.
The idea is that no refresh is needed at all. Imagine something like:
This does not require refresh, it always pointing to the latest build we have in dev, which should be in sync with github repository head.
For development I don't think we need any refresh. They can be purely static, that's why I am not sure we need those sources in github repository at all. |
d6b047f
to
1e12abb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goes together with rancher/elemental-channels#5
.obs/chartfile/operator/values.yaml
Outdated
tag: "%VERSION%" | ||
name: "sle-micro-channel" | ||
image: "registry.suse.com/rancher/elemental-channel" | ||
tag: "%%VERSION%%" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the currently released channel, naming it sle-micro-channel as this includes 5.5 and 5.4 images.
1e12abb
to
dbf62d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
dbf62d7
to
025d969
Compare
This commit adds a development channel reference to builds done in OBS (under or branched from isv:Rancher:Elemental) Signed-off-by: David Cassany <[email protected]>
025d969
to
042692a
Compare
This is a PoC to add an unstable channel for helm builds happening at
isv:Rancher:Elemental
projects in OBS.