-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sessions namespace controller - Queries ISPyB database, creates/delet…
…es namespaces with session names, creates roles and service accounts
- Loading branch information
1 parent
5475c98
commit 622f456
Showing
16 changed files
with
3,338 additions
and
0 deletions.
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM docker.io/library/rust:1.78.0-bookworm | ||
|
||
RUN rustup component add rustfmt clippy | ||
|
||
# Download and install kubectl | ||
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ | ||
chmod +x kubectl && \ | ||
mv kubectl /usr/local/bin/kubectl | ||
|
||
# Download and install Krew | ||
RUN set -x; cd "$(mktemp -d)" && \ | ||
OS="$(uname | tr '[:upper:]' '[:lower:]')" && \ | ||
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" && \ | ||
KREW="krew-${OS}_${ARCH}" && \ | ||
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" && \ | ||
tar zxvf "${KREW}.tar.gz" && \ | ||
./"${KREW}" install krew && \ | ||
mv "${KREW}" /usr/local/bin/krew | ||
|
||
# Add krew to the PATH | ||
ENV PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" | ||
|
||
RUN krew install oidc-login | ||
|
||
# Download and install vcluster | ||
RUN wget https://github.com/loft-sh/vcluster/releases/download/v0.19.5/vcluster-linux-amd64 -O /usr/local/bin/vcluster && \ | ||
chmod +x /usr/local/bin/vcluster | ||
|
||
RUN mv /usr/local/bin/vcluster /bin/vcluster | ||
|
||
COPY ./config_argus /root/.kube/config | ||
|
||
COPY ./ca.crt /root/ca.crt |
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,9 @@ | ||
{ | ||
"features": { | ||
"ghcr.io/devcontainers/features/common-utils:2.4.2": { | ||
"version": "2.4.2", | ||
"resolved": "ghcr.io/devcontainers/features/common-utils@sha256:bebfdcd6097a35506bf0f064a31e52ad4205467d9d7a226a688f51b851c88b65", | ||
"integrity": "sha256:bebfdcd6097a35506bf0f064a31e52ad4205467d9d7a226a688f51b851c88b65" | ||
} | ||
} | ||
} |
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,25 @@ | ||
{ | ||
"name": "Workflows", | ||
"build": { | ||
"context": ".", | ||
"dockerfile": "Dockerfile" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"rust-lang.rust-analyzer", | ||
"tamasfe.even-better-toml", | ||
"ms-kubernetes-tools.vscode-kubernetes-tools" | ||
] | ||
} | ||
}, | ||
// "features": { | ||
// "ghcr.io/devcontainers/features/common-utils:2.4.2": {} | ||
// }, | ||
"runArgs": [ | ||
"--security-opt=label=type:container_runtime_t", | ||
"--env-file=.devcontainer/.env" | ||
], | ||
"workspaceMount": "source=${localWorkspaceFolder},target=${localWorkspaceFolder},type=bind", | ||
"workspaceFolder": "${localWorkspaceFolder}" | ||
} |
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 @@ | ||
# Secrets | ||
.env | ||
.vscode | ||
# k8s configs | ||
ca.crt | ||
config_argus | ||
# vcluster config | ||
kubeconfig.yaml |
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 @@ | ||
target/ |
Oops, something went wrong.