Commit Graph

448 Commits

Author SHA1 Message Date
Ole Markus With 0bd3160bbc Merge channels and kops cli factories 2022-07-31 06:32:57 +02:00
Ole Markus With 820bba41cf Use SSA for updating addon channel objects 2022-07-30 11:21:09 +02:00
Moshe Shitrit 4f58bf6c7f promote alpha k8s versions to stable 2022-07-24 23:58:45 -04:00
Kubernetes Prow Robot eedb906f0b
Merge pull request #13963 from justinsb/follow_up_13753
Applier should be more tolerant of errors
2022-07-21 06:57:57 -07:00
Moshe Shitrit ff3519721a
bump alpha channel k8s releases 2022-07-14 15:32:40 -04:00
Justin SB bb1070269a Applier should be more tolerant of errors
We also aim to be a little stricter about invalid input
(e.g. namespace specified for cluster-scoped objects).
2022-07-11 11:09:29 -04:00
Ciprian Hacman 6829e7a69a Add release 1.24.0 to channels 2022-07-09 08:36:25 +03:00
Ole Markus With 389d7c1214 Set UserAgent to kops on the REST config 2022-07-02 16:13:30 +02:00
Ole Markus With cb96d39804 Use dynamic client for applying channels manifest rather than calling kubectl 2022-07-02 16:13:27 +02:00
Ole Markus With ba67287540 Apply PKI even if addon fails 2022-06-29 08:12:56 +02:00
Kubernetes Prow Robot e992530d6d
Merge pull request #13819 from olemarkus/channels-replace-non-force
Replace manifests after apply
2022-06-25 09:36:57 -07:00
Moshe Shitrit ebd1a310c8 promote alpha to stable 2022-06-25 01:19:21 -04:00
Ole Markus With 699653d00b Replace manifests after apply 2022-06-21 13:57:33 +02:00
Moshe Shitrit 13fcc26c6b recommend latest kops version in stable channel 2022-06-17 16:10:42 -04:00
Moshe Shitrit a5fbc3d268 recommend latest kops version and add kops 1.24 in alpha channel 2022-06-17 16:10:21 -04:00
Moshe Shitrit 4e49fafe92 bump k8s versions and ubuntu ami (aws) in alpha channel 2022-06-17 01:20:43 -04:00
Ciprian Hacman 6a24dc2dbc Revert "Use kubectl replace instead of apply when updating addons"
This reverts commit 18c5d184e7.
2022-06-10 07:19:58 +03:00
Ole Markus With db5cee1320 Channels to have exit status 1 on apply failure 2022-06-08 10:32:01 +02:00
Kubernetes Prow Robot dfe504e238
Merge pull request #13731 from olemarkus/channels-replace
Use kubectl replace instead of apply when updating addons
2022-06-04 06:08:21 -07:00
Ole Markus With 18c5d184e7 Use kubectl replace instead of apply when updating addons 2022-06-04 12:12:00 +02:00
Moshe Shitrit a413f49fb9 promote alpha to stable (k8s releases) 2022-06-01 13:59:55 -04:00
Moshe Shitrit 9fd92171e0 bump k8s versions with May releases 2022-05-25 22:25:36 -04:00
Ole Markus With 5c2f33d148 Promote May AMIs in channels
Already been running for some time in e2e
2022-05-17 07:46:30 +02:00
Moshe Shitrit daca2a6b2e promote alpha to stable 2022-05-01 17:32:12 -04:00
Ole Markus With 7006f10a15 Bump alpha channel with april releases 2022-04-25 10:34:41 +02:00
Kubernetes Prow Robot 6d264080ed
Merge pull request #13484 from olemarkus/no-bazel-targets
Remove bazel targets and tools
2022-04-17 23:16:41 -07:00
Ole Markus With ce2e877aeb Remove bazel files from vendor 2022-04-12 13:29:03 +02:00
Ole Markus With 8d4a6c35a9 Bump Ubuntu AMIs in alpha and stable 2022-04-12 08:12:25 +02:00
Ole Markus With 5f6b480f81 Update cert-manager dependency to 1.8.0 2022-04-10 12:39:47 +02:00
Moshe Shitrit 8b8ab3fc89 promote alpha to stable 2022-03-25 10:56:09 -04:00
Ciprian Hacman 82575310e0 Bump k8s versions in alpha with Mar 2022
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-03-17 11:55:26 +02:00
Ciprian Hacman ae3f9071a3 Promote alpha channel to stable
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-03-17 11:55:26 +02:00
Ciprian Hacman 30f57e7710 Update kubernetes versions in stable channel
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-03-11 07:38:36 +02:00
Ciprian Hacman e8bdad883e Recommend kOps 1.23 to alpha channel
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-03-11 07:38:06 +02:00
Ciprian Hacman 2d540eaf75 Add kOps 1.23 to stable channel
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-03-11 07:36:56 +02:00
Ciprian Hacman 4e90d51e74 Bump Ubuntu AMIs
Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
2022-03-11 07:35:12 +02:00
Ole Markus With 9065042923 Promote alpha k8s versions to stable 2022-03-05 12:47:07 +01:00
Ole Markus With e0fbdd6ad1 Bump ami in alpha channel to 20220302 2022-03-05 12:47:07 +01:00
Justin SB e07b588b1f alpha channel: recommend kOps 1.22.4
Includes fixes for etcd 3.5.0 vs 3.5.1
2022-02-21 09:08:06 -05:00
Moshe Shitrit ebf5856cb0 Bump k8s versions in alpha with Feb 2022 releases 2022-02-17 08:33:51 -08:00
Moshe Shitrit 3c6c60c6ed Promote alpha to stable 2022-02-08 21:56:36 -05:00
Jesse Haka d591ee9c80 update GCE default images 2022-02-02 13:57:50 +02:00
Ole Markus With 3fe5551dee Bump Ubuntu AMI in alpha 2022-02-01 20:33:41 +01:00
Kubernetes Prow Robot 572bf9a3cf
Merge pull request #13153 from olemarkus/channels-january-2
Bump 1.23 version in alpha channel
2022-01-26 00:00:26 -08:00
Ole Markus With c8c8228a51 Bump 1.23 version in alpha channel 2022-01-26 07:44:06 +01:00
Eric Bailey 4033d83adc Promote alpha AMIs to stable
https://ubuntu.com/security/CVE-2022-0185
2022-01-26 00:23:03 -06:00
Ole Markus With 92ea76d73b Fix recommended kops versions in channels 2022-01-20 20:06:36 +01:00
Ole Markus With b1a1d7d50b January bump of channels 2022-01-20 08:05:02 +01:00
Ole Markus With e128cc7f5d Preload channel versions from namespaces
Avoids loading the NS multiple times per installed addon
2022-01-05 10:38:26 +01:00
justinsb 8e34e4d101 addons: support for kopeio-networking addon
Adding support for the kopeio-networking addon.

