Skip to content

Commit

Permalink
Merge pull request #2 from jullianoacqio/master
Browse files Browse the repository at this point in the history
Corrections
  • Loading branch information
jullianoacqio authored Jul 22, 2020
2 parents 9d40381 + 22ef4c8 commit 387810d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion internal/helpers.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def create_command(ctx):
args = _kube_from_args(ctx.attr.from_file.items(), ctx.attr.from_literal)
outfile = ctx.outputs.out.path

command = [kubectl_path, "create", api, api_type, "--dry-run", name, args, "--output", "yaml"]
command = [kubectl_path, "create", api, api_type, "--dry-run=client", name, args, "--output", "yaml"]

if namespace.strip():
command += ["|", yq_path, "write", "- metadata.namespace", namespace.strip()]
Expand Down
34 changes: 16 additions & 18 deletions k8s_extension/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,20 @@ def repositories():
strip_prefix = "bazel-skylib-1.0.2",
)

if "kubectl" not in excludes:
http_file(
name = "kubectl",
urls = [
"https://storage.googleapis.com/kubernetes-release/release/v1.18.0/bin/linux/amd64/kubectl",
],
sha256 = "bb16739fcad964c197752200ff89d89aad7b118cb1de5725dc53fe924c40e3f7",
executable = True,
)
http_file(
name = "kubectl",
urls = [
"https://storage.googleapis.com/kubernetes-release/release/v1.18.6/bin/linux/amd64/kubectl",
],
sha256 = "62fcb9922164725c7cba5747562f2ad2f4d834ad0a458c1e4c794cc203dcdfb3",
executable = True,
)

if "yq" not in excludes:
http_file(
name = "yq",
urls = [
"https://github.com/mikefarah/yq/releases/download/3.2.1/yq_linux_amd64",
],
sha256 = "11a830ffb72aad0eaa7640ef69637068f36469be4f68a93da822fbe454e998f8",
executable = True,
)
http_file(
name = "yq",
urls = [
"https://github.com/mikefarah/yq/releases/download/3.2.1/yq_linux_amd64",
],
sha256 = "11a830ffb72aad0eaa7640ef69637068f36469be4f68a93da822fbe454e998f8",
executable = True,
)

0 comments on commit 387810d

Please sign in to comment.