Commit Graph

19 Commits

Author SHA1 Message Date
Ciprian Hacman f8ebec5009 azure: Migrate vfs to new SDK version 2024-02-09 05:58:45 +02:00
justinsb 453e99a4eb hack/update-expected: exclude DIGITALOCEAN_ACCESS_TOKEN
We don't want this env var (which contains the user's digitalocean
access token) to get into the expected output.
2023-05-04 07:49:21 -04:00
Leïla MARABESE 9f950f4a3a scaleway profiles feature 2023-02-10 17:02:45 +01:00
Leïla MARABESE 543d59758a removed SCW_DEFAULT_REGION and SCW_DEFAULT_ZONE env vars 2023-01-10 16:11:23 +01:00
Ciprian Hacman acef80cb6b azure: Ignore authentication env vars in hack/update-expected.sh 2022-11-12 10:41:13 +02:00
Leïla MARABESE b562cffd31 added scw env vars to update-expected.sh 2022-09-26 13:55:08 +02:00
Ciprian Hacman b5f14b589b Add initial support for Hetzner Cloud 2022-05-09 06:12:15 +03:00
justinsb 055ef00384 dev: hack/update-expected script should clear KOPS_ARCH
This is another env var that we don't want to be set when generating
test data, or else we generate tests only for the specified
architectures.
2021-09-06 14:45:08 -04:00
Peter Rifel f36e9a449a
Remove go-bindata 2021-03-20 16:02:09 -05:00
Peter Rifel 5052ae866a
Unset more env vars in update-expected.sh
this prevents spurious changes from being made based on the shell's env vars.

Also adding a parameter to override the package being updated, so that we dont need to test the full repo
2020-08-20 10:17:36 -05:00
Justin SB 2b8fcd816c Clear KOPS_FEATURE_FLAGS in update-expected.sh
This ensures update-expected still works even when KOPS_FEATURE_FLAGS
is set.
2020-08-15 21:06:57 -04:00
Justin SB 75fd939a62
kube-apiserver: healthcheck via sidecar container
kube-apiserver doesn't expose the healthcheck via a dedicated
endpoint, instead relying on anonyomous-access being enabled.  That
has previously forced us to enable the unauthenticated endpoint on
127.0.0.1:8080.

Instead we now run a small sidecar container, which
proxies /healthz and /readyz requests (only) adding appropriate
authentication using a client certificate.

This will also enable better load balancer checks in future, as these
have previously been hampered by the custom CA certificate.

Co-authored-by: John Gardiner Myers <jgmyers@proofpoint.com>
2020-05-07 08:06:52 -04:00
Peter Rifel 49d31b8366 Import common.sh and use KOPS_ROOT when applicable 2020-02-15 20:04:12 -06:00
tanjunchen cc0f7022f0 /hack: improve shell script in hack 2019-12-25 17:16:31 +08:00
Justin Santa Barbara e479ecf682 dev: ignore kops-controller in hack/update-expected.sh
hack/update-expected.sh should ignore KOPSCONTROLLER_IMAGE when
regenerating the golden test outputs, just as it ignores the local
DNSCONTROLLER_IMAGE override.
2019-12-14 10:53:25 -05:00
Justin SB 39d642ee97
hack/update-expected.sh: mask development env vars
There are a few env vars which are frequently set in development, but
should not be reflected in the tests.  Clear them before generated the
expected output.
2019-09-14 11:45:27 -04:00
Justin SB 5d7d7aa647
hack/update-expected: regenerate gobindata
Otherwise we don't always pick up the latest changes to manifests.
2019-07-23 07:49:46 -07: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 30d8dd8692
Create hack/update-expected.sh to update test output
This should streamline things a little!
2019-07-19 10:48:37 -04:00