mirror of
https://github.com/kairos-io/provider-k3s.git
synced 2025-08-31 12:49:27 +00:00
added omitempty tag to cluster init for worker nodes
Signed-off-by: Piyush Kumar <k17piyush@gmail.com>
This commit is contained in:
44
.github/workflows/publish.yaml
vendored
44
.github/workflows/publish.yaml
vendored
@@ -1,44 +0,0 @@
|
|||||||
name: Publish
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- v*
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
images:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
base-image:
|
|
||||||
- quay.io/kairos/core-opensuse-leap:v2.3.2
|
|
||||||
- quay.io/kairos/core-ubuntu-20-lts:v2.3.2
|
|
||||||
- quay.io/kairos/core-ubuntu-22-lts:v2.3.2
|
|
||||||
k3s-version:
|
|
||||||
- v1.26.4+k3s1
|
|
||||||
- v1.25.2+k3s1
|
|
||||||
- v1.25.0+k3s1
|
|
||||||
- v1.24.6+k3s1
|
|
||||||
- v1.24.4+k3s1
|
|
||||||
- v1.23.12+k3s1
|
|
||||||
- v1.23.10+k3s1
|
|
||||||
- v1.22.15+k3s1
|
|
||||||
- v1.22.13+k3s1
|
|
||||||
env:
|
|
||||||
REGISTRY: quay.io
|
|
||||||
REGISTRY_USER: ${{ secrets.QUAY_USERNAME }}
|
|
||||||
REGISTRY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: docker-practice/actions-setup-docker@master
|
|
||||||
- uses: earthly/actions-setup@v1
|
|
||||||
with:
|
|
||||||
version: "v0.6.30"
|
|
||||||
- run: echo $REGISTRY_PASSWORD | docker login -u $REGISTRY_USER --password-stdin $REGISTRY
|
|
||||||
- run: env | grep ACTIONS_ID_TOKEN_REQUEST > .env
|
|
||||||
- run: env | grep REGISTRY >> .env
|
|
||||||
- run: earthly --ci --push +docker-all-platforms --K3S_VERSION=${{ matrix.k3s-version }} --BASE_IMAGE=${{ matrix.base-image }}
|
|
||||||
- run: earthly --ci +cosign-all-platforms --K3S_VERSION=${{ matrix.k3s-version }} --BASE_IMAGE=${{ matrix.base-image }}
|
|
||||||
|
|
19
.github/workflows/pull_request.yaml
vendored
19
.github/workflows/pull_request.yaml
vendored
@@ -35,22 +35,3 @@ jobs:
|
|||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- run: earthly --ci +provider-package-all-platforms --IMAGE_REPOSITORY=ghcr.io/kairos-io
|
- run: earthly --ci +provider-package-all-platforms --IMAGE_REPOSITORY=ghcr.io/kairos-io
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
id-token: write
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
base-image:
|
|
||||||
- quay.io/kairos/core-opensuse-leap:v2.3.2
|
|
||||||
- quay.io/kairos/core-ubuntu-20-lts:v2.3.2
|
|
||||||
- quay.io/kairos/core-ubuntu-22-lts:v2.3.2
|
|
||||||
k3s-version:
|
|
||||||
- v1.25.0+k3s1
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: docker-practice/actions-setup-docker@master
|
|
||||||
- uses: earthly/actions-setup@v1
|
|
||||||
with:
|
|
||||||
version: "v0.6.30"
|
|
||||||
- run: earthly --ci +docker-all-platforms --K3S_VERSION=${{ matrix.k3s-version }} --BASE_IMAGE=${{ matrix.base-image }}
|
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -18,3 +18,4 @@ build/
|
|||||||
*.out
|
*.out
|
||||||
|
|
||||||
.local
|
.local
|
||||||
|
.DS_Store
|
||||||
|
@@ -1,8 +1,7 @@
|
|||||||
package api
|
package api
|
||||||
|
|
||||||
type K3sServerConfig struct {
|
type K3sServerConfig struct {
|
||||||
// ClusterInit must not have an omitempty tag, otherwise it is elided by JSON/YAML encoders when false.
|
ClusterInit bool `yaml:"cluster-init,omitempty" json:"cluster-init,omitempty"`
|
||||||
ClusterInit bool `yaml:"cluster-init" json:"cluster-init"`
|
|
||||||
Token string `yaml:"token,omitempty" json:"token,omitempty"`
|
Token string `yaml:"token,omitempty" json:"token,omitempty"`
|
||||||
Server string `yaml:"server,omitempty" json:"server,omitempty"`
|
Server string `yaml:"server,omitempty" json:"server,omitempty"`
|
||||||
TLSSan []string `yaml:"tls-san,omitempty" json:"tls-san,omitempty"`
|
TLSSan []string `yaml:"tls-san,omitempty" json:"tls-san,omitempty"`
|
||||||
|
Reference in New Issue
Block a user