We load the operator manifest (which changes rarely) from the channels
directory for now.  We follow the same structure as operators
themselves use so that we can support other backends in future.

The channels file includes the current versions of the operators.

During cluster creation, we create these additional objects.
2021-12-29 09:16:15 -05:00
Ole Markus With 261e2f429d Promote alpha with December releases 2021-12-16 20:53:53 +01:00
John Gardiner Myers 9206201bef Add 1.23 entries to alpha channel 2021-12-11 15:11:29 -08:00
Ciprian Hacman ea7df00719 Run hack/update-gofmt.sh 2021-12-01 22:39:50 +02:00
Ciprian Hacman caea259dba Promote alpha channel to stable 2021-11-21 10:39:27 +02:00
Ciprian Hacman 351b39129a Update alpha channel with November releases 2021-11-21 06:12:18 +02:00
Ciprian Hacman 25b9773a2e Promote alpha channel to stable 2021-11-21 04:46:06 +02:00
Ciprian Hacman 752c3de504 Update Ubuntu images to latest version 2021-11-21 04:45:24 +02:00
Eng Zer Jun 425173ae9f
refactor: move from io/ioutil to io and os packages
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-11-12 15:37:18 +08:00
Moshe Shitrit 4d36945c27 Update k8s versions with latest releases. Also bump AWS Ubuntu AMI version 2021-11-09 12:00:45 -05:00
Ole Markus With e387ddee12 Use server-side apply for addons. Idenity as kops 2021-10-23 08:16:38 +02:00
Kubernetes Prow Robot 727cdf73ad
Merge pull request #12156 from justinsb/prune_via_labels
Prune addons via labels
2021-10-22 12:54:43 -07:00
Ciprian Hacman 3a478c04d2 Update channels with latest AWS images 2021-10-21 10:07:52 +03:00
Ciprian Hacman bf91d39efe Update channels with latest kOps releases 2021-10-21 10:07:52 +03:00
justinsb c34fd83365 Add SystemGeneration to channel version tracker
This allows us to reapply a manifest when we introduce new
functionality, such as pruning.

Otherwise an old version can apply the manifest, mark the manifest as
applied, and we won't reapply.
2021-10-15 17:47:13 -04:00
justinsb df2c55917b More logging from pruning 2021-10-15 17:47:13 -04:00
justinsb 0594eee373 pruning: Allow specification of FieldSelector
FieldSelector allows for filtering by name (as well as a few other
attributes).  Though we aren't using this today, filtering by name is
something we've discussed as being valuable in future, and by putting
it in the API now we avoid version skew problems should we need to
introduce it in future.
2021-10-15 17:47:13 -04:00
justinsb 454c47f92b Support pruning in channels command
We let the addon specify exactly what should be pruned; this approach
is a little more verbose but we're likely generating this
automatically in the common case anyway.

