Commit Graph

22 Commits

Author SHA1 Message Date
irbekrm
6315b7bf15 Adds kube 1.27 kind image, makes it default
Signed-off-by: irbekrm <irbekrm@gmail.com>
2023-04-24 08:50:39 +01:00
Ashley Davis
1e419a468f
Enable + use k8s 1.26 for e2e tests by default
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-12-16 17:06:18 +00:00
Tim Ramlot
519e2d1337 add kind 1.25
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
2022-09-22 15:29:10 +02:00
Ashley Davis
a90f215b06
add todo warning about using FULL images
Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-06-21 16:34:31 +01:00
jetstack-bot
bbf2b58a5e
Merge pull request #5187 from irbekrm/cleanup_kind_config
Clean up kind config
2022-06-21 16:22:48 +01:00
irbekrm
36984671dd Adds a couple comments and TODOs
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-06-09 16:54:38 +01:00
irbekrm
accb40b4f9 Default kube version for test kind cluster to 1.24
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-06-09 16:54:14 +01:00
irbekrm
e203619334 Removes check for Kubernetes 1.18 and 1.19
As we are no longer creating 1.18 and 1.19 kind clusters

Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-06-08 18:30:26 +01:00
irbekrm
a0d3d8eb0a Predefine what service IP range kind should use
Instead of trying to retrieve it after creating the cluster

Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-06-08 17:40:08 +01:00
Ashley Davis
a691a0807b
maintain a single source of truth for updating kind images
this removes the update functionality from make/cluster.sh in favour of
the simpler logic in hack/latest-kind-images.sh

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2022-05-11 16:35:25 +01:00
irbekrm
324ce22482 Fix kube 1.24 image
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-05-10 12:06:31 +01:00
irbekrm
9aa9d4bd85 Wait for cluster-info to be available
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-05-10 12:05:59 +01:00
irbekrm
689ddcafa2 Cleanup + a couple TODOs
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-05-10 12:05:02 +01:00
irbekrm
66aef8d582 Bumps kind v0.11.1 -> v0.12.0
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-05-09 17:45:11 +01:00
irbekrm
9cda740b52 Allows creation of 1.24 kind cluster
Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-05-04 16:51:34 +01:00
irbekrm
d720d8e02b Fix kind cluster creation with kube 1.19 and 1.18
By specifying a different kind config that does not use an etcd flag that was only add in later etcd versions

Signed-off-by: irbekrm <irbekrm@gmail.com>
2022-04-21 12:36:33 +01:00
Maël Valais
ae0632c1f0 make: add "make e2e-setup-kind-update-images"
I think having a separate file for storing the various kind image
digest isn't necessary. From now on, make/cluster.sh is the "source of
truth" for everything related to kind. If you would like to see the
image that is going to be used for creating the kind cluster, you can
run:

  make/cluster.sh --show-image

To self-update the digests with the latest available digests, run:

  make/cluster.sh --update-images

Signed-off-by: Maël Valais <mael@vls.dev>
2022-03-29 11:26:37 +02:00
Maël Valais
c4e6ebd1a8 make/cluster.sh: remove the fixed clusterIP CIDR 10.0.0.0
The fixed CIDR isn't necessary anymore since the makefile figures the
ClusterIP dynamically. This change also enables you to run
make/cluster.sh with an existing kind cluster.

Signed-off-by: Maël Valais <mael@vls.dev>
2022-03-29 11:26:37 +02:00
Maël Valais
10c4aa808f make: preload-kind-image now caches the kind image in "bin/downloaded"
Signed-off-by: Maël Valais <mael@vls.dev>
2022-03-29 10:45:08 +02:00
Maël Valais
fbb372a1a4 make/cluster.sh: don't display the networking info, it isn't helpful
Signed-off-by: Maël Valais <mael@vls.dev>
2022-03-29 10:45:08 +02:00
Maël Valais
9e76ccd981 verify-errexit: add set -e to pass CI
Signed-off-by: Maël Valais <mael@vls.dev>
2022-03-13 12:32:08 +01:00
Maël Valais
3405edf821 make: add the targets 'e2e-setup-kind', 'e2e-setup-kind', and 'e2e'
The commands can be run concurrently, with the exception of e2e that
has to be run after e2e-setup is done. The e2e target does not check
whether cert-manager and the addons are installed.

The two only scripts that were kept are:

- make/e2e.sh      (previously called ./devel/run-e2e.sh)
- make/cluster.sh  (previsouly called ./devel/cluster/create.sh)

The reason for the removal of the other scripts is that they didn't
have that much logic and could easily ported to Make, improving greatly
the execution speed thanks to make's concurrency.

make/e2e.sh now behaves "as expected" when using -ginkgo.focus or
GINKGO_FOCUS; previously, the logs would not be shown before the end
of the test.

make/cluster.sh has lost the ability to create an OpenShift 3.11 cluster.
for running the end-to-end tests. The two reasons are that OpenShift 4
wasn't supported by the script devel/cluster/create.sh, and OpenShift
3.11 is not supported by cert-manager anymore.

The Makefile targets that were used in the Prow jobs (verify, verify_deps,
verify_chart, verify_upgrade, and cluster) have been kept around. They
now show a warning to encourage people to use the new Make-based targets.
When running one of the deprecated targets the Makefile won't check the
presence of the system tools such as Go and jq, since Bazel takes care of
these dependencies.

On version change, downloaded tools and images are re-downloaded. The
command 'make clean' now keeps the downloaded images and tools.

Note that a lot of attention has been put into having a Make system that works
flawlessly both on Linux and on BSDs (such as macOS).

You will note that some recursive calls to make are made, and $(MAKE)
instead of plain "make" is used in that case. If we didn't use $(MAKE),
we would have concurrency issues, and warnings such as:

  make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.

Signed-off-by: Maël Valais <mael@vls.dev>
2022-03-13 12:32:08 +01:00