Skip to content

Commit

Permalink
Create memberlist secret
Browse files Browse the repository at this point in the history
In metallb#527, HashiCorp memberlist support was added, which requires a
secret to be present in the metallb-system namespace. We need to
create this secret in the dev environment for speakers to converge.
  • Loading branch information
johananl committed Mar 27, 2020
1 parent 3c3c1a7 commit fbacda0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tasks.py
Expand Up @@ -211,7 +211,22 @@ def dev_env(ctx, architecture="amd64", name="kind", cni=None):
f.write(manifest)
f.flush()

# Create memberlist secret.
secret = """---
apiVersion: v1
kind: Secret
metadata:
name: memberlist
namespace: metallb-system
stringData:
secretkey: verysecurelol"""

with open(tmpdir + "/secret.yaml", "w") as f:
f.write(secret)
f.flush()

run("kubectl apply -k {}".format(tmpdir), echo=True)
run("kubectl apply -f {}/secret.yaml".format(tmpdir), echo=True)

with open("e2etest/manifests/mirror-server.yaml") as f:
manifest = f.read()
Expand Down

0 comments on commit fbacda0

Please sign in to comment.