Commit Graph

5982 Commits

Author SHA1 Message Date
Ciprian Hacman 086d74605f Update containerd to v1.6.15 2023-01-11 06:32:22 +02:00
Leïla MARABESE 543d59758a removed SCW_DEFAULT_REGION and SCW_DEFAULT_ZONE env vars 2023-01-10 16:11:23 +01:00
Ole Markus With 07c77b1e5f Bump EBS CSI driver to 1.14.1 2023-01-09 13:01:23 +01:00
Jesse Haka 4383f40af7 move openstack cloud config to k8s secrets 2023-01-06 19:56:35 +02:00
justinsb 132a805972 Allow built-in manifests to be replaced by external addons
We identify the external manifests by checking for our labels.
Currently that label is kOps specific, and we'll likely have to evolve
that to something ecosystem-netural.

We only support the GCE CCM addon and the kopeio-networking addon at
first.

For the GCE CCM addon, we need to replace the arguments, in particular
we likely need the Pod CIDR.  Here we need to work with the GCE CCM to
find a mechanism that can allow some of these flags to be communicated
via a more extensible mechanism (env vars or config maps, likely,
though possibly CRDs).

This is all behind the ClusterAddons feature flag at the moment, so we
can figure this out with other projects safely.

Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2023-01-05 20:29:56 -05:00
Kubernetes Prow Robot bbc48f99e3
Merge pull request #14948 from justinsb/refactor_tfprovider_versions
Refactor terraform provider version logic
2023-01-04 13:59:58 -08:00
Kubernetes Prow Robot fbdabc1c16
Merge pull request #14927 from justinsb/ensuretask_should_panic
EnsureTask should panic
2023-01-04 13:11:59 -08:00
justinsb 3a683e1444 Refactor terraform provider version logic
As suggested in review of 14926, this approach might be more concise
and clearer.
2023-01-04 13:40:15 -05:00
justinsb c2810a5c96 Refactor to reduce vfs -> terraformWriter dependency 2023-01-04 13:38:47 -05:00
justinsb b7d9319fff EnsureTask should panic on error
This means that we automatically check the error code.  A linter could
detect errors here (maybe), but in practice we can't recover from
errors here anyway.
2023-01-04 08:29:20 -05:00
justinsb 707758f1e9 Support multiple terraform file providers
By adding them on-demand, it is arguably a little simpler as well.

Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2023-01-04 08:14:18 -05:00
Kubernetes Prow Robot 2a29412931
Merge pull request #14943 from johngmyers/kube-proxy
Use NodeupConfig for kube-proxy config
2023-01-03 19:35:58 -08:00
Kubernetes Prow Robot 3562661b46
Merge pull request #14912 from justinsb/localmutex
gce: try to avoid concurrent IAM project operations
2023-01-03 18:31:58 -08:00
John Gardiner Myers b5eef1c129 Use NodeupConfig for kube-proxy config 2023-01-03 12:29:07 -08:00
Kubernetes Prow Robot 751c71b662
Merge pull request #14923 from zetaab/fixtagupdate
Do not include tags when searching existing volumes in OpenStack
2023-01-03 02:29:32 -08:00
Jesse Haka 45d194863e Do not include tags when searching existing volumes in OpenStack 2023-01-03 11:43:17 +02:00
Kubernetes Prow Robot 4cb0a1dcdd
Merge pull request #14929 from johngmyers/prune-webhooks
Prune admission webhooks
2023-01-03 01:09:33 -08:00
Ciprian Hacman 62f1d20c96 aws: Set IMDS defaults for existing clusters 2023-01-03 11:03:44 +02:00
Kubernetes Prow Robot 60a423bd40
Merge pull request #14936 from johngmyers/nodeup-runtime
Use NodeupConfig for container-runtime configuration
2023-01-03 00:15:42 -08:00
Kubernetes Prow Robot 70d6a21b83
Merge pull request #14935 from johngmyers/pki-adapter
Pull pki.Keystore out of fi.KeystoreReader
2023-01-03 00:15:31 -08:00
John Gardiner Myers 566d7d0527 Improve error message when trying to use IPv6 with amazonvpc networking 2023-01-02 19:11:54 -08:00
John Gardiner Myers fe448ef906 Use NodeupConfig for DockerConfig 2023-01-02 13:58:21 -08:00
John Gardiner Myers 125866792d Use NodeupConfig for ContainerdConfig 2023-01-02 13:42:11 -08:00
John Gardiner Myers 25a897b691 Use NodeupConfig for ContainerRuntime 2023-01-02 12:50:23 -08:00
John Gardiner Myers c051198f85 Pull pki.Keystore out of fi.KeystoreReader 2023-01-02 10:39:24 -08:00
John Gardiner Myers 225dd89628 hack/update-expected.sh 2023-01-01 23:10:13 -08:00
John Gardiner Myers f4c7ec91a5 Prune admission webhooks 2023-01-01 22:41:22 -08:00
justinsb f016c396ec gce: try to avoid concurrent IAM project operations
We set up a process-wide table of mutexes, to avoid concurrent IAM
operations on GCE projects.  Best-effort is reasonable here, we will
retry, but avoiding concurrent operations just avoids logspam and a
needless retry from self-conflicts.
2023-01-01 18:15:20 -05:00
John Gardiner Myers 8aeefe23ed Use NodeupConfig for cluster name 2023-01-01 13:48:01 -08:00
John Gardiner Myers c08326e8c0 Separate out a VFSSecretStoreReader 2023-01-01 13:47:05 -08:00
John Gardiner Myers 32c3b86a40 Separate out a VFSKeystoreReader 2023-01-01 13:44:50 -08:00
John Gardiner Myers c68be498c6 Refactor NewAssetBuilder to not take a Cluster 2023-01-01 13:37:52 -08:00
justinsb 6c2edaee7e Add Context arg to vfs ReadFile
This is an "action" method, so should take a context.
2023-01-01 09:51:44 -05:00
Kubernetes Prow Robot e76a68356e
Merge pull request #14907 from johngmyers/apiserver-addlips
APIServer nodes also need apiserverAdditionalIPs
2022-12-30 00:35:38 -08:00
Kubernetes Prow Robot e85051b709
Merge pull request #14887 from zetaab/fixoscreate
set loadbalancer configs before initializing the OS clients
2022-12-29 23:27:36 -08:00
John Gardiner Myers 8623060c1d APIServer nodes also need apiserverAdditionalIPs 2022-12-29 22:38:53 -08:00
Jesse Haka 4a95f30129 Fix ingress status for loadbalancers that does not have publicname 2022-12-27 16:02:49 +02:00
Jesse Haka 829fda49e6 check is cluster nil when creating clients 2022-12-27 15:39:44 +02:00
Jesse Haka 4eee65958e set loadbalancer configs before initializing the OS clients 2022-12-27 15:39:42 +02:00
Ciprian Hacman 84b557d203 Run hack/update-expected.sh 2022-12-26 13:21:43 +02:00
Ciprian Hacman b3a07ee83e Use short service name with discovery labels 2022-12-26 13:21:43 +02:00
John Gardiner Myers 5c69274317 Simplify pointers to maps in API 2022-12-25 20:29:51 -08:00
John Gardiner Myers b3dfcea95f v1alpha3: Move AWS-specific CloudConfig settings to AWSSpec 2022-12-25 16:12:02 -08:00
Kubernetes Prow Robot e13c51968b
Merge pull request #14869 from johngmyers/upd-min-version
Update min versions for 1.27
2022-12-24 23:59:27 -08:00
Kubernetes Prow Robot b97662c6a3
Merge pull request #14837 from johngmyers/gce-cloudconfig
v1alpha3: Move GCE-specific CloudConfig settings to GCESpec
2022-12-24 22:31:26 -08:00
John Gardiner Myers 3823c13633 hack/update-expected.sh 2022-12-24 21:44:50 -08:00
John Gardiner Myers 005ec38972 Remove code for no-longer-supported k8s 1.21 2022-12-24 21:44:50 -08:00
John Gardiner Myers c0dff11230 Update min versions for 1.27 2022-12-24 21:44:49 -08:00
John Gardiner Myers 70389e6398
Release 1.27.0-alpha.1 (#14866) 2022-12-24 21:43:27 -08:00
John Gardiner Myers 27b8522081 Avoid triggering upgrade tests on release commits 2022-12-24 15:23:56 -08:00
justinsb 817c1e63b3 FindKeyset can return nil
We had missed a case in nodeup; add a Context argument to force us to
revisit the codepaths.
2022-12-24 16:12:21 -05:00
Kubernetes Prow Robot 69c59af0f4
Merge pull request #14862 from justinsb/vfs_context_to_create_and_write
VFS: Add context to CreateFile & WriteFile
2022-12-23 10:25:26 -08:00
justinsb a69dc902c4 Add context to GetOrCreateSecret
Continuing the wiring as needed.
2022-12-23 10:48:50 -05:00
justinsb ae074bbc6b VFS: Add context to CreateFile & WriteFile
As "request" methods, these should have context parameters.
2022-12-23 10:39:52 -05:00
Ciprian Hacman f5b72742b4
Release 1.26.0-beta.1 (#14858) 2022-12-23 01:13:27 -08:00
Kubernetes Prow Robot b647e4413f
Merge pull request #14846 from hakman/gossip_to_dns-none
Allow migration from Gossip DNS to no DNS
2022-12-22 22:53:26 -08:00
Ciprian Hacman b08d53a131 Refactor Gossip usage in addon templates 2022-12-23 08:04:13 +02:00
Kubernetes Prow Robot d17325c9b0
Merge pull request #14855 from johngmyers/external-dns
Upgrade external-dns to 0.13.1
2022-12-22 21:59:25 -08:00
Kubernetes Prow Robot a870d020ee
Merge pull request #14854 from johngmyers/describeimages-paginate
AWS: Use pagination for DescribeImages call
2022-12-22 20:07:26 -08:00
John Gardiner Myers bce03549f0 Upgrade external-dns to 0.13.1 2022-12-22 19:43:24 -08:00
John Gardiner Myers ac06f4af48 AWS: Use pagination for DescribeImages call 2022-12-22 17:03:03 -08:00
justinsb 90cbf75584 Context threading: more wiring
We're aiming to use this for testing immediately and better
logging/tracing in future, but to make the changes manageable breaking
them into a smaller series that don't directly achieve much.
2022-12-22 17:52:22 -05:00
Ciprian Hacman 362601cd66 Allow migration from Gossip DNS to no DNS 2022-12-22 12:36:32 +02:00
Ciprian Hacman 0c88d881a2 openstack: Stop passing cluster tags 2022-12-22 08:08:19 +02:00
Ciprian Hacman d9d78df5e7 openstack: Refactor DNS client initialization 2022-12-22 07:41:25 +02:00
Ole Markus With 171b2d0a5d Bump cilium to 1.12.5 2022-12-21 11:40:39 +01:00
Kubernetes Prow Robot 70efe5dd08
Merge pull request #14829 from olemarkus/ebs-csi-114
Bump EBS CSI driver to 1.14.0
2022-12-21 00:49:25 -08:00
John Gardiner Myers b38c55a2b9 Simplify nodeup references to CloudProvider 2022-12-20 19:44:32 -08:00
Kubernetes Prow Robot adee89e75b
Merge pull request #14835 from olemarkus/dns-cache-ondemand
Use OnDelete update strategy for node local dns cache
2022-12-20 15:05:33 -08:00
Ole Markus With 36b75b031d Use onDelete update strategy for node-local DNS cache 2022-12-20 22:12:51 +01:00
Ole Markus With 43be10020c Use enums for needsRollingUpdate in the channels API 2022-12-20 22:11:56 +01:00
John Gardiner Myers 7d14a5ac17 Mark access to cluster as deprecated in nodeup 2022-12-20 12:00:37 -08:00
John Gardiner Myers d916596c32 Give nodeup a read-only Keystore 2022-12-20 12:00:37 -08:00
John Gardiner Myers 7abacb9b3b Get default CheckExisting from Target 2022-12-20 12:00:37 -08:00
John Gardiner Myers f5fb91c858 Move SecretStore to CloudupSubContext 2022-12-20 12:00:37 -08:00
Kubernetes Prow Robot c65224a15a
Merge pull request #14825 from johngmyers/nodeup-update-pkg
Move Cluster into CloudupSubContext
2022-12-20 11:43:18 -08:00
Ole Markus With 08a9657cfb Bump EBS CSI driver to 1.14.0 2022-12-20 20:37:53 +01:00
Kubernetes Prow Robot bfabf3752a
Merge pull request #14824 from hakman/cert-manager-v1.10.1
Update cert-manager to v1.10.1
2022-12-20 09:09:44 -08:00
John Gardiner Myers 6b0775a434 Remove unused LocalTarget fields 2022-12-20 08:14:35 -08:00
John Gardiner Myers 4d309b0b36 Move Cluster into CloudupSubContext 2022-12-20 08:11:01 -08:00
John Gardiner Myers 76fc186060 Remove nodeup's unused cloudinit target 2022-12-20 07:14:15 -08:00
Kubernetes Prow Robot 9aa2a5104a
Merge pull request #14814 from johngmyers/nodeup-install
Separate out a fi.InstallContext
2022-12-20 06:45:51 -08:00
Kubernetes Prow Robot 728fbabe6c
Merge pull request #14813 from johngmyers/gcp-csi
v1alpha3: Move some GCE-specific fields to CloudProvider.GCE
2022-12-20 06:45:44 -08:00
Ciprian Hacman fc539d2f0d Run hack/update-expected.sh 2022-12-20 13:29:56 +02:00
Ciprian Hacman c20892c26b Enable pruning of removed cert-manager objects 2022-12-20 13:29:50 +02:00
Ciprian Hacman 7b2de90212 Run hack/update-expected.sh 2022-12-20 13:17:15 +02:00
Ciprian Hacman 5a7086aa27 Update cert-manager to v1.10.1 2022-12-20 13:14:23 +02:00
John Gardiner Myers 472a7f38b6 Upgrade coredns to v1.10.0 2022-12-19 23:26:39 -08:00
John Gardiner Myers 9b22483ab2 Separate out a fi.InstallContext 2022-12-19 17:18:58 -08:00
Ciprian Hacman a38e3f403a Update containerd to v1.6.14 2022-12-20 00:59:07 +02:00
Kubernetes Prow Robot 3f05fa4f73
Merge pull request #14727 from justinsb/refactor_kops_controller_client
Move kops-controller client into its own package
2022-12-19 09:09:44 -08:00
John Gardiner Myers 34d7507f78 v1alpha3: Move some GCE-specific fields to CloudProvider.GCE 2022-12-19 08:28:28 -08:00
Kubernetes Prow Robot bf7b2c5d94
Merge pull request #14809 from johngmyers/trim-nodeup
Trim some fields from fi.Context
2022-12-19 08:17:44 -08:00
John Gardiner Myers bec27d0579 Make the kops-controller client generic 2022-12-19 10:30:13 -05:00
Justin SB d18e663397 Move kops-controller client into its own package
This should allow more reuse.
2022-12-19 10:30:13 -05:00
John Gardiner Myers dec7d33be6 v1alpha3: Move AWS EBS CSI spec under CloudProvider.AWS 2022-12-19 00:10:16 -08:00
John Gardiner Myers ca7d82b02a v1alpha3: move AWS-specific fields to AWSSpec 2022-12-18 15:16:49 -08:00
John Gardiner Myers a16dbf3747 Make some functions private 2022-12-18 13:44:23 -08:00
John Gardiner Myers f7383b29da Move Cloud into CloudupSubContext 2022-12-18 13:40:02 -08:00
John Gardiner Myers 0aba1a24b9 Move ClusterConfigBase into CloudupSubContext 2022-12-18 13:40:02 -08:00