Skip to content
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

build(version): update versions for 2.2.1-dev #498

Merged
merged 1 commit into from
Nov 17, 2022

Conversation

ebaron
Copy link
Member

@ebaron ebaron commented Nov 17, 2022

@ebaron ebaron added chore Refactor, rename, cleanup, etc. build labels Nov 17, 2022
Copy link
Member

@andrewazores andrewazores left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@tthvo tthvo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Just wondering about the choice of image tags here? Why snapshot and cryostat- (only Grafana?)?

@ebaron
Copy link
Member Author

ebaron commented Nov 17, 2022

Looks good to me! Just wondering about the choice of image tags here? Why snapshot and cryostat- (only Grafana?)?

This is meant to get the latest 2.2.x builds. All the operand images except Grafana build with an image tag derived from the POM version. The Grafana Dashboard has no POM file or version variable of any kind in the source, perhaps this warrants changing. The CI instead uses the Git branch name for the image tag, thus cryostat-v2.2.

A drawback with this is that it won't work with our development image version detection:

// Matches image tags of the form "major.minor.patch"
var develVerRegexp = regexp.MustCompile(`(?i)(:latest|SNAPSHOT|dev|BETA\d+)$`)
func getPullPolicy(imageTag string) corev1.PullPolicy {
// Use Always for tags that have a known development suffix
if develVerRegexp.MatchString(imageTag) {
return corev1.PullAlways
}
// Likely a release, use IfNotPresent
return corev1.PullIfNotPresent
}

This will lead to the pull policy being IfNotPresent, when we'd prefer Always.

@tthvo
Copy link
Member

tthvo commented Nov 17, 2022

Right that makes sense! Thanks for explaining :D

@ebaron
Copy link
Member Author

ebaron commented Nov 17, 2022

Right that makes sense! Thanks for explaining :D

No problem, I filed cryostatio/cryostat-grafana-dashboard#19 in response to this discussion.

@ebaron ebaron merged commit 95ea0e9 into cryostatio:cryostat-v2.2 Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build chore Refactor, rename, cleanup, etc.
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants