-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(devcontainer): Generate documentation.
- Loading branch information
Showing
21 changed files
with
525 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
docs/book/src/cronjob-tutorial/testdata/project/.devcontainer/Dockerfile
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,18 @@ | ||
# Build the manager binary | ||
# [Choice] Go version (use -bullseye variants on local arm64/Apple Silicon): | ||
# 1, 1.19, 1.18, 1-bullseye, 1.19-bullseye, 1.18-bullseye, 1-buster, 1.19-buster, 1.18-buster | ||
ARG TAG=1.22 | ||
FROM golang:${TAG} | ||
|
||
COPY post-install.sh . | ||
|
||
# Install dependencies | ||
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ | ||
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl | ||
|
||
RUN go install sigs.k8s.io/[email protected] && \ | ||
curl -o kubebuilder \ | ||
-L https://github.com/kubernetes-sigs/kubebuilder/releases/latest/download/kubebuilder_linux_amd64 && \ | ||
chmod +x kubebuilder && \ | ||
mv kubebuilder /usr/local/bin/ && \ | ||
chmod +x post-install.sh |
42 changes: 42 additions & 0 deletions
42
docs/book/src/cronjob-tutorial/testdata/project/.devcontainer/devcontainer.json
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,42 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-in-docker | ||
{ | ||
"name": "Kubebuilder DevContainer", | ||
"build": { | ||
"dockerfile": "./Dockerfile", | ||
"context": "." | ||
}, | ||
|
||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:2.11.0": { | ||
"moby": true, | ||
"azureDnsAutoDetection": true, | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": false, | ||
"upgradePackages": true, | ||
"username": "devcontainer", | ||
"userUid": "1001", | ||
"userGid": "1001" | ||
}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"ppa": true, | ||
"version": "system" | ||
}, | ||
"ghcr.io/devcontainers/features/go:1": { | ||
"version": "1.22.0" | ||
} | ||
}, | ||
|
||
"runArgs": ["--network=host"], | ||
// "forwardPorts": [], | ||
|
||
"postCreateCommand": "bash ./.devcontainer/post-install.sh" | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
15 changes: 15 additions & 0 deletions
15
docs/book/src/cronjob-tutorial/testdata/project/.devcontainer/post-install.sh
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 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
go version | ||
kubectl version --client | ||
|
||
# Check if Kind cluster already exists. | ||
if kubectl cluster-info &>/dev/null; then | ||
echo "Kind cluster already exists." | ||
else | ||
echo "Kind cluster doesn't exist. Creating new cluster...." | ||
kind create cluster | ||
fi | ||
|
||
kubectl get nodes -o wide |
18 changes: 18 additions & 0 deletions
18
docs/book/src/getting-started/testdata/project/.devcontainer/Dockerfile
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,18 @@ | ||
# Build the manager binary | ||
# [Choice] Go version (use -bullseye variants on local arm64/Apple Silicon): | ||
# 1, 1.19, 1.18, 1-bullseye, 1.19-bullseye, 1.18-bullseye, 1-buster, 1.19-buster, 1.18-buster | ||
ARG TAG=1.22 | ||
FROM golang:${TAG} | ||
|
||
COPY post-install.sh . | ||
|
||
# Install dependencies | ||
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ | ||
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl | ||
|
||
RUN go install sigs.k8s.io/[email protected] && \ | ||
curl -o kubebuilder \ | ||
-L https://github.com/kubernetes-sigs/kubebuilder/releases/latest/download/kubebuilder_linux_amd64 && \ | ||
chmod +x kubebuilder && \ | ||
mv kubebuilder /usr/local/bin/ && \ | ||
chmod +x post-install.sh |
42 changes: 42 additions & 0 deletions
42
docs/book/src/getting-started/testdata/project/.devcontainer/devcontainer.json
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,42 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-in-docker | ||
{ | ||
"name": "Kubebuilder DevContainer", | ||
"build": { | ||
"dockerfile": "./Dockerfile", | ||
"context": "." | ||
}, | ||
|
||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:2.11.0": { | ||
"moby": true, | ||
"azureDnsAutoDetection": true, | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": false, | ||
"upgradePackages": true, | ||
"username": "devcontainer", | ||
"userUid": "1001", | ||
"userGid": "1001" | ||
}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"ppa": true, | ||
"version": "system" | ||
}, | ||
"ghcr.io/devcontainers/features/go:1": { | ||
"version": "1.22.0" | ||
} | ||
}, | ||
|
||
"runArgs": ["--network=host"], | ||
// "forwardPorts": [], | ||
|
||
"postCreateCommand": "bash ./.devcontainer/post-install.sh" | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
15 changes: 15 additions & 0 deletions
15
docs/book/src/getting-started/testdata/project/.devcontainer/post-install.sh
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 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
go version | ||
kubectl version --client | ||
|
||
# Check if Kind cluster already exists. | ||
if kubectl cluster-info &>/dev/null; then | ||
echo "Kind cluster already exists." | ||
else | ||
echo "Kind cluster doesn't exist. Creating new cluster...." | ||
kind create cluster | ||
fi | ||
|
||
kubectl get nodes -o wide |
18 changes: 18 additions & 0 deletions
18
testdata/project-v4-multigroup-with-deploy-image/.devcontainer/Dockerfile
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,18 @@ | ||
# Build the manager binary | ||
# [Choice] Go version (use -bullseye variants on local arm64/Apple Silicon): | ||
# 1, 1.19, 1.18, 1-bullseye, 1.19-bullseye, 1.18-bullseye, 1-buster, 1.19-buster, 1.18-buster | ||
ARG TAG=1.22 | ||
FROM golang:${TAG} | ||
|
||
COPY post-install.sh . | ||
|
||
# Install dependencies | ||
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ | ||
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl | ||
|
||
RUN go install sigs.k8s.io/[email protected] && \ | ||
curl -o kubebuilder \ | ||
-L https://github.com/kubernetes-sigs/kubebuilder/releases/latest/download/kubebuilder_linux_amd64 && \ | ||
chmod +x kubebuilder && \ | ||
mv kubebuilder /usr/local/bin/ && \ | ||
chmod +x post-install.sh |
42 changes: 42 additions & 0 deletions
42
testdata/project-v4-multigroup-with-deploy-image/.devcontainer/devcontainer.json
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,42 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-in-docker | ||
{ | ||
"name": "Kubebuilder DevContainer", | ||
"build": { | ||
"dockerfile": "./Dockerfile", | ||
"context": "." | ||
}, | ||
|
||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:2.11.0": { | ||
"moby": true, | ||
"azureDnsAutoDetection": true, | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": false, | ||
"upgradePackages": true, | ||
"username": "devcontainer", | ||
"userUid": "1001", | ||
"userGid": "1001" | ||
}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"ppa": true, | ||
"version": "system" | ||
}, | ||
"ghcr.io/devcontainers/features/go:1": { | ||
"version": "1.22.0" | ||
} | ||
}, | ||
|
||
"runArgs": ["--network=host"], | ||
// "forwardPorts": [], | ||
|
||
"postCreateCommand": "bash ./.devcontainer/post-install.sh" | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
15 changes: 15 additions & 0 deletions
15
testdata/project-v4-multigroup-with-deploy-image/.devcontainer/post-install.sh
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 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
go version | ||
kubectl version --client | ||
|
||
# Check if Kind cluster already exists. | ||
if kubectl cluster-info &>/dev/null; then | ||
echo "Kind cluster already exists." | ||
else | ||
echo "Kind cluster doesn't exist. Creating new cluster...." | ||
kind create cluster | ||
fi | ||
|
||
kubectl get nodes -o wide |
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,18 @@ | ||
# Build the manager binary | ||
# [Choice] Go version (use -bullseye variants on local arm64/Apple Silicon): | ||
# 1, 1.19, 1.18, 1-bullseye, 1.19-bullseye, 1.18-bullseye, 1-buster, 1.19-buster, 1.18-buster | ||
ARG TAG=1.22 | ||
FROM golang:${TAG} | ||
|
||
COPY post-install.sh . | ||
|
||
# Install dependencies | ||
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ | ||
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl | ||
|
||
RUN go install sigs.k8s.io/[email protected] && \ | ||
curl -o kubebuilder \ | ||
-L https://github.com/kubernetes-sigs/kubebuilder/releases/latest/download/kubebuilder_linux_amd64 && \ | ||
chmod +x kubebuilder && \ | ||
mv kubebuilder /usr/local/bin/ && \ | ||
chmod +x post-install.sh |
42 changes: 42 additions & 0 deletions
42
testdata/project-v4-multigroup/.devcontainer/devcontainer.json
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,42 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-in-docker | ||
{ | ||
"name": "Kubebuilder DevContainer", | ||
"build": { | ||
"dockerfile": "./Dockerfile", | ||
"context": "." | ||
}, | ||
|
||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:2.11.0": { | ||
"moby": true, | ||
"azureDnsAutoDetection": true, | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": false, | ||
"upgradePackages": true, | ||
"username": "devcontainer", | ||
"userUid": "1001", | ||
"userGid": "1001" | ||
}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"ppa": true, | ||
"version": "system" | ||
}, | ||
"ghcr.io/devcontainers/features/go:1": { | ||
"version": "1.22.0" | ||
} | ||
}, | ||
|
||
"runArgs": ["--network=host"], | ||
// "forwardPorts": [], | ||
|
||
"postCreateCommand": "bash ./.devcontainer/post-install.sh" | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
15 changes: 15 additions & 0 deletions
15
testdata/project-v4-multigroup/.devcontainer/post-install.sh
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 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
go version | ||
kubectl version --client | ||
|
||
# Check if Kind cluster already exists. | ||
if kubectl cluster-info &>/dev/null; then | ||
echo "Kind cluster already exists." | ||
else | ||
echo "Kind cluster doesn't exist. Creating new cluster...." | ||
kind create cluster | ||
fi | ||
|
||
kubectl get nodes -o wide |
18 changes: 18 additions & 0 deletions
18
testdata/project-v4-with-deploy-image/.devcontainer/Dockerfile
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,18 @@ | ||
# Build the manager binary | ||
# [Choice] Go version (use -bullseye variants on local arm64/Apple Silicon): | ||
# 1, 1.19, 1.18, 1-bullseye, 1.19-bullseye, 1.18-bullseye, 1-buster, 1.19-buster, 1.18-buster | ||
ARG TAG=1.22 | ||
FROM golang:${TAG} | ||
|
||
COPY post-install.sh . | ||
|
||
# Install dependencies | ||
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ | ||
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl | ||
|
||
RUN go install sigs.k8s.io/[email protected] && \ | ||
curl -o kubebuilder \ | ||
-L https://github.com/kubernetes-sigs/kubebuilder/releases/latest/download/kubebuilder_linux_amd64 && \ | ||
chmod +x kubebuilder && \ | ||
mv kubebuilder /usr/local/bin/ && \ | ||
chmod +x post-install.sh |
42 changes: 42 additions & 0 deletions
42
testdata/project-v4-with-deploy-image/.devcontainer/devcontainer.json
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,42 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-in-docker | ||
{ | ||
"name": "Kubebuilder DevContainer", | ||
"build": { | ||
"dockerfile": "./Dockerfile", | ||
"context": "." | ||
}, | ||
|
||
"features": { | ||
"ghcr.io/devcontainers/features/docker-in-docker:2.11.0": { | ||
"moby": true, | ||
"azureDnsAutoDetection": true, | ||
"version": "latest" | ||
}, | ||
"ghcr.io/devcontainers/features/common-utils:2": { | ||
"installZsh": false, | ||
"upgradePackages": true, | ||
"username": "devcontainer", | ||
"userUid": "1001", | ||
"userGid": "1001" | ||
}, | ||
"ghcr.io/devcontainers/features/git:1": { | ||
"ppa": true, | ||
"version": "system" | ||
}, | ||
"ghcr.io/devcontainers/features/go:1": { | ||
"version": "1.22.0" | ||
} | ||
}, | ||
|
||
"runArgs": ["--network=host"], | ||
// "forwardPorts": [], | ||
|
||
"postCreateCommand": "bash ./.devcontainer/post-install.sh" | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
15 changes: 15 additions & 0 deletions
15
testdata/project-v4-with-deploy-image/.devcontainer/post-install.sh
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 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
go version | ||
kubectl version --client | ||
|
||
# Check if Kind cluster already exists. | ||
if kubectl cluster-info &>/dev/null; then | ||
echo "Kind cluster already exists." | ||
else | ||
echo "Kind cluster doesn't exist. Creating new cluster...." | ||
kind create cluster | ||
fi | ||
|
||
kubectl get nodes -o wide |
Oops, something went wrong.