justinsb
b4306a390c
tests: set AllInstanceGroups alongside InstanceGroups
2024-11-09 14:57:24 -05:00
justinsb
6e036b39c2
refactor: move more nodeup script logic to NodeUpScript
...
This enables simpler reuse.
2024-08-30 09:14:49 -04:00
justinsb
192b880434
chore: refactor MirroredAsset into assets
...
This seems logically coherent, and is part of the work to start using
compiled-in hashes for most well-known assets.
2024-03-30 10:34:27 -04:00
Ciprian Hacman
dee3ecc530
Fix bootstrap script proxy test
2024-03-06 06:46:30 +02:00
justinsb
50776a7e92
Refactor ForAPIServer
...
We instead return a list of the services we are supporting.
We can in future split out internal and external apiserver services.
2024-01-12 15:53:41 -05:00
Ciprian Hacman
c43b48a8d8
Remove Docker config option
2023-09-05 07:22:33 +03:00
Ciprian Hacman
cbddb4a9fd
Remove duplicate Cluster field from tests
2023-06-20 12:19:04 +03:00
John Gardiner Myers
0e11075012
v1alpha3: Move GCE-specific CloudConfig settings to GCESpec
2022-12-20 19:44:32 -08:00
John Gardiner Myers
4d309b0b36
Move Cluster into CloudupSubContext
2022-12-20 08:11:01 -08:00
John Gardiner Myers
7c3e32369a
Refactor Context into separate cloudup and nodeup types
2022-12-17 17:42:46 -08:00
John Gardiner Myers
235aa61594
v1alpha3: move networking fields under networking
2022-12-02 19:19:59 -08:00
John Gardiner Myers
6536c0b301
v1alpha3: use new terminology for kubelet config
2022-11-25 16:53:23 -08:00
John Gardiner Myers
d39ba74bd7
Change the control-plane IG role to "ControlPlane" in v1alpha3 API
2022-11-22 17:05:29 -08:00
Ciprian Hacman
8f79c9bd68
Replace fi.Bool/Float*/Int*/String() with fi.PtrTo()
2022-11-19 03:45:22 +02:00
John Gardiner Myers
cac727c357
Make cloudProvider a struct in v1alpha3 API
2022-03-02 21:59:49 -08:00
justinsb
994ac19b42
Use fi.Keyset instead of passing tasks around
...
Using a task leads to layering complexity. We could introduce a new
type, but fi.Keyset is the type we seem to want.
(We could move Keyset out of fi, but we don't need to yet)
Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2021-12-20 23:24:32 -05:00
justinsb
e2c28b062b
Refactor nodeup script to avoid action-at-a-distance
2021-12-17 18:33:44 -05:00
John Gardiner Myers
ef754ce71f
Make requests and limits be *resource.Quantity
2021-11-29 22:50:31 -08:00
John Gardiner Myers
e9fc12b4f3
Fix certificate bootstrap for non-kops-controller-bootstrap cloud providers
2021-07-18 13:37:19 -07:00
John Gardiner Myers
c35d101a89
Refactor keysets for etcd-manager
2021-07-08 18:46:03 -07:00
John Gardiner Myers
1e0c6cb1aa
Refactor apiserver-aggregator-ca
2021-07-01 22:25:47 -07:00
John Gardiner Myers
3de05a500e
Refactor etcd-clients-ca keyset for api-server
2021-06-30 18:55:30 -07:00
John Gardiner Myers
e1df9f09dd
Refactor service-account public keys
2021-06-27 08:45:06 -07:00
John Gardiner Myers
2faf28379a
Refactor etcd-client-cilium secrets
2021-06-25 23:57:23 -07:00
John Gardiner Myers
1752f0f4db
Move most of nodeup.Config out of userdata
2021-06-25 22:25:49 -07:00
John Gardiner Myers
a83bf7b20f
Mark nodes NeedsUpdate when keys they use change
2021-06-21 19:37:23 -07:00
John Gardiner Myers
c3c1aca3c1
Include AuxConfig output in TestBootstrapUserData
2021-06-03 21:09:45 -07:00
John Gardiner Myers
2e1629c610
Introduce nodeup.AuxConfig
2021-06-03 20:37:22 -07:00
Ciprian Hacman
bd7176f45f
Replace convenience functions with fi.* alternatives
2021-04-30 11:26:48 +03:00
Justin SB
4ac9d5c17b
Boot nodes without state store access
...
kops-controller can now serve the instance group & cluster config to
nodes, as part of the bootstrap process.
This enables nodes to boot without access to the state
store (i.e. without S3 / GCS / etc permissions)
Feature-flagged behind the KopsControllerStateStore feature-flag.
2021-01-09 13:08:48 -05:00
Justin SB
7d9ff3ba96
Refactor MirroredAsset into mirrors package
...
This means we can use MirroredAsset for nodeup without circular
dependencies. Also removes a duplicate constant that was declared
twice.
2020-12-19 18:39:09 -05:00
Justin SB
45d11ba12c
Replace (some) deprecated ResourceHolder with Resource
...
This removes more of the deprecated type, but it also simplifies
refactoring the GCE InstanceTemplate.
2020-12-19 09:51:43 -05: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
John Gardiner Myers
f4f4763dc2
Refactor more certs to be issued by nodeup
2020-06-28 23:12:13 -07:00
John Gardiner Myers
013f9bf914
Create bootstrap script in a Task
2020-06-26 19:11:40 -07:00
John Gardiner Myers
cef5b175c7
Rename BootstrapScript to BootstrapScriptBuilder
2020-06-26 10:57:36 -07:00
John Gardiner Myers
304476cebf
Refactor BootstrapScript
2020-06-18 22:17:39 -07:00
Ciprian Hacman
602cb825e7
ARM64 support - Update bootstrap script for multi-arch
2020-06-19 04:42:11 +03:00
John Gardiner Myers
a5f5acc09d
Move the instancegroup role into NodeupConfig
2020-06-17 09:05:15 -07:00
Justin SB
cf5c53c87d
Add tests for manifest normalization
...
(The tests are split out for easier cherry-picking, should we choose to)
2020-01-11 22:41:18 -05:00
Ciprian Hacman
1a4d8bf49c
Add support for containerd container runtime - tests
2019-12-15 21:37:57 +02:00
mikesplain
9e55b8230a
Update copyright notices
...
Also cleans some white spaces
2019-09-09 14:47:51 -04:00
Justin SB
512378b335
Rationalize golden-output comparison
...
Create a single helper function: AssertMatchesFile
Also a few output files that weren't consistent.
2019-07-21 23:08:48 -04:00
Justin Santa Barbara
af867403f9
More autofix of expected test output
...
Rename to HACK_UPDATE_EXPECTED_IN_PLACE as it isn't just terraform any more.
2018-07-19 12:11:38 -04:00
Justin Santa Barbara
e158f84e9f
Set AWS_REGION into bootstrapscript
...
Fix #4451
2018-04-12 17:39:24 -04:00
Horace Heaven
13244a5ce8
Kube-proxy API to accept cpu: limit, mem: request and limit
2018-02-28 15:26:19 -04:00
Mike Splain
fdc2695fe1
Add suspendProcesses to IGs
2018-02-20 09:30:18 -05:00
Kashif Saadat
ac25853cd5
- Add etcdClusterSpec Image & Version in bootstrap data for Master nodes
...
- Reuse execWithTee fn for ETCD Command (tee & mkfifo in different path for newer image versions)
2018-02-10 12:14:36 +00:00
Kashif Saadat
43f193e6ea
Bugfix for bootstrapscript repeatedly generating different content when HookSpecs have ExecContainerAction defined.
2017-11-07 18:17:26 +00:00
Kashif Saadat
c78790f902
Modified OS detection logic when updating http proxy settings.
2017-10-13 19:08:47 +01:00