-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix calico/apiserver /tmp folder permission
This change backports changes from [1] for `calico/apiserver` only to fix the `/tmp` folder permission. Currently, when `/tmp` folder is copied form ubi stage to scratch, the folder permission is 0755 so it isn't writable for non-root processes. With the changes in [2], apiserver won't be ready because `/tmp/ready` flag can't be written. [1] #8299 [2] tigera/operator#2906
- Loading branch information
Showing
8 changed files
with
29 additions
and
154 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM scratch as source | ||
|
||
ARG BIN_DIR | ||
ARG TARGETARCH | ||
|
||
COPY ${BIN_DIR}/apiserver-${TARGETARCH} /code/apiserver | ||
COPY ${BIN_DIR}/filecheck-${TARGETARCH} /code/filecheck | ||
|
||
FROM calico/base | ||
|
||
COPY --from=source / / | ||
|
||
WORKDIR /code | ||
|
||
ENTRYPOINT ["/code/apiserver"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters