Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Fixes #2046: make target stage lookup case insensitive#2047

Merged
imjasonh merged 1 commit intoGoogleContainerTools:mainfrom
hypnoce:case_insensitive_target_Stage
Apr 12, 2022
Merged

Fixes #2046: make target stage lookup case insensitive#2047
imjasonh merged 1 commit intoGoogleContainerTools:mainfrom
hypnoce:case_insensitive_target_Stage

Conversation

@hypnoce
Copy link
Copy Markdown
Contributor

@hypnoce hypnoce commented Apr 12, 2022

Fixes #2046

Description

When iterating over valid targets to lookup the selected one, make string check case insensitive.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Adds integration tests if needed.

See the contribution guide for more details.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes

Make target stage lookup case insensitive.

@imjasonh imjasonh merged commit f9c5745 into GoogleContainerTools:main Apr 12, 2022
@imjasonh
Copy link
Copy Markdown
Contributor

Confirmed this works with docker build, and should now work with Kaniko.

FROM alpine as alpine

RUN touch /etc/foo

FROM scratch

COPY --from=ALPINE /etc/foo .

@imjasonh imjasonh mentioned this pull request Jun 1, 2022
chuangw6 added a commit that referenced this pull request Jun 1, 2022
Highlights
- Installed binaries are missing from image [#2049](#2049)
- proc: detect kubernetes runtime by mounts [#2054](#2054)
- Fixes #2046: make target stage lookup case insensitive [#2047](#2047)
- fix: Refactor LayersMap to correct old strange code behavior [#2066](#2066)
- Fix missing setuid flags on COPY --from=build operation [#2089](#2089)
- Fixes #2046: make target stage lookup case insensitive [#2047](#2047)
- Add GitLab CI credentials helper [#2040]((#2040))
- and a number of dependency bumps
chuangw6 added a commit that referenced this pull request Jun 1, 2022
Highlights
- Installed binaries are missing from image #2049
- proc: detect kubernetes runtime by mounts #2054
- Fixes #2046: make target stage lookup case insensitive #2047
- Fix: Refactor LayersMap to correct old strange code behavior #2066
- Fix missing setuid flags on COPY --from=build operation #2089
- Fixes #2046: make target stage lookup case insensitive #2047
- Add GitLab CI credentials helper #2040
- And a number of dependency bumps
@chuangw6 chuangw6 mentioned this pull request Jun 1, 2022
4 tasks
chuangw6 added a commit that referenced this pull request Aug 9, 2022
Highlights
- Installed binaries are missing from image #2049
- proc: detect kubernetes runtime by mounts #2054
- Fixes #2046: make target stage lookup case insensitive #2047
- Fix: Refactor LayersMap to correct old strange code behavior #2066
- Fix missing setuid flags on COPY --from=build operation #2089
- Fixes #2046: make target stage lookup case insensitive #2047
- Add GitLab CI credentials helper #2040
- And a number of dependency bumps
chuangw6 added a commit that referenced this pull request Aug 10, 2022
Highlights
- Installed binaries are missing from image #2049
- proc: detect kubernetes runtime by mounts #2054
- Fixes #2046: make target stage lookup case insensitive #2047
- Fix: Refactor LayersMap to correct old strange code behavior #2066
- Fix missing setuid flags on COPY --from=build operation #2089
- Fixes #2046: make target stage lookup case insensitive #2047
- Add GitLab CI credentials helper #2040
- And a number of dependency bumps
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.

Target stage lookup should be case insensitive

2 participants