Skip to content

Commit

Permalink
bump system-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonWAffel committed Oct 2, 2024
1 parent 9e7d8aa commit 9ef5c4c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ ENV CATTLE_WINS_AGENT_UNINSTALL_SCRIPT https://raw.githubusercontent.com/rancher
ENV CATTLE_WINS_AGENT_UPGRADE_IMAGE rancher/wins:${CATTLE_WINS_AGENT_VERSION}
ENV CATTLE_CSI_PROXY_AGENT_VERSION v1.1.3
# make sure the CATTLE_SYSTEM_AGENT_VERSION is consistent with tests/v2/codecoverage/package/Dockerfile
ENV CATTLE_SYSTEM_AGENT_VERSION v0.3.9
ENV CATTLE_SYSTEM_AGENT_VERSION v0.3.10-rc.1
ENV CATTLE_SYSTEM_AGENT_DOWNLOAD_PREFIX https://github.com/rancher/system-agent/releases/download
ENV CATTLE_SYSTEM_AGENT_UPGRADE_IMAGE rancher/system-agent:${CATTLE_SYSTEM_AGENT_VERSION}-suc
ENV CATTLE_SYSTEM_AGENT_INSTALLER_IMAGE rancher/system-agent-installer-
Expand Down
3 changes: 1 addition & 2 deletions pkg/capr/planner/planner.go
Original file line number Diff line number Diff line change
Expand Up @@ -1091,8 +1091,7 @@ func (p *Planner) desiredPlan(controlPlane *rkev1.RKEControlPlane, tokensSecret

if windows(entry) {
// We need to wait for the controlPlane to be ready before sending this plan
// to ensure that the initial installation has fully completed and all files have been
// written to disk. If all required files already have the proper ACLs, this plan will noop.
// to ensure that the initial installation has fully completed
if controlPlane.Status.Ready {
nodePlan.Files = append(nodePlan.Files, setPermissionsWindowsScriptFile)
nodePlan.Instructions = append(nodePlan.Instructions, setPermissionsWindowsScriptInstruction)
Expand Down
8 changes: 4 additions & 4 deletions pkg/capr/planner/windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ var (
setPermissionsWindowsScriptFile = plan.File{
Content: base64.StdEncoding.EncodeToString([]byte(
fmt.Sprintf(setPermissionsWindowsScript,
"c:\\var\\lib\\rancher\\rke2", // RKE2 data dir
"c:\\var\\lib\\rancher\\agent", // System agent dir
"c:\\var\\lib\\rancher\\capr"))), // Provisioning dir
"c:\\var\\lib\\rancher\\rke2",
"c:\\var\\lib\\rancher\\agent",
"c:\\var\\lib\\rancher\\capr"))),

Path: fmt.Sprintf(setPermissionsWindowsScriptPath,
"c:\\var\\lib\\rancher\\capr"), // provisioning dir
"c:\\var\\lib\\rancher\\capr"),
Dynamic: true,
Minor: true,
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/settings/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ var (
WinsAgentVersion = NewSetting("wins-agent-version", "")
CSIProxyAgentVersion = NewSetting("csi-proxy-agent-version", "")
CSIProxyAgentURL = NewSetting("csi-proxy-agent-url", "https://acs-mirror.azureedge.net/csi-proxy/%[1]s/binaries/csi-proxy-%[1]s.tar.gz")
SystemAgentInstallScript = NewSetting("system-agent-install-script", "https://github.com/rancher/system-agent/releases/download/v0.3.9/install.sh") // To ensure consistency between SystemAgentInstallScript default value and CATTLE_SYSTEM_AGENT_INSTALL_SCRIPT to utilize the local system-agent-install.sh script when both values are equal.
SystemAgentInstallScript = NewSetting("system-agent-install-script", "https://github.com/rancher/system-agent/releases/download/v0.3.10-rc.1/install.sh") // To ensure consistency between SystemAgentInstallScript default value and CATTLE_SYSTEM_AGENT_INSTALL_SCRIPT to utilize the local system-agent-install.sh script when both values are equal.
WinsAgentInstallScript = NewSetting("wins-agent-install-script", "https://raw.githubusercontent.com/rancher/wins/v0.4.19-rc.1/install.ps1")
SystemAgentInstallerImage = NewSetting("system-agent-installer-image", "") // Defined via environment variable
SystemAgentUpgradeImage = NewSetting("system-agent-upgrade-image", "") // Defined via environment variable
Expand Down
2 changes: 1 addition & 1 deletion tests/v2/codecoverage/package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ENV CATTLE_WINS_AGENT_UNINSTALL_SCRIPT https://raw.githubusercontent.com/rancher
ENV CATTLE_WINS_AGENT_UPGRADE_IMAGE rancher/wins:${CATTLE_WINS_AGENT_VERSION}
ENV CATTLE_CSI_PROXY_AGENT_VERSION v1.1.3
# make sure the CATTLE_SYSTEM_AGENT_VERSION is consistent with tests/v2/codecoverage/package/Dockerfile
ENV CATTLE_SYSTEM_AGENT_VERSION v0.3.9
ENV CATTLE_SYSTEM_AGENT_VERSION v0.3.10-rc.1
ENV CATTLE_SYSTEM_AGENT_DOWNLOAD_PREFIX https://github.com/rancher/system-agent/releases/download
ENV CATTLE_SYSTEM_AGENT_UPGRADE_IMAGE rancher/system-agent:${CATTLE_SYSTEM_AGENT_VERSION}-suc
ENV CATTLE_SYSTEM_AGENT_INSTALLER_IMAGE rancher/system-agent-installer-
Expand Down

0 comments on commit 9ef5c4c

Please sign in to comment.