Skip to content

rename "if_not_present" to "missing" to align with docker CLI#136

Merged
gtardif merged 2 commits intocompose-spec:masterfrom
ndeloof:missing
Jan 29, 2021
Merged

rename "if_not_present" to "missing" to align with docker CLI#136
gtardif merged 2 commits intocompose-spec:masterfrom
ndeloof:missing

Conversation

@ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Jan 27, 2021

What this PR does / why we need it:

rename the "if_not_present" pull_policy value as "missing" to align with docker CLI which
introduced --pull flag independently:

--pull string                    Pull image before running ("always"|"missing"|"never") (default "missing")

As if_not_present is kubernetes value for equivalent field and has been set months ago I don't think we should just rename, so the spec declares this value and alias implementations SHOULD accept.

Which issue(s) this PR fixes:
Fixes docker-archive/compose-cli#1183 (review)

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
@gtardif gtardif merged commit 837f367 into compose-spec:master Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants