Skip to content
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

update GCP client libraries #249

Merged
merged 3 commits into from
Jan 8, 2018
Merged

Conversation

skriss
Copy link
Contributor

@skriss skriss commented Dec 13, 2017

No description provided.

@skriss skriss force-pushed the update-gcp-lib branch 2 times, most recently from 2292e3b to 6c0fa2b Compare January 2, 2018 21:03
@skriss skriss requested review from ncdc and nrb January 2, 2018 21:06
@skriss skriss added this to the v0.7.0 milestone Jan 2, 2018
@skriss
Copy link
Contributor Author

skriss commented Jan 2, 2018

We can go ahead with review/merge for this PR. I've tested everything on a GKE cluster -- @nrb would be nice to also run through e2e if possible.

@nrb
Copy link
Contributor

nrb commented Jan 2, 2018

I can double check. If you're looking for PV testing, though, that likely isn't ready. Last I checked, the Kubicorn GCP profile didn't have the service account integration necessary to manage cloud provider objects.


return ret, nil
if obj.Prefix != "" {
res = append(res, obj.Prefix[0:strings.LastIndex(obj.Prefix, delimiter)])
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure we still need to take the substring? According to https://godoc.org/cloud.google.com/go/storage#Query:

// ... Objects whose names,
// aside from the prefix, contain delimiter will have their name,
// truncated after the delimiter, returned in prefixes.

Copy link
Contributor Author

@skriss skriss Jan 5, 2018

Choose a reason for hiding this comment

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

the Prefix values always contain a trailing delimiter (just re-confirmed this), so we need to remove it to get backup names. The language in that godoc comment is super-confusing, but I'm fairly certain that how this works is:

  • if there are any objects in the bucket that don't contain delimiter in their name, they'll be returned, with the Name field set and no Prefix. (note that we don't have any of these in Ark because all of our objects are prefixed with <backup-name>/).
  • for any objects that do contain delimiter, a result will be returned with the Name field empty and Prefix set to the substring of their name up to and including delimiter.
  • results containing only Prefix are de-duped.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, truncated after the delimiter. OK.

Signed-off-by: Steve Kriss <steve@heptio.com>
@ncdc
Copy link
Contributor

ncdc commented Jan 7, 2018

Can you split out the dep/vendor changes into a separate commit?

skriss added 2 commits January 8, 2018 09:22
Signed-off-by: Steve Kriss <steve@heptio.com>
Signed-off-by: Steve Kriss <steve@heptio.com>
@skriss
Copy link
Contributor Author

skriss commented Jan 8, 2018

split.

@ncdc ncdc merged commit 1035cf7 into vmware-tanzu:master Jan 8, 2018
@skriss skriss deleted the update-gcp-lib branch January 8, 2018 21:17
github-actions bot pushed a commit to kaovilai/velero that referenced this pull request Mar 16, 2023
oadp-1.0: Makefile.prow: implement verify, travis pin go 1.16
alromeros pushed a commit to alromeros/velero that referenced this pull request Oct 25, 2024
…vmware-tanzu#249)

* Update velero library and deployment version to 1.14

Also bump go version and builder to 1.22.3,
kubevirtci version and kubevirt provider to 1.29

Signed-off-by: Shelly Kagan <skagan@redhat.com>

* Run make gomod-update

Signed-off-by: Shelly Kagan <skagan@redhat.com>

* Use crictl instead of docker to pull from quay

kubevirt/kubevirtci#1100

Signed-off-by: Shelly Kagan <skagan@redhat.com>

* Fix cluster-sync due to velero 1.14 changes

* As stated in velero 1.14 release docs:
`CSI plugin has been merged into velero repo in v1.14 release. It will be installed by default as an internal plugin, and should not be installed via "–plugins " parameter in "velero install" command.`
As such removed the installation of velero-plugin-for-csi
* Velero added a confirmation check when adding a plugin when
the velero pod is already running, hence needed to add the `confirm`
flag.
* Increased pod memory request and limit due to OOMKilled with smaller
amount.
* updated aws plugin to v1.10 version

Signed-off-by: Shelly Kagan <skagan@redhat.com>

* Update ginkgo cli in tests to 2.17.1

Signed-off-by: Shelly Kagan <skagan@redhat.com>

---------

Signed-off-by: Shelly Kagan <skagan@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants