Skip to content

Commit

Permalink
Add check for Calico CRDs for each tested k8s version (#2163)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhoherd committed Mar 28, 2024
1 parent 964066c commit 8bb87b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/generate_circleci_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ def list_docker_images():

def main():
"""Render the Jinja2 template file."""
for version in kube_versions:
maj_min = version.rpartition(".")[0]
if not Path(
git_root_dir / "bin" / "kind" / f"calico-crds-v{maj_min}.yaml"
).exists():
raise SystemExit(
f"ERROR: calico-crds-v{maj_min}.yaml is required for for CircleCI to succeed but it does not exist!"
)
config_file_template_path = git_root_dir / ".circleci" / "config.yml.j2"
config_file_path = git_root_dir / ".circleci" / "config.yml"

Expand Down

0 comments on commit 8bb87b0

Please sign in to comment.