Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Default to fluxctl use for getting git deploy key #1548

Merged
merged 2 commits into from
Nov 26, 2018
Merged

Default to fluxctl use for getting git deploy key #1548

merged 2 commits into from
Nov 26, 2018

Conversation

dholbach
Copy link
Member

For a while we gave people a set of commands to extract the git deploy key from flux logs. Now that it's gotten easier to install fluxctl (and there's lots of benefits to using it anyway), let's default to using

"fluxctl identity"

Closes: #1179

  For a while we gave people a set of commands to extract
  the git deploy key from flux logs. Now that it's gotten
  easier to install fluxctl (and there's lots of benefits
  to using it anyway), let's default to using
  "fluxctl identity"

  Closes: #1179

Signed-off-by: Daniel Holbach <daniel@weave.works>
@dholbach dholbach added the docs Issue or PR relates to documentation label Nov 23, 2018
@dholbach dholbach self-assigned this Nov 23, 2018
@dholbach
Copy link
Member Author

I picked Stefan as reviewer as the PR touched on the Helm charts he contributed, but I'd value everyone's else's thoughts too.

2. Get the Git deploy key by running these commands:
export FLUX_POD=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app={{ template "flux.name" . }},release={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
kubectl -n {{ .Release.Namespace }} logs $FLUX_POD | grep identity.pub | cut -d '"' -f2
2. Get the Git deploy key by installing fluxctl
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would replace option 1. from above with:

kubectl -n {{ .Release.Namespace }} logs deployment/{{ .Release.Name }} | grep identity.pub | cut -d '"' -f2

Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @dholbach

@dholbach dholbach merged commit 58f561b into fluxcd:master Nov 26, 2018
@dholbach dholbach deleted the fix-1179 branch November 26, 2018 09:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
docs Issue or PR relates to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants