-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for externally referenced S3 credentials and quoted plain values #43
Comments
Thanks for the report, @Heiko-san! I guess we're just missing the I'll raise a PR, it would be great if you could give it a try. |
The change doesn't fix the problem entirely. spec:
containers:
- command:
- bash
- -c
- |-
cd /opt/etcd-dump
if $MC alias set myminio https://s3.url kamaji "Pa$$w0rd" \
&& $MC ping myminio -c 3 -e 3 ; then
echo -e "\nUploading snapshot(s):"
$MC cp kamaji-etcd-5_*.db myminio/kamaji/kamaji-etcd-5/
else
echo -e "\nERROR: S3 storage could not be configured;\nCheck your S3 URL/Credentials or network connectivity"
exit 1
fi
env: |
or maybe provide the password with an env variable would help? You also could use a secret then. |
Hi @Heiko-san Going to open an Issue to use a previously created secret; |
i think so too, it also isn't time critical, since we found a workaround and are still in proof of concept phase |
The attached PR is addressing both use cases, such as:
|
Both approaches (secret ref & quoted value) work great in our setup! |
Hi,
we created an additional datastore of type etcd using your helm chart clastix/kamaji-etcd.
We successfully set up it with an s3 backup. However in our values.yaml we had to define our password like this (not the real pwd):
This is necessary so that the single quotes get added to the mc command, otherwise shell would try to interpret the password.
Maybe in the containers command, the password should be quoted by default.
We use kamaji v0.3.3 together with cluster-api v1.5.0 with infrastructure-vsphere v1.7.0 and your kamaji plugin control-plane-kamaji v0.3.0.
The text was updated successfully, but these errors were encountered: