mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
2a048019e1
* Revert "Update dependency com_github_aws_aws_sdk_go to v0.10.4 (#994)"
This reverts commit 028f056a75
.
* add failing test condition
* fix build
30 lines
821 B
Python
30 lines
821 B
Python
"""TODO: Add doc here"""
|
|
|
|
load("@k8s_secret//:defaults.bzl", "k8s_secret")
|
|
|
|
def _k8s_encrypted_secret_impl(ctx):
|
|
ctx.actions.run_shell(
|
|
inputs = [ctx.file.template],
|
|
outputs = [ctx.outputs.out],
|
|
progress_message = "Decrypting %s" % ctx.file.template,
|
|
tools = [ctx.executable._kubesec],
|
|
command = "%s decrypt %s > %s" % (ctx.executable._kubesec.path, ctx.file.template.path, ctx.outputs.out.path)
|
|
)
|
|
|
|
k8s_encrypted_secret = rule(
|
|
implementation = _k8s_encrypted_secret_impl,
|
|
attrs = {
|
|
"_kubesec": attr.label(
|
|
executable = True,
|
|
cfg = "host",
|
|
default = "//tools:kubesec",
|
|
),
|
|
"template": attr.label(
|
|
allow_files = True,
|
|
single_file = True,
|
|
mandatory = True
|
|
),
|
|
"out": attr.output(mandatory = True),
|
|
},
|
|
)
|