Commit Graph

13508 Commits

Author SHA1 Message Date
Peter Rifel 0bbaaa3742
Kubetest2 - use same kops binary for all commands in upgrade scenario
This ensures that the same binary is used for kubetest2-kops commands as well as the kops commands invoked directly in the scenario script.

Periodic jobs will create a temp file that will be used to save the kops binary from the provided version marker.
non-periodic jobs (local invocation) will use the bazel build binary, preserving original behavior but using this same binary for kops commands rather than relying on PATH.
2021-03-11 16:47:29 -06:00
Kubernetes Prow Robot 8a8a4c8e40
Merge pull request #10740 from hwoarang/ignore-detached-instances-aws
aws: Graceful handling of EC2 detach errors
2021-03-10 09:47:14 -08:00
Kubernetes Prow Robot 47aed86a55
Merge pull request #11011 from rifelpet/kubetest2
Remove trailing newline from kubernetes version marker
2021-03-10 09:01:14 -08:00
Kubernetes Prow Robot 668b518b7b
Merge pull request #11010 from rifelpet/existing-iam-cleanup
Remove extraneous field from integration test
2021-03-10 06:15:13 -08:00
Peter Rifel 3fb7cbbf0d
Remove trailing newline from kubernetes version marker
Should fix the trailing "%0A" here: https://prow.k8s.io/view/gs/kubernetes-jenkins/logs/e2e-kops-aws-misc-arm64-ci/1369566440318832640#1:build-log.txt%3A90
2021-03-10 07:52:00 -06:00
Peter Rifel ee600fa2dd
Remove extraneous field from integration test
The api design for using existing instance profiles must have changed during its PR and I never removed the old field from the integration test.
grep shows that this field doesn't exist anywhere else in the codebase.
2021-03-10 07:36:23 -06:00
liranp dc1ee9402a
feat(spot/ocean): support for block device mappings in launchspec 2021-03-10 15:30:39 +02:00
Kubernetes Prow Robot de22989eda
Merge pull request #11005 from rifelpet/upgrade-periodic
Don't build kops during periodic upgrade tests
2021-03-09 21:57:13 -08:00
Kubernetes Prow Robot e7ef671e5a
Merge pull request #11007 from rifelpet/kubetest2-ci-version
Kubetest2 - Fix kops' --kubernetes-version with k8s version markers
2021-03-09 21:15:14 -08:00
Peter Rifel a3f49646ac
actually build kops on kubetest2 presubmit 2021-03-09 21:28:04 -06:00
Peter Rifel 864039e606
Kubetest2 - Have kops' --kubernetes-version flag value include the bucket's url
This matches the kubetest1 behavior.
See an example kops create cluster command here: https://prow.k8s.io/view/gs/kubernetes-jenkins/logs/e2e-kops-aws-misc-arm64-conformance/1369076996193128448#1:build-log.txt%3A174
The kubetest 1 logic is here: 37b80c5e3b/kubetest/kops.go (L390-L400)
2021-03-09 21:19:44 -06:00
Kubernetes Prow Robot 9eca4115a3
Merge pull request #11006 from rifelpet/kubetest2-publish
Kubetest2 - Add support for publishing the kops version marker
2021-03-09 19:15:13 -08:00
Peter Rifel 10b30eff0e
Kubetest2 - Add support for publishing the kops version marker
This will unblock the remaining periodic e2e jobs that havent been migrated yet.
They run a test with the kops version from "latest-ci.txt" as published by the "postsubmit-push-to-staging" postsubmit job,
and if the tests succeed then they get published to "latest-ci-updown-green.txt" which is what all of the other periodic jobs rely on.

example job that uses this functionality: 37b80c5e3b/config/jobs/kubernetes/kops/kops-pipeline.yaml (L46-L48)
2021-03-09 20:31:10 -06:00
Peter Rifel 208a4a2bf7
Don't build kops during periodic upgrade tests
This updates the upgrade scenario script to support building kops when ran locally, or using the version markers when ran in a periodic prow job.

hoping to fix the upgrade tests here: https://testgrid.k8s.io/kops-kubetest2#kops-aws-upgrade
2021-03-09 20:17:37 -06:00
Kubernetes Prow Robot ca3f505a32
Merge pull request #11004 from bharath-123/task/update-release=notes
Add to 1.21 release notes
2021-03-09 10:32:06 -08:00
Bharath Vedartham 1243e6b4e2 Add to 1.21 release notes 2021-03-09 23:21:42 +05:30
Kubernetes Prow Robot 59d3fb4071
Merge pull request #11002 from seh/amend-default-choice-for-storage-class-management
Storage: Amend default choice for StorageClass management to honor a specified OpenStack-related value
2021-03-09 09:00:59 -08:00
Steven E. Harris 44061601da Test default StorageClass management choice 2021-03-09 11:08:33 -05:00
Steven E. Harris 50e89c1c6a Honor an OpenStack StorageClass management choice
When choosing a default value for the Cluster spec's
"cloudConfig.manageStorageClasses" field, first check whether a user
specified a concrete value for the related OpenStack
"blockStorage.createStorageClass" field. If so, use that value as the
effective default value for the former field as well, so as to avoid
an unnecessary conflict between the field values on the second
validation pass.
2021-03-09 09:10:56 -05:00
Kubernetes Prow Robot 3b7ca6e33b
Merge pull request #10996 from hakman/dns-update-interval
Use exponential backoff for DNS updates
2021-03-09 05:17:00 -08:00
Ciprian Hacman 631b43bd56 Use exponential backoff for DNS updates 2021-03-09 14:06:47 +02:00
Kubernetes Prow Robot 681e869e1b
Merge pull request #10937 from bharath-123/feat/deprecate-launch-config
Remove support for launch configurations
2021-03-08 23:47:00 -08:00
Bharath Vedartham 0c0767c0c9 Remove support for launch configurations 2021-03-09 09:04:15 +02:00
Kubernetes Prow Robot 6ce35f969d
Merge pull request #10994 from rifelpet/kubetest2-equals
kubetest2 - don't overwrite create args that use equals signs
2021-03-08 10:54:13 -08:00
Peter Rifel 594cdc6ed1
kubetest2 - don't overwrite create args that use equals signs
Previously we would incorrectly append create cluster arguments if they had already been specified and used --foo=bar notation.
This resulted in arguments being specified multiple times causing undesired behavior.
We now check for both `--foo bar` and `--foo=bar` when attempting to add a `--foo` argument.
2021-03-08 11:35:36 -06:00
Kubernetes Prow Robot fea7589d97
Merge pull request #10574 from bharath-123/feat/protokube-systemd
Run protokube as a systemd service
2021-03-07 22:03:44 -08:00
Ciprian Hacman 77b72efe1d Fix various nits when changing Protokube to run as service 2021-03-08 07:19:48 +02:00
Kubernetes Prow Robot 4b93579490
Merge pull request #10990 from vitaliyf/patch-1
Fix very minor formatting typos in docs/manifests_and_customizing_via_api
2021-03-07 14:49:42 -08:00
Kubernetes Prow Robot 1f7a184018
Merge pull request #10579 from olemarkus/refactor-apply-cluster
Various cleanups around apply_cluster and awsmodel
2021-03-07 14:05:42 -08:00
Ole Markus With 8a205724f2 Deduplicate adding mastervolumebuilder 2021-03-07 22:09:02 +01:00
Ole Markus With c817ae662c Merge the two apply_cluster switches 2021-03-07 22:08:15 +01:00
Ole Markus With c6a741a148 Move dns and external_access to awsmodel 2021-03-07 22:07:17 +01:00
Ole Markus With d415fdf1a1 Move bastion model to awsmodel 2021-03-07 22:06:20 +01:00
Ole Markus With 896f1740c6 Rename spotinst symbols and merge spotinstmodel with awsmodel 2021-03-07 22:06:12 +01:00
Ole Markus With 782052f472 Set ssh key on the model context in one location 2021-03-07 21:44:12 +01:00
Vitaliy 8b4aebc1e1
Fix very minor formatting typos in docs/manifests_and_customizing_via_api 2021-03-07 15:38:46 -05:00
Kubernetes Prow Robot 9b214b48cf
Merge pull request #10988 from olemarkus/kops-controlker-lease-rbac
Fix kops-controller rbac due to leader election change
2021-03-06 05:05:41 -08:00
Ole Markus With 27fd76bf9a Fix kops-controller rbac due to leader election change 2021-03-06 11:42:21 +01:00
Kubernetes Prow Robot 1cd5d478f3
Merge pull request #10987 from hakman/addons-labels-cleanup
Remove manually added labels from addons
2021-03-06 00:21:41 -08:00
Ciprian Hacman b44065c692 Remove manually added labels from addons 2021-03-06 09:31:22 +02:00
Kubernetes Prow Robot ef7c934b9a
Merge pull request #10975 from ottosulin/feature/etcdmanagerconfs
Add etcd-manager discoveryPollInterval option
2021-03-05 22:11:43 -08:00
Bharath Vedartham 1d721c3ff8 Update integration tests 2021-03-06 00:33:20 +05:30
Bharath Vedartham 5a72ef0f94 Remove protokube image references 2021-03-06 00:33:12 +05:30
Bharath Vedartham d45514cff3 Make protokube a systemd process 2021-03-06 00:32:44 +05:30
Bharath Vedartham 5cc94d76a6 Move channels exec path to /opt/kops/bin 2021-03-06 00:32:21 +05:30
Bharath Vedartham 1d4c8e4afa Add protokube and channels to assets 2021-03-06 00:32:05 +05:30
Bharath Vedartham e5aa8177b6 Add protokube and channels urls 2021-03-06 00:31:18 +05:30
Steven E. Harris 2fc68564be Note new field's impact on OS package installation 2021-03-05 09:41:09 -05:00
Steven E. Harris 70e95fccf5 Copyedit the InstanceGroup-related documentation 2021-03-05 08:53:08 -05:00
Steven E. Harris e39c985ee7 Honor OS update policy at InstanceGroup level too
As with the Cluster-level "spec.updatePolicy" field, add a similar
field at the InstanceGroup level, allowing overriding of the
cluster-level choice in each InstanceGroup.

Introduce a new value for the field ("automatic") as equivalent to the
default value applied when the field is absent. Honoring this new
value allows disabling automatic updates at the cluster level, but
then enabling them again for particular InstanceGroups. Without such a
positive affirmation, it's not possible to override a cluster-level
"external" policy at the InstanceGroup level, as there's no way to
specify positively that you want to recover the default
value. Instead, expressing the explicit "automatic" value is clear and
unambiguous.
2021-03-05 08:53:07 -05:00