mirror of
https://github.com/outbackdingo/homelab-v.git
synced 2026-08-25 14:53:19 +00:00
feat(devcontainer): add kubeconform
Signed-off-by: Vegard Hagen <[email protected]>
This commit is contained in:
@@ -134,7 +134,7 @@ RUN curl -sSLO "https://dl.k8s.io/release/$(curl -sSL https://dl.k8s.io/release/
|
||||
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl && \
|
||||
rm kubectl kubectl.sha256
|
||||
|
||||
# Install kubecolor for some colour https://kubecolor.github.io/
|
||||
# Install kubecolor for some colour https://kubecolor.github.io/
|
||||
RUN curl -sSL -o kubecolor.deb "https://kubecolor.github.io/packages/deb/pool/main/k/kubecolor/kubecolor_$(curl -sSL https://kubecolor.github.io/packages/deb/version)_${TARGETARCH}.deb" && \
|
||||
dpkg -i kubecolor.deb && \
|
||||
rm kubecolor.deb
|
||||
@@ -154,6 +154,11 @@ RUN curl -sSL -o yq "https://github.com/mikefarah/yq/releases/latest/download/yq
|
||||
install -o root -g root -m 0755 yq /usr/local/bin/yq && \
|
||||
rm yq
|
||||
|
||||
# Install kubeconform
|
||||
RUN curl -sSL -o yq "https://github.com/yannh/kubeconform/releases/latest/download/kubeconform_linux_${TARGETARCH}" && \
|
||||
install -o root -g root -m 0755 yq /usr/local/bin/kubeconform && \
|
||||
rm yq
|
||||
|
||||
# Install talosctl
|
||||
RUN curl -sSL -o talosctl "https://github.com/siderolabs/talos/releases/latest/download/talosctl-linux-${TARGETARCH}" && \
|
||||
install -o root -g root -m 0755 talosctl /usr/local/bin/talosctl && \
|
||||
@@ -221,6 +226,7 @@ RUN PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" kubectl krew install ctx ns oidc-
|
||||
# Alias everything
|
||||
RUN echo "alias kubectl='kubecolor'" >> ${HOME}/.bash_aliases && \
|
||||
echo "alias k='kubectl'" >> ${HOME}/.bash_aliases && \
|
||||
echo "alias kc='kubeconform'" >> ${HOME}/.bash_aliases && \
|
||||
echo "alias kz='kubectl kustomize --enable-helm'" >> ${HOME}/.bash_aliases && \
|
||||
echo "alias tf='tofu'" >> ${HOME}/.bash_aliases && \
|
||||
echo "alias tl='talosctl'" >> ${HOME}/.bash_aliases && \
|
||||
|
||||
Reference in New Issue
Block a user