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
"s3ForcePathStyle" entry gets duplicated with AWS plugin #219
Comments
@vzabawski Thank you for reporting this. If you like, could you file a PR to addressing this? Thank you. |
I suggest removing the part that quotes |
Yes, I agree with you. |
To be honest, I can't be sure, but from what I see, the example shows that the value should be wrapped in double quotes: https://github.com/vmware-tanzu/velero-plugin-for-aws/blob/main/backupstoragelocation.md |
May I said that if the user existing configuration with s3ForcePathStyle: true after this PR merged and the user performs |
I guess so. At the same time, duplicated entries do not block the deployment since duplicated keys are dropped in k8s. At least, deployed |
I'd prefer not to change this. /cc @carlisia WDYT? |
Yes, I'm inclined to leave this alone. We can leave it open and clean it up if/when there's an inevitable change that brakes backwards compatibility. Thanks for the effort tho, @vzabawski 👍 |
If the yaml rendered by the Helm chart is then given as input to kustomize version 3.9 and later, kustomize fails with:
This makes it a blocking issue |
@irizzant Thanks for the reporting, would you mind provides the kustomize command on how to apply the manifest to us? This would make us easier to understand it. Thank you. |
@jenting configuration:
# Cloud provider being used (e.g. aws, azure, gcp).
provider: aws
# Parameters for the `default` BackupStorageLocation. See
# https://velero.io/docs/v1.5/api-types/backupstoragelocation/
backupStorageLocation:
# name is the name of the backup storage location where backups should be stored. If a name is not provided,
# a backup storage location will be created with the name "default". Optional.
name:
# provider is the name for the backup storage location provider. If omitted
# `configuration.provider` will be used instead.
provider:
# bucket is the name of the bucket to store backups in. Required.
bucket: k8s-backups
# caCert defines a base64 encoded CA bundle to use when verifying TLS connections to the provider.
caCert:
# prefix is the directory under which all Velero data should be stored within the bucket. Optional.
prefix:
# Additional provider-specific configuration. See link above
# for details of required/optional fields for your provider.
config:
region: sdb
s3ForcePathStyle: "true" And generate an upstream configuration like this with helm: Then I just run |
@irizzant Thank you. I filed a PR to address it, if you like, please try it 🙏 |
@jenting looks like your PR with the # Source: velero/templates/backupstoragelocation.yaml
apiVersion: velero.io/v1
kind: BackupStorageLocation
metadata:
name: default
annotations:
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-delete-policy": "before-hook-creation"
labels:
app.kubernetes.io/name: velero
app.kubernetes.io/instance: velero
app.kubernetes.io/managed-by: Helm
helm.sh/chart: velero-2.16.1
spec:
provider: aws
objectStorage:
bucket: k8s-backups
config:
region: "sdb"
s3ForcePathStyle: "true" Which as you can see has only one |
…e-tanzu#219) * [prometheus-pushgateway] Add missing fields within values.yaml Signed-off-by: Thomas Decaux <ebuildy@gmail.com> * [prometheus-pushgateway] Bump chart version Signed-off-by: Thomas Decaux <ebuildy@gmail.com> Co-authored-by: André Bauer <monotek@users.noreply.github.com>
What steps did you take and what happened:
[A clear and concise description of what the bug is, and what commands you ran.)
I add Velero chart configuration to my values.yaml:
Rendered yaml contains duplicated entries:
Quoting
true
in values.yaml doesn't change the behavior, it just creates 2 entries, where eachtrue
is quoted.Environment:
helm version
):version.BuildInfo{Version:"v3.5.2", GitCommit:"167aac70832d3a384f65f9745335e9fb40169dc2", GitTreeState:"dirty", GoVersion:"go1.15.7"}
2.14.8
The text was updated successfully, but these errors were encountered: