Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Service dependency against a minimal ggn version #69

Merged
merged 3 commits into from
Feb 3, 2017
Merged

Service dependency against a minimal ggn version #69

merged 3 commits into from
Feb 3, 2017

Conversation

jbfavre
Copy link
Member

@jbfavre jbfavre commented Feb 2, 2017

If a service declares a dependency against a minimal version of ggn, unit file generation for this service ill be blocked if ggn doesn't fullfill version requirement.
This allow to safely upgrade service manifest and prevent service operation with uncompatible ggn versions.

If a service declares a dependency against a minimal version of GGN, unit file generation for this service ill be blocked if ggn doesn't fullfill version requirement.
This allow to safely upgrade service manifest and prevent service operation with uncompatible ggn versions.
work/spec.go Outdated
@@ -42,6 +42,7 @@ type HookInfo struct {
}

type ServiceManifest struct {
GgnMinimalVersion common.Version `yaml:"ggnminimalversion"`
Copy link
Member

Choose a reason for hiding this comment

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

yaml:"ggnMinimalVersion"

logs.WithField("version", s.manifest.GgnMinimalVersion).Debug("Found ggn minimal version")
if s.manifest.GgnMinimalVersion.GreaterThan(currentVersion) {
logs.WithFields(s.fields).
WithField("ggn-minimalversion", s.manifest.GgnMinimalVersion).
Copy link
Member

Choose a reason for hiding this comment

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

you can remove ggn- it's useless while coming with the comment.

@n0rad n0rad merged commit d0d90fd into blablacar:master Feb 3, 2017
@jbfavre jbfavre deleted the feature_ggn_minimal_version_dependency branch February 3, 2017 11:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants