Skip to content

Commit

Permalink
Merge branch 'main' into merge-v1.17.0
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Dubois <jan.dubois@suse.com>
  • Loading branch information
jandubois committed Jan 7, 2025
2 parents 10c1e28 + b387cc2 commit 4bb3617
Show file tree
Hide file tree
Showing 66 changed files with 520 additions and 204 deletions.
3 changes: 3 additions & 0 deletions .github/actions/setup-environment/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ runs:
if: runner.os == 'Linux'
shell: bash
run: |
sudo apt-get update
sudo apt-get install pass
# Configure the agent to allow default passwords
HOMEDIR="$(gpgconf --list-dirs homedir)" # spellcheck-ignore-line
mkdir -p "${HOMEDIR}"
Expand Down
1 change: 1 addition & 0 deletions .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ gcs
GENERALIZEDTIME
getfattr
getwindowid
gha
ghp
gitmodules
gitrepo
Expand Down
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,16 @@ updates:
patterns: ["golang.org/x/*"]
k8s:
patterns: ["k8s.io/*"]

- package-ecosystem: "gomod"
directory: "/scripts"
schedule:
interval: "daily"
open-pull-requests-limit: 12
labels: ["component/dependencies"]
reviewers: ["jandubois"]
groups:
golang-x:
patterns: ["golang.org/x/*"]
k8s:
patterns: ["k8s.io/*"]
2 changes: 1 addition & 1 deletion .github/workflows/bats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ jobs:

- name: Upload logs
if: ${{ !cancelled() }}
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: ${{ steps.log_name.outputs.name }}
path: logs/
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@babb554ede22fd5605947329c4d04d8e7a0b8155 # v3.27.7
uses: github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
Expand Down Expand Up @@ -79,6 +79,6 @@ jobs:
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@babb554ede22fd5605947329c4d04d8e7a0b8155 # v3.27.7
uses: github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
with:
category: "/language:${{matrix.language}}"
2 changes: 1 addition & 1 deletion .github/workflows/github-runner-build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
sparse-checkout: src/disk-images/github-runner-linux
- run: ./build-image.sh
working-directory: src/disk-images/github-runner-linux
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: github-runner-image.qcow2.zip
path: src/disk-images/github-runner-linux/*.qcow2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-runner-monitor-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
env:
CGO_ENABLED: '0'
GOWORK: off
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: github-runner-linux
path: src/go/github-runner-monitor/github-runner-monitor
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/k3s-versions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Update k3s-versions.json
on:
schedule:
- cron: '43 8 * * *'
workflow_dispatch: {}

permissions:
contents: write
pull-requests: write

jobs:
check-for-token:
outputs:
has-token: ${{ steps.calc.outputs.HAS_SECRET }}
runs-on: ubuntu-latest
steps:
- id: calc
run: echo "HAS_SECRET=${HAS_SECRET}" >> "${GITHUB_OUTPUT}"
env:
HAS_SECRET: ${{ secrets.RUN_WORKFLOW_FROM_WORKFLOW != '' }}

check-update-versions:
needs: check-for-token
if: needs.check-for-token.outputs.has-token == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# we may need to checkout an existing branch, so need the full history
fetch-depth: 0
# Setup go to be able to run `go run ./scripts/k3s-version.go`
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: go.work
- run: ./scripts/k3s-versions.sh
env:
GITHUB_TOKEN: ${{ secrets.RUN_WORKFLOW_FROM_WORKFLOW }}
2 changes: 1 addition & 1 deletion .github/workflows/linux-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
CI: true
timeout-minutes: 150
- name: Upload failure reports
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: always()
with:
name: failure-reports.zip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macM1-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
if: failure()
run: mkdir -p ./e2e/reports
- name: Upload Artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: failure()
with:
name: e2etest-artifacts
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,42 +62,42 @@ jobs:
if: matrix.platform == 'linux'
run: make -C bats bats.tar.gz
- name: Upload bats.tar.gz
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: matrix.platform == 'linux'
with:
name: bats.tar.gz
path: bats/bats.tar.gz
if-no-files-found: error
- name: Upload mac disk image
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: matrix.platform == 'mac'
with:
name: Rancher Desktop.${{ matrix.arch }}.dmg
path: dist/Rancher Desktop*.dmg
if-no-files-found: error
- name: Upload mac zip
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: matrix.platform == 'mac'
with:
name: Rancher Desktop-mac.${{ matrix.arch }}.zip
path: dist/Rancher Desktop*.zip
if-no-files-found: error
- name: Upload Windows installer
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: matrix.platform == 'win'
with:
name: Rancher Desktop Setup.msi
path: dist/Rancher.Desktop*.msi
if-no-files-found: error
- name: Upload Windows zip
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: matrix.platform == 'win'
with:
name: Rancher Desktop-win.zip
path: dist/Rancher Desktop-*-win.zip
if-no-files-found: error
- name: Upload Linux zip
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: matrix.platform == 'linux'
with:
name: Rancher Desktop-linux.zip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rdx-host-api-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
persist-credentials: false
- uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
- uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
- uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
- uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
id: meta
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v3.pre.node20
with:
name: SARIF file
path: results.sarif
Expand All @@ -60,6 +60,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard (optional).
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@babb554ede22fd5605947329c4d04d8e7a0b8155 # v3.27.7
uses: github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
with:
sarif_file: results.sarif
6 changes: 3 additions & 3 deletions .github/workflows/screenshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ jobs:
RD_ENV_SCREENSHOT_SLEEP: 5000
RD_LOGS_DIR: logs
- name: Upload screenshots
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: screenshots-${{ matrix.platform }}.zip
path: screenshots/output/
if-no-files-found: error
- name: Upload logs
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: always()
with:
name: logs-${{ matrix.platform }}.zip
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
gm composite -gravity center in/darwin/light/preferences/*_kubernetes.png in/darwin/light/main/*_General.png darwin.png
gm composite -gravity center in/win32/light/preferences/*_kubernetes.png in/win32/light/main/*_General.png win32.png
gm convert darwin.png win32.png +append out/getting-started/introduction_preferences_tabKubernetes.png
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: screenshots.zip
path: out
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/smoke-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,31 +52,31 @@ jobs:
GH_TOKEN: ${{ github.token }}

- name: Upload macOS aarch-64 artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: application-macos-aarch64.zip
if-no-files-found: error
path: |
*.aarch64.dmg
*.aarch64.dmg.sha512sum
- name: Upload macOS x86_64 artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: application-macos-x86_64.zip
if-no-files-found: error
path: |
*.x86_64.dmg
*.x86_64.dmg.sha512sum
- name: Upload Windows artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: application-win32.zip
if-no-files-found: error
path: |
*.msi
*.msi.sha512sum
- name: Upload Linux artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: application-linux.zip
if-no-files-found: error
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
- run: ${{ env.EXEC_COMMAND }} .github/workflows/smoke-test/smoke-test.sh
shell: bash
- name: Upload logs
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: always()
with:
name: logs-${{ matrix.platform }}.zip
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/smoke-test/smoke-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ install_linux() {

sudo mkdir -p /opt/rancher-desktop
sudo unzip -d /opt/rancher-desktop "$archiveName"
sudo chmod 4755 /opt/rancher-desktop/chrome-sandbox

RDCTL="/opt/rancher-desktop/resources/resources/linux/bin/rdctl"
}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/upgrade-generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- run: yarn package
- name: Upload Windows installer
if: runner.os == 'Windows'
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: Rancher Desktop Setup.msi
path: dist/Rancher.Desktop*.msi
Expand All @@ -37,13 +37,13 @@ jobs:
run: cat dist/electron-builder.yaml
- name: Upload Windows build information
if: runner.os == 'Windows'
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: build-info.yml
path: dist/electron-builder.yaml
if-no-files-found: error
- name: Upload macOS archive
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: matrix.platform == 'mac'
with:
name: Rancher Desktop-mac.${{ matrix.arch }}.zip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
env:
RD_DEBUG_ENABLED: '1'
- name: Upload failure reports
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: always()
with:
name: e2etest-artifacts
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ you'll need to `source` that file.
Currently we build Rancher Desktop with Node 20. To install it, run:

```
nvm install 20.17
nvm install 20.16
```

Next, you'll need to install the yarn package manager:
Expand Down
1 change: 1 addition & 0 deletions background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import * as window from '@pkg/window';
import { closeDashboard, openDashboard } from '@pkg/window/dashboard';
import { openPreferences, preferencesSetDirtyFlag } from '@pkg/window/preferences';

Electron.app.setPath('userData', path.join(paths.appHome, 'electron'));
Electron.app.setPath('cache', paths.cache);
Electron.app.setAppLogsPath(paths.logs);

Expand Down
2 changes: 0 additions & 2 deletions bats/tests/utils/spin.bats
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ dir_exists() {
}

@test 'plugins are installed' {
run dir_exists "${SPIN_DATA_DIR}/plugins/js2wasm"
assert_success
run dir_exists "${SPIN_DATA_DIR}/plugins/kube"
assert_success
}
Expand Down
1 change: 1 addition & 0 deletions go.work
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ go 1.23.0
toolchain go1.23.4

use (
./scripts
./src/go/docker-credential-none
./src/go/extension-proxy
./src/go/github-runner-monitor
Expand Down
Loading

0 comments on commit 4bb3617

Please sign in to comment.