Compare commits

..

2 Commits

Author SHA1 Message Date
Hussein Galal
0682b11100 Add version to cli (#32)
* Add version flag to cli

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>

* Add version to cluster spec

---------

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2023-02-03 14:36:06 +02:00
Hussein Galal
1f2595edfb Use new version scheme for the chart (#31) 2023-02-03 14:18:21 +02:00
3 changed files with 11 additions and 3 deletions

View File

@@ -2,5 +2,5 @@ apiVersion: v2
name: k3k
description: A Helm chart for K3K
type: application
version: 0.1.0
appVersion: 0.1.0
version: 0.1.1
appVersion: 0.0.0-alpha3

View File

@@ -5,7 +5,7 @@ image:
repository: husseingalal/k3k
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
tag: "v0.0.0-alpha3"
imagePullSecrets: []
nameOverride: ""

View File

@@ -34,6 +34,7 @@ var (
agents int64
serverArgs cli.StringSlice
agentArgs cli.StringSlice
version string
clusterCreateFlags = []cli.Flag{
cli.StringFlag{
@@ -77,6 +78,12 @@ var (
Usage: "agents extra arguments",
Value: &agentArgs,
},
cli.StringFlag{
Name: "version",
Usage: "k3s version",
Destination: &version,
Value: "v1.26.1+k3s1",
},
}
)
@@ -146,6 +153,7 @@ func newCluster(name, token string, servers, agents int32, clusterCIDR, serviceC
ServiceCIDR: serviceCIDR,
ServerArgs: serverArgs,
AgentArgs: agentArgs,
Version: version,
},
}
}