-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Mount the sshdir into the helm-operator too #1166
Conversation
note to self: I should add this change to the helm-deploy folder too. Lets see if in principle this change will be accepted first, then I'll add it to the helm-deploy too. |
Yes, this looks good and right. I think we'll also need to change the helm-operator in line with #1154, so that mounting into |
I had an alternative thought on how to handle the known hosts. |
This would work. But the reason we switch on If you provided the fingerprint alongside the host name in the initial config, that would be enough to avoid that problem, while still being more convenient than assembling the configmap. [1] We don't do this properly, mind you -- the docs ought to advise that you check the fingerprints; and, we really ought to check in a known_hosts file for github etc., rather than scanning for keys in the build. |
Ok, the So if it is not ok, the Dockerfile is missing a step to check the host keys - we should open an issue for that so that it is checked in the Dockerfile. Also, in this case, the idea of an init_container doesn't work. So using Also you are right about the known hosts are added to the volume, they should (maybe?) be appended to the existing file rather than outright overriding the existing file. I suppose that operation could be put into an init_container. |
|
a7ad8b5
to
8e0fdd6
Compare
I've changed it to use a subPath now and a specific file so the |
Also, would you prefer I squash this PR or leave as is? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could squash the second commit (use a subPath) into the first, but it's OK as-is.
(The required change is to not use template syntax in the example YAML)
@@ -14,6 +14,10 @@ spec: | |||
spec: | |||
serviceAccount: flux | |||
volumes: | |||
- name: sshdir | |||
configMap: | |||
name: {{ template "flux.fullname" . }}-ssh-config |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
68ac63a
to
2895973
Compare
What is this MR for ? - Mounting the sshdir into the helm operator container - The known_hosts is only mounted in the flux container thus far.
"uncomment the ssh config settings in helm-operator-deployment.yaml" ^ this ought to read "Comments the ssh config ..." (in the commit message as well) |
12e10d1
to
87018ce
Compare
@squaremo I think the git history is a bit cleaner now if you want to have another look. |
What does this MR do? - Adds the changes for the sshdir configmap and volume into the helm-operator-deployment.yaml file - Comments the sshdir configmap and volume
87018ce
to
e291e53
Compare
Brill, thanks for your perseverance @stephenmoloney. |
What is this MR for ?
Mounting the sshdir into the helm operator container
The known_hosts is only mounted in the flux container thus far.
I'm not 100% sure that the
known_hosts
are meant to be available in thehelm-operator
butmy guess is that they are. Perhaps someone can confirm?