Ole Markus With
c7cfcd1af8
User IG without image should be allowed
...
This is technically a regression. kOps had the behavior where empty image meant use from channel. But this got removed due to strict validation of user input
2022-09-17 17:44:48 +02:00
Ole Markus With
16c60a1a0c
Change mock region/subnet names to match mockCloud
2022-09-17 13:14:30 +02:00
Ole Markus With
86be353777
Use testhelper for generating test IG
2022-08-20 15:34:22 +02:00
justinsb
d1fc0b9f88
Create goldentest for additional objects
2022-08-03 09:51:16 -04:00
justinsb
296e85a1f1
kube-scheduler: validate completed cluster in tests
2022-08-03 09:51:16 -04:00
justinsb
c8deb1428d
kube-scheduler: Add test for static manifests
2022-08-03 09:51:16 -04:00
justinsb
9bb1d3e114
Configuration file for kube-scheduler
...
We generate a kube-scheduler configuration file in the kops CLI, and
nodeup will use it if provided (instead of generating one).
We put the configuration file into the fileAssets.
Users can provide a kube-scheduler configuration in additional
objects, and this will be used as the base configuration (we add the
kubeconfig path).
Issue #13352
Co-authored-by: Ciprian Hacman <ciprian@hakman.dev>
2022-08-03 09:51:05 -04:00
justinsb
f47d7b2e43
Tweak integration tests to be simpler
...
We require that all generated files are in the data directory, so we
can simplify the logic here.
2022-05-13 15:19:07 -04:00
Ole Markus With
ce2e877aeb
Remove bazel files from vendor
2022-04-12 13:29:03 +02:00
Ole Markus With
93e35adebc
update bazel
2022-03-26 18:50:14 +01:00
Ole Markus With
e053bf5635
Don't digest images in integration tests
2022-03-26 18:40:21 +01:00
John Gardiner Myers
cac727c357
Make cloudProvider a struct in v1alpha3 API
2022-03-02 21:59:49 -08:00
Ole Markus With
afcfd1b1e8
Prevent populate ig from adding nvidia taint if it has already been set
2022-02-17 10:42:21 +01:00
John Gardiner Myers
f2ae352d21
Add validation for subnet type values
2022-01-14 17:53:09 -08:00
Ciprian Hacman
ea7df00719
Run hack/update-gofmt.sh
2021-12-01 22:39:50 +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
justinsb
f0aa776d46
gce: update tests for shared networks
...
Also need to populate mocks.
2021-10-23 23:59:21 -04:00
John Gardiner Myers
8e6214c046
Stop requiring the cluster IAM substruct be present
2021-10-02 20:18:46 -07:00
Ole Markus With
d31c682506
Set vpc-id on aws lbc
2021-07-19 15:14:15 +02:00
Kenji Kaneda
71f52363f8
Add a lifecycle test for GCE
...
- Move MockGCECloud to cloudmock/gce.
- Change Compute() and CloudDNS() of GCECloud to return interfaces
for mocking
2021-04-26 13:05:27 -07:00
Jason Haugen
fe78fa5fb7
run make verify
2021-04-19 15:43:05 -05:00
Jason Haugen
c8bb48ba81
fix existing tests
2021-04-19 15:43:05 -05:00
Ciprian Hacman
dee13cecca
Improve machine type and image validation
2021-02-19 18:28:57 +02:00
AkiraFukushima
36acadca59
Fill Role names in kops-controller-config instead of instance profile names when it is specified
...
The role names are checked in node bootstrap.
If profile names are provided, bootstrap will fail.
Because profile name and role name do not always mactch in AWS IAM
2021-02-11 14:28:49 +09:00
Ciprian Hacman
d5bee0b867
Update integration test for ExternalLoadBalancers
2020-11-21 21:45:57 +02:00
Peter Rifel
11bf3ff202
Add missing cloudmock functionality for enabling lifecycle integration test on complex cluster
2020-10-30 10:06:36 -05:00
Ole Markus With
7c8ff94631
Make setupmockopenstack standalone
2020-10-01 19:15:39 +02:00
Ole Markus With
6797998ac1
Consolidate all buildMinimalClusters into a generic test cluster builder
2020-09-19 19:55:19 +02:00
Ole Markus With
5e7ec64347
Move abs resolution a bit earlier to make it clear where we are looking for golden output
2020-09-05 20:10:43 +02:00
Ole Markus With
8e5e3d4ea5
Mock create server should associate with mock ports
2020-08-22 22:08:02 +02:00
Ole Markus With
29682700c7
Don't use nova for glance mocks
...
Fetching images through nova is deprecated and removed in newer versions
of the compute API. Mocks now reflect this behavior.
2020-08-21 10:18:52 +02:00
Peter Rifel
4d9f0128a3
Upgrade to klog2
...
This splits up the kubernetes 1.19 PR to make it easier to keep up to date until we get it sorted out.
2020-08-16 20:56:48 -05:00
Peter Rifel
6991655921
Add openstack integration test.
...
This will create / update / update / delete an openstack cluster using cloudmock, ensuring there are no lingering changes reported or orphaned resources
2020-08-10 15:22:49 -05:00
John Gardiner Myers
d8970b93e1
Issue kube-controller-manager cert in nodeup
2020-06-09 22:45:19 -07:00
Justin Santa Barbara
35c6056fb2
Create golden image test for nodeup kube-apiserver
...
The building of the manifests for nodeup tasks can be a little opaque;
create a test to verify and expose what is happening.
2020-05-18 06:42:16 -04:00
Peter Rifel
a0e1672cdc
add terraform testing
2020-03-31 14:50:45 -05: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
tanjunchen
7e25f9831d
nodeup/pkg/ pkg/ staticcheck
2019-12-31 15:03:39 +08:00
Justin Santa Barbara
58dccb0c5d
dev: hack/update-expected.sh should generate missing file
...
Don't treat a failure to read a file as an error, if we are supposed
to be generating that file.
2019-12-14 22:14:39 -05:00
Justin SB
97f552778f
Add env vars, update tests
2019-09-25 12:48:13 -04:00
Justin SB
1580d4c82b
Update tests to use k8s >= 1.14
...
Where tests are using a version of k8s that is now really deprecated,
replace it with k8s 1.14.0.
2019-09-14 13:58:50 -04: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 SB
76d03b3f71
Generated files: glog -> klog
2019-05-06 12:56:03 -04:00
Justin SB
3e33ac7682
Change code from glog to klog
...
We don't call klog.InitFlags yet, because that will cause a flag
redefinition error until we get everyone to stop using glog. That
will happen when we update to k8s 1.13.
2019-05-06 12:54:51 -04:00
Gennady Trafimenkov
acf9c9f016
Update bazel configuration
2019-03-03 16:11:33 +03:00
Gennady Trafimenkov
15bd566746
Correcly handle CRLF in the manifest
...
kops replace/create/delete now correctly handle crlf in the manifest.
This fixes issue #6532
2019-03-03 14:33:49 +03:00
Justin SB
4aa2498203
Rationalize deserialiation code
...
Put it all through kopscodecs.Decode, so that we can rewrite the API
group more easily in a subsequent PR.
2018-12-21 13:59:50 -05:00
Justin Santa Barbara
9e765a75bf
Generate much smaller keys in integration tests
...
We expose the default key size, and temporarily set it to 512 (from
2048) during testing. This is much faster, and key generation was the
primary bottleneck.
2018-10-03 08:33:46 -07:00
Justin Santa Barbara
666e290983
Merge pull request #5547 from justinsb/etcd_manager_tests
...
Add test for etcd-manager output
2018-09-22 08:29:30 -07:00