⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

MultiMx/K8sSetImageAction

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K8sSetImageAction

Update Rancher Deployment Image Address Action

Usage

Patch Deployment with Token

- name: Update Workload
  uses: MultiMx/[email protected]
  with:
    server: "https://my-cluster"
    token: "token-aaa:bbb"
    namespace: "default"
    workload: "ingress-nginx-controller"
    image: "registry.example/repo:tag"

Patch and Wait Workload Ready

- name: Update Workload
  uses: MultiMx/[email protected]
  with:
    server: "https://my-cluster"
    token: "token-aaa:bbb"
    namespace: "default"
    workload: "ingress-nginx-controller"
    image: "registry.example/repo:tag"
    wait: true
    maxWaitDuration: "10m" # optional, default 5m

Parameters

Options further down the list have higher priority. For example, if Option B is set, Option A will be ignored.

Credentials Option A: Server & Token

Parameter Required Default Description
server O Kubeconfig cluster server
skipTLSVerify X false Skip server TLS verify
token O Kubeconfig user token

Credentials Option B / C: Kubeconfig

Parameter Required Default Description
kubeconfigFile X Option B. Path of kubeconfig file
kubeconfigInline X Option C. Inline content of kubeconfig

Workload

Parameter Required Default Description
controller X deployment Controller of workload
namespace O Namespace of workload
workload O Name of workload
maxPatchRetry X 5 Max retry times for patch
wait X false Wait until workload ready
maxWaitDuration X 5m Max wait duration, will fail if timeout

Patch Option A: Generate Body

Parameter Required Default Description
container X container-0 Name of container
image O Target image field value

Patch Option B: Custom Body

Parameter Required Default Description
contentType X application/strategic-merge-patch+json Content-Type header of patch operation
body O JSON body of patch operation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published