You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor tolerations arguments for the install command (#82)
* feat: ignore idea files
* chore: run go fmt
* refactor: use k8s api for tolerations
* refactor: tolerations arguments
* chore: update install options in README
* chore: bump version to 0.30.0
| --build-annotations | stringArray | The kubernetes metadata.annotations as "key=value" to be used by venona build resources (default is no node selector) |
35
+
| --build-node-selector | string | The kubernetes node selector "key=value" to be used by venona build resources (default is no node selector) |
34
36
| --cluster-name | string | cluster name (if not passed runtime-environment will be created cluster-less); this is a friendly name used for metadata does not need to match the literal cluster name. Limited to 20 Characters. |
35
37
| --dry-run | boolean | Set to true to simulate installation |
36
-
| -h, --help || help for install |
38
+
| -h, --help |boolean | help for install |
37
39
| --in-cluster | boolean | Set flag if venona is been installed from inside a cluster |
38
40
| --kube-context-name | string | Name of the kubernetes context on which venona should be installed (default is current-context) [$KUBE_CONTEXT]|
39
-
| --kube-namespace | string | Name of the namespace on which venona should be installed [$KUBE_NAMESPACE]|
40
-
| --kubernetes-runner-type | string | Set the runner type to kubernetes (alpha feature) |
41
-
| --only-runtime-environment | boolean | Set to true to only configure namespace as runtime-environment for Codefresh |
41
+
| --kube-namespace | string |Name of the namespace on which venona should be installed [$KUBE_NAMESPACE]|
42
+
| --kube-node-selector | string | The kubernetes node selector "key=value" to be used by venona resources (default is no node selector) |
43
+
| --kubernetes-runner-type | boolean | Set the runner type to kubernetes (alpha feature) |
44
+
| --only-runtime-environment | boolean | Set to true to onlky configure namespace as runtime-environment for Codefresh |
42
45
| --runtime-environment | string | if --skip-runtime-installation set, will try to configure venona on current runtime-environment |
43
46
| --set-default | boolean | Mark the install runtime-environment as default one after installation |
44
47
| --skip-runtime-installation | boolean | Set flag if you already have a configured runtime-environment, add --runtime-environment flag with name |
45
48
| --storage-class | string | Set a name of your custom storage class, note: this will not install volume provisioning components |
49
+
| --tolerations | string | The kubernetes tolerations as JSON string to be used by venona resources (default is no tolerations). If prefixed with "@", loads from a file: @/tmp/tolerations.json |
46
50
| --venona-version | string | Version of venona to install (default is the latest) |
47
51
48
52
#### Install on cluster version < 1.10
@@ -84,8 +88,8 @@ List of the resources that will be created
84
88
* `cluster-role-binding.dind-volume-provisioner.yaml` - Binds the ClusterRole to `service-account.dind-volume-provisioner.re.yaml`
85
89
86
90
### Access the cluster from executed pipeline
87
-
After a successfull installation of Venona, you'll be able to run a Codefresh pipeline on the configured cluster.
88
-
However, the pipeline itself dosent have any permission to connect to the hosted cluster.
91
+
After a successfull installation of Venona, you'll be able to run a Codefresh pipeline on the configured cluster.
92
+
However, the pipeline itself dosent have any permission to connect to the hosted cluster.
89
93
To make it work you need to add the cluster to Codefresh (make sure the service acount has all the permissions you need)
installCmd.Flags().StringVar(&installCmdOptions.kube.nodeSelector, "kube-node-selector", "", "The kubernetes node selector \"key=value\" to be used by venona resources (default is no node selector)")
225
223
installCmd.Flags().StringVar(&installCmdOptions.buildNodeSelector, "build-node-selector", "", "The kubernetes node selector \"key=value\" to be used by venona build resources (default is no node selector)")
226
224
installCmd.Flags().StringArrayVar(&installCmdOptions.buildAnnotations, "build-annotations", []string{}, "The kubernetes metadata.annotations as \"key=value\" to be used by venona build resources (default is no node selector)")
227
-
installCmd.Flags().StringVar(&installCmdOptions.tolerationJsonString, "tolerations", "", "The kubernetes tolerations as JSON string to be used by venona resources (default is no tolerations)")
225
+
installCmd.Flags().StringVar(&installCmdOptions.tolerations, "tolerations", "", `The kubernetes tolerations as JSON string to be used by venona resources (default is no tolerations). If prefixed with "@", loads from a file: @/tmp/tolerations.json`)
228
226
229
227
installCmd.Flags().BoolVar(&installCmdOptions.skipRuntimeInstallation, "skip-runtime-installation", false, "Set flag if you already have a configured runtime-environment, add --runtime-environment flag with name")
230
228
installCmd.Flags().BoolVar(&installCmdOptions.kube.inCluster, "in-cluster", false, "Set flag if venona is been installed from inside a cluster")
0 commit comments