Commit Graph

22 Commits

Author SHA1 Message Date
justinsb 42072e9d74 fix: allow path-remapping in `set` commands
We remap field paths to their internal forms, where the mapping is well-known.
2024-10-12 19:10:14 -04:00
John Gardiner Myers cac4d2c080 More "kops set" cleanup 2021-07-14 13:09:08 -07:00
Bharath Vedartham 49f3ab0703 Throw error if path being set by kops set is not present in struct 2021-01-31 12:00:42 +05:30
Bharath Vedartham 515fbf1c1c set_cluster: Remove unused instanceGroup parameter from setClusterFields 2021-01-30 14:31:49 +05:30
Justin SB c63ce4b5ab Implement setter by reflection
This means we no longer have to individually hard-code the `kops set`
fields, however we use the "language" we're now demonstrated.

We add tests to ensure we have parity with our existing (hard-coded)
setter logic.
2020-08-30 09:59:52 -04:00
Peter Rifel 7d9f0a06cf
Update API slice fields to not use pointers
This is causing problems with the Kubernetes 1.19 code-generator.
A nil entry in these slices wouldn't be valid anyways, so this should have no impact.
2020-08-24 07:46:38 -05:00
Ole Markus With cf9a5c0289 Add ability to set various cilium flags through CLI
Needed for a new e2e cilium test
2020-07-07 21:04:23 +02:00
Ciprian Hacman 1bd7f633ca Update override flag for Docker SELinux 2020-06-12 06:19:09 +03:00
Fabio Bertinatto 0d5a565920 Allow docker options to be specified by create cluster overrides
This will allow our end-to-end testing to enable SELinux.
2020-06-10 15:55:58 +02:00
Justin Santa Barbara 31bb16d4d1 Add context.Context to most signatures
The client-go signature for most methods adds a context.Context
object, and also makes Options mandatory.  Feed through a
context.Context through many of our methods (but use context.TODO to
stop it getting totally out of hand!)
2020-04-11 14:44:17 -04:00
John Gardiner Myers 8844b97fe3 Fix field names in api validation 2020-02-15 14:52:27 -08:00
Peter Rifel b7960f04d4 Allow CoreDNS to be specified by create cluster overrides
This will more easily allow our end-to-end testing to use CoreDNS rather than KubeDNS
2020-01-14 08:14:33 -06:00
mikesplain 9e55b8230a Update copyright notices
Also cleans some white spaces
2019-09-09 14:47:51 -04:00
Camilo Santana 78d16f2467
fixes typo - s/(Spec.)m(asterPublicName)/$1M$2/
pull-kops-e2e-kubernetes-aws — Job failed. [Details](https://prow.k8s.io/view/gcs/kubernetes-jenkins/pr-logs/pull/kops/7160/pull-kops-e2e-kubernetes-aws/1141685394924900352/)
```
I0620 12:37:27.976] /root/.cache/bazel/_bazel_prow/ae5d1f01453377487c630b230ced7d61/sandbox/linux-sandbox/836/execroot/__main__/pkg/commands/set_cluster.go:97:16: cluster.Spec.masterPublicName undefined (type "k8s.io/kops/pkg/apis/kops".ClusterSpec has no field or method masterPublicName, but does have MasterPublicName)
```

fixes typo
2019-06-20 13:43:46 -07:00
Camilo Santana 1bff3f1841
add masterPublicName support in kops set cluster 2019-06-18 13:07:49 -07:00
Adrian Fedoreanu e3f7fa5768
add support to set cluster spec.kubelet
* spec.kubelet.authorizationMode
* spec.kubelet.authenticationTokenWebhook
2019-03-15 11:04:45 +01:00
Justin SB 83ea1c491b
Normalize etcd cluster provider names
Instead of just casting a string, we validate and normalize.
2019-01-29 23:22:29 -05:00
Justin Santa Barbara b56457dc05 kops set: support for enableEtcdTLS and enableTLSAuth
These shortcut commands make it easy to set enableEtcdTLS and
enableTLSAuth.

`kops set cluster cluster.spec.etcdClusters[*].enableEtcdTLS=true`

`kops set cluster cluster.spec.etcdClusters[*].enableTLSAuth=true`
2018-11-24 22:27:15 -05:00
Justin Santa Barbara 54c499fe9b Introduce field to specify whether we are using etcd-manager or legacy mode
Splitting this out from the bigger bundle PR
2018-10-01 15:36:24 -07:00
Justin Santa Barbara 73eb8270b7 Create override for etcd-manager image 2018-05-26 12:48:55 -07:00
Justin Santa Barbara 81d5f06a58 Unify create-create overrides and set-cluster fields
Supports e2e upgrade tests
2018-05-09 11:55:44 -04:00
Justin Santa Barbara 6f52996c2a Experimental kops set cluster command
Introduce an experimental kops set cluster command, for setting
individual fields in the same style as the kops create cluster
--override flags.

For now, feature flag gated by the same SpecOverrideFlag feature flag.

Also split out pkg/commands package to facilitate testing.
2018-02-26 09:33:16 -05:00