In return for the verbosity, we can likely handle more future cases
and edge cases (for example removing objects that aren't labelled or
are in the wrong namespace).
2021-10-15 17:47:13 -04:00
Ciprian Hacman 40289396fd Update alpha channel with latest kOps releases 2021-10-10 12:56:49 +03:00
Ciprian Hacman b7d5497071 Update channels with latest cloud images 2021-10-10 12:55:38 +03:00
Moshe Shitrit 49ecfeb4c5 Update stable k8s versions 2021-10-01 00:36:11 -04:00
Ole Markus With e7a5437a34 Add fixed version to all addons
This will make also older channels trigger addon updates
2021-09-30 15:25:29 +02:00
Kubernetes Prow Robot be2676076c
Merge pull request #12334 from dntosas/bump-amis
[channels] Bump AWS/GCP/Azure Ubuntu AMIs to latest
2021-09-21 04:52:24 -07:00
dntosas dc5926520d
[channels] Bump AWS/GCP/Azure Ubuntu AMIs to latest
Signed-off-by: dntosas <ntosas@gmail.com>
2021-09-19 10:03:52 +03:00
Moshe Shitrit cec56f173d Update k8s versions with Sept releases 2021-09-16 11:35:36 -04:00
Moshe Shitrit 99efb836ee Push alpha to stable 2021-08-24 20:45:23 -04:00
mikesplain 9f6b11d4cd Fix parse channels error 2021-08-17 12:26:02 -04:00
Moshe Shitrit 7f7e983e55 Bump k8s versions with August releases and add kOps version 1.22 along with k8s 1.22 2021-08-13 00:50:55 -04:00
Kubernetes Prow Robot 8276ec1001
Merge pull request #12064 from hakman/legacy_addons
Disallow the use of legacy addons
2021-08-07 13:09:30 -07:00
Kubernetes Prow Robot a9207f4a6c
Merge pull request #12087 from johngmyers/sha256-manifest
Use SHA-256 for manifest hashes
2021-08-01 21:55:23 -07:00
John Gardiner Myers 03434509e2 Use SHA-256 for manifest hashes 2021-08-01 16:37:01 -07:00
Ciprian Hacman 8bbc88eb2e Disallow the use of legacy addons 2021-07-31 05:33:26 +03:00
Ciprian Hacman b9ad8713e1 Promote channel alpha to stable 2021-07-31 04:39:11 +03:00
Ciprian Hacman c0ac28d96b Update Ubuntu images to v20210720 2021-07-31 04:36:37 +03:00
Kubernetes Prow Robot fdaae803b1
Merge pull request #12050 from johngmyers/promote-stable
Promote channel alpha to stable
2021-07-27 00:50:45 -07:00
John Gardiner Myers 63aec1b2df Recommend kops 1.21.0 in alpha channel 2021-07-26 21:35:57 -07:00
John Gardiner Myers ba20602ffe Promote channel alpha to stable 2021-07-26 21:31:45 -07:00
Moshe Shitrit e925002d3d Update k8s versions with July releases and bump Ubuntu ec2 AMI version 2021-07-16 09:53:53 -04:00
Ole Markus With 0a43080957 Continue if a single addon fails to be applied 2021-07-06 08:31:49 +02:00
Ciprian Hacman 2f3bad686a Remove version from addons 2021-06-25 19:25:01 +03:00
Moshe Shitrit e827939f62 push alpha to stable 2021-06-25 13:00:10 +03:00
John Gardiner Myers a8b9aa13eb Don't include irrelevant bootstrap addons 2021-06-24 20:34:17 -07:00
Moshe Shitrit b3957da896 Update k8s versions and ec2 ami base image 2021-06-18 16:47:29 +03:00
Kubernetes Prow Robot 3e0401378d
Merge pull request #11598 from olemarkus/channels-update-test
Add some tests around channel adding needs-update annotation
2021-06-06 21:12:39 -07:00
John Gardiner Myers ffba92df93 Promote channel alpha to stable 2021-05-31 22:00:31 -07:00
Ole Markus With fded614baa Add some tests around channel adding needs-update annotation 2021-05-25 15:15:32 +02:00
Justin Santa Barbara 1588a506a6 First operator integration: CoreDNS
Hidden behind a feature-flag, but when the UseAddonOperators feature
flag is set, we now use the cluster-addons CoreDNS operator instead of
our built-in manifests.
2021-05-25 06:29:07 -04:00
MoShitrit 5ba5ac0316 Add kOps and k8s 1.21 to alpha channel 2021-05-13 10:08:14 -04:00
MoShitrit 454782b0e7 k8s releases May-12-2021 2021-05-12 23:40:08 -04:00
Ole Markus With 0dc9cd44e6 Set SAN for addon CAs 2021-04-27 09:27:57 +02:00
Ciprian Hacman 55e154a526 Update Ubuntu images to latest version 2021-04-25 09:24:20 +03:00