-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip: add custom k3s image * wip: be more sane * note * not default, publish on main * workflow diff * multi-version publish * matrix time * fix matrix * test bettererer * vvvvvvvvvvvvvvvvvvvvvvvvvv * fixy wixy * buildx, naming vars
- Loading branch information
Showing
7 changed files
with
145 additions
and
32 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,44 @@ | ||
name: Test UDS Capability | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- "**.md" | ||
- "docs/**" | ||
- "CODEOWNERS" | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
jobs: | ||
test-clean-install: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
image: ["ghcr.io/defenseunicorns/oss/uds-k3d-k3s"] | ||
version: ["v1.27.11-k3s1", "v1.28.7-k3s1", "v1.29.2-k3s1"] | ||
# Test the default image as well | ||
include: | ||
- image: "rancher/k3s" | ||
version: "v1.27.4-k3s1" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup UDS | ||
if: always() | ||
uses: defenseunicorns/uds-common/.github/actions/[email protected] | ||
with: | ||
username: ${{secrets.IRON_BANK_ROBOT_USERNAME}} | ||
password: ${{secrets.IRON_BANK_ROBOT_PASSWORD}} | ||
|
||
- name: Build the custom k3s image | ||
if: ${{matrix.image}} != "rancher/k3s" | ||
run: uds run build-image --set VERSION=${{matrix.version}} | ||
|
||
- name: Create and deploy the uds-k3d package | ||
run: uds run --set IMAGE_NAME=${{matrix.image}} --set VERSION=${{matrix.version}} | ||
|
||
- name: Validate uds-k3d package | ||
run: uds run validate |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Publish k3s image | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- docker/** | ||
- .github/workflows/publish-image.yaml | ||
|
||
jobs: | ||
publish-k3s-image: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
version: ["v1.27.11-k3s1", "v1.28.7-k3s1", "v1.29.2-k3s1"] | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup UDS | ||
if: always() | ||
uses: defenseunicorns/uds-common/.github/actions/[email protected] | ||
with: | ||
username: ${{secrets.IRON_BANK_ROBOT_USERNAME}} | ||
password: ${{secrets.IRON_BANK_ROBOT_PASSWORD}} | ||
|
||
- name: Login to GHCR | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: dummy | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish the custom k3s image | ||
run: uds run publish-image --set VERSION=${{matrix.version}} |
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 |
---|---|---|
|
@@ -34,7 +34,10 @@ jobs: | |
|
||
- name: Setup UDS | ||
if: always() | ||
uses: defenseunicorns/uds-common/.github/actions/[email protected] | ||
uses: defenseunicorns/uds-common/.github/actions/[email protected] | ||
with: | ||
username: ${{secrets.IRON_BANK_ROBOT_USERNAME}} | ||
password: ${{secrets.IRON_BANK_ROBOT_PASSWORD}} | ||
|
||
- name: Login to GHCR | ||
uses: docker/login-action@v3 | ||
|
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,5 @@ | ||
ARG K3S_TAG="v1.28.7-k3s1" | ||
|
||
FROM rancher/k3s:$K3S_TAG as k3s | ||
|
||
COPY config.toml.tmpl /var/lib/rancher/k3s/agent/etc/containerd/config.toml.tmpl |
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,27 @@ | ||
# This is a custom configuration that has a specific registry cert config removed to prevent zarf init issues. | ||
version = 2 | ||
|
||
[plugins."io.containerd.internal.v1.opt"] | ||
path = "/var/lib/rancher/k3s/agent/containerd" | ||
|
||
[plugins."io.containerd.grpc.v1.cri"] | ||
stream_server_address = "127.0.0.1" | ||
stream_server_port = "10010" | ||
enable_selinux = false | ||
enable_unprivileged_ports = true | ||
enable_unprivileged_icmp = true | ||
sandbox_image = "rancher/mirrored-pause:3.6" | ||
|
||
[plugins."io.containerd.grpc.v1.cri".containerd] | ||
snapshotter = "overlayfs" | ||
disable_snapshot_annotations = true | ||
|
||
[plugins."io.containerd.grpc.v1.cri".cni] | ||
bin_dir = "/bin" | ||
conf_dir = "/var/lib/rancher/k3s/agent/etc/cni/net.d" | ||
|
||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc] | ||
runtime_type = "io.containerd.runc.v2" | ||
|
||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options] | ||
SystemdCgroup = false |
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