Skip to content

Commit

Permalink
add kubernetes-cni to build-debs
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Stokes <51892+adam-stokes@users.noreply.github.com>
  • Loading branch information
adam-stokes committed Oct 8, 2020
1 parent 4825e69 commit 01629ce
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion jobs/build-debs/deb.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,19 @@ def __init__(self, git_user, ref="master"):


class CriToolsUpstreamComponentRepo(UpstreamComponentRepo):
def __init__(self, ref="master"):
def __init__(self, ref="v1.19.0"):
super().__init__()
self.name = "cri-tools"
self.ref = ref
self.repo = f"https://github.com/kubernetes-sigs/{self.name}.git"

class CNIPluginsUpstreamComponentRepo(UpstreamComponentRepo):
def __init__(self, ref="v0.8.7"):
super().__init__()
self.name = "plugins"
self.ref = ref
self.repo = f"https://github.com/containernetworking/{self.name}.git"


@cli.command()
@click.option("--ref", help="Kubernetes tag to build", required=True)
Expand Down Expand Up @@ -158,6 +165,7 @@ def build_debs(ref, git_user, sign_key, include_source, package):
"kubeadm",
],
CriToolsUpstreamComponentRepo(): ["cri-tools"],
CNIPluginsUpstreamComponentRepo(): ["kubernetes-cni"],
}
for upstream, components in upstreams.items():
click.echo(f"Grabbing upstream: {upstream.name}: {components}")
Expand Down

0 comments on commit 01629ce

Please sign in to comment.