Skip to content

Commit

Permalink
Print cluster issuer run result.
Browse files Browse the repository at this point in the history
  • Loading branch information
badri committed Feb 8, 2024
1 parent e788bc0 commit 230750d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/sb-cluster-issuer/enable
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def main(email):
cluster_issuer_manifest = cluster_issuer_template.format(email)

# Use subprocess to apply the modified manifest
subprocess.run([KUBECTL, "apply", "-f", "-"], input=cluster_issuer_manifest.encode())
result = subprocess.run([KUBECTL, "apply", "-f", "-"], capture_output = True, input=cluster_issuer_manifest.encode())
click.echo(result.stdout.decode('utf-8'))
click.echo(result.stderr.decode('utf-8'))

Path('/var/lock/sb-cluster-issuer.enabled').touch()
click.echo("Created clusterissuer")
Expand Down

0 comments on commit 230750d

Please sign in to comment.