Commit Graph

469 Commits

Author SHA1 Message Date
Moshe Shitrit 3f4e18994a bump k8s and ubuntu ami version in alpha 2022-10-15 14:08:05 -04:00
Ole Markus With 392ececda7 Let kOps take ownership of any field currently owned by kubectl 2022-10-01 08:58:26 +02:00
Ciprian Hacman e854b261c5 Update channels with the latest Ubuntu images 2022-09-28 11:31:07 +03:00
Ciprian Hacman 89afe649ac Update channels with the latest Ubuntu images 2022-09-28 08:39:03 +03:00
Eric Bailey 51f4654303 Promote fixed k8s patch versions 2022-09-21 13:13:58 -05:00
Ciprian Hacman 1d68d3335d Add release 1.25.0 to channels 2022-09-19 14:00:36 +03:00
Ole Markus With 64ce77fc43 Bump stable and alpha channels with latest k8s/kops releases 2022-09-17 11:49:21 +02:00
Moshe Shitrit a1ebffc779 bump k8s versions in alpha with September releases 2022-09-15 11:54:51 -04:00
Moshe Shitrit 152e09b467 set recommended kOps version to 1.23.4 in k8s version 1.18 2022-09-10 13:38:02 -04:00
Moshe Shitrit 3f0d2758f1 recommend latest kops version in stable channel 2022-09-09 11:39:27 -04:00
Moshe Shitrit 5f6918d5b2 recommend latest kops version in alpha 2022-09-09 11:38:44 -04:00
Moshe Shitrit 8ca33a79b0 promote alpha to stable 2022-08-28 20:35:00 -04:00
Moshe Shitrit 055f1a4d27 bump aws ubuntu version in alpha 2022-08-20 12:11:41 -04:00
Moshe Shitrit 5d775f9532 bump k8s versions in alpha 2022-08-20 12:11:16 -04:00
Justin SB 6184f12861 Introduce applylib
A number of projects need a library for applying objects.  While we
are figuring out exactly what functionality is needed, we are using a
copy-and-paste approach.

Introduce applylib here also, and add the create-or-update
functionality that we want here.
2022-08-17 08:10:20 -04:00
Kubernetes Prow Robot 7035526204
Merge pull request #14135 from hakman/go-1.19.0
Update Go to v1.19.0
2022-08-17 02:40:55 -07:00
Ciprian Hacman cb99db0757 Run make goimports 2022-08-17 07:03:33 +03:00
Ole Markus With 381ceb1d14 Revert back to using kubectl in channels
Introduces an Applier interface and keeps the custom client based implementation
2022-08-14 13:06:17 +02:00
Peter Rifel 3eb30853f7
Fix typo in channels error message 2022-08-02 17:21:08 -05:00
Ole Markus With 70181ec3b3 Remove --files flag from channels and make single arg mandatory 2022-08-02 20:27:36 +02:00
Kubernetes Prow Robot 8ec65a2ab6
Merge pull request #14075 from olemarkus/merge-factory
Merge cmd factories
2022-07-30 22:18:27 -07:00
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