-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add envsubst for injected into .kube/config file
- Loading branch information
Brian.Berzins
committed
Oct 18, 2016
1 parent
a6a76df
commit c0b69b4
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,2 +1,8 @@ | ||
FROM alpine | ||
ADD https://storage.googleapis.com/kubernetes-release/release/v1.3.6/bin/linux/amd64/kubectl kubectl | ||
|
||
RUN apk add --update libintl && \ | ||
apk add --virtual build_deps gettext && \ | ||
cp /usr/bin/envsubst /usr/local/bin/envsubst && \ | ||
apk del gettext | ||
RUN mkdir /root/.kube | ||
ADD https://storage.googleapis.com/kubernetes-release/release/v1.4.1/bin/linux/amd64/kubectl kubectl |
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,8 @@ | ||
### kubectl | ||
|
||
Contains the kubectl command for running against kubernetes. | ||
|
||
This also contains envsbst for setting up the `~/.kube/config` by injecting | ||
environment variables. This allows for injection of secrets into the config | ||
file without the secrets being shown in plain text, allowing them to be part | ||
of a CI/CD pipeline who's output is visible. |