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

fleet: init backup plugin api #378

Merged
merged 7 commits into from
Sep 7, 2023
Merged

Conversation

Xieql
Copy link
Contributor

@Xieql Xieql commented Aug 31, 2023

What type of PR is this?

/kind api-change
/kind design
/kind documentation

What this PR does / why we need it:

init api that support user install Velero with fleet.

part of #374

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

init api that support user install Velero with fleet.

@kurator-bot
Copy link
Collaborator

@Xieql: The label(s) kind/design cannot be applied, because the repository doesn't have them.

In response to this:

What type of PR is this?

/kind api-change
/kind design
/kind documentation

What this PR does / why we need it:

init api that support user install Velero with fleet.

part of #374

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

init api that support user install Velero with fleet.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@netlify
Copy link

netlify bot commented Aug 31, 2023

Deploy Preview for kurator-dev ready!

Name Link
🔨 Latest commit d11c6a7
🔍 Latest deploy log https://app.netlify.com/sites/kurator-dev/deploys/64f83e1434dceb00083cb9c3
😎 Deploy Preview https://deploy-preview-378--kurator-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Xieql Xieql force-pushed the velero-plugin-api branch from 5264c2a to 8b6a06d Compare September 1, 2023 03:35
@Xieql Xieql force-pushed the velero-plugin-api branch from 1f7e532 to 112e907 Compare September 4, 2023 07:25
@Xieql
Copy link
Contributor Author

Xieql commented Sep 4, 2023

/label tide/merge-method-squash

@Xieql
Copy link
Contributor Author

Xieql commented Sep 4, 2023

@hzxuzhonghu PTAL

Signed-off-by: Xieql <[email protected]>
// SecretName represents the name of the secret containing the object store credentials.
// To access the backup storage location, the secret must include the following keys:
//
// - `s3-access-key`: The access key ID for S3 authentication.
Copy link
Member

Choose a reason for hiding this comment

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

access-key?

Copy link
Contributor Author

@Xieql Xieql Sep 5, 2023

Choose a reason for hiding this comment

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

it is the name from minio .
"A MinIO user consists of a unique access key (username) and corresponding secret key (password)."
(see https://min.io/docs/minio/kubernetes/upstream/administration/identity-access-management/minio-user-management.html#minio-idp-service-account),
or we can just use s3-username and s3-password

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What are your thoughts on this

// To access the backup storage location, the secret must include the following keys:
//
// - `s3-access-key`: The access key ID for S3 authentication.
// - `s3-secret-key`: The secret access key for S3 authentication.
Copy link
Member

Choose a reason for hiding this comment

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

secret-key

Signed-off-by: Xieql <[email protected]>
// - `s3-secret-key`: The secret access key for S3 authentication.
//
// - `username`: The access-key/account/username for authentication.
// - `password`: The secret-key/password for authentication.
Copy link
Member

Choose a reason for hiding this comment

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

for what storage do we need username password?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Velero can back up various types of Kubernetes resources, but when it comes to storing these backup data, Velero only supports object storage. Object storage solutions, such as AWS S3, Google Cloud Storage, Azure Blob Storage, and many others, often require authentication to ensure data security and integrity. This authentication is typically done using an access key or username, along with a secret key or password.

By providing the username and password (or equivalently, access key and secret key) in the BackupStorage configuration, we are ensuring that Velero can authenticate with the object storage solution and gain the necessary permissions to read and write backup data.

Copy link
Member

Choose a reason for hiding this comment

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

I mean username password are common used for accessing obs storage? Please do not paste AI generated text without matching the question

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we had discussed “A MinIO user consists of a unique access key (username) and corresponding secret key (password).”

velero use minio as example,and the name in aws (aws_access_key_id)is already discussed.

I am really not sure what “for what storage do we need username password?” means.

AI generation just for the text is well-reading,

Copy link
Contributor Author

@Xieql Xieql Sep 6, 2023

Choose a reason for hiding this comment

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

accessKey and secretKey may be more common used for accessing obs storage.

Minio
access key + secret key
see https://min.io/docs/minio/kubernetes/upstream/administration/identity-access-management/minio-user-management.html#minio-idp-service-account

s3 in AWS :
access key ID + secret access key
see https://docs.aws.amazon.com/powershell/latest/userguide/pstools-appendix-sign-up.html

OBS in HuaweiCloud:
Access Key Id(AK) + Secret Access Key(SK)
see https://support.huaweicloud.com/productdesc-obs/obs_03_0208.html

OSS in Aliyun:
AccessKey ID + AccessKey Secret
see https://help.aliyun.com/zh/oss/product-overview/what-is-oss?spm=a2c4g.11174283.0.i2

Copy link
Member

Choose a reason for hiding this comment

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

so i think we need to say access-key and secret-key instead of user or passwd

Signed-off-by: Xieql <[email protected]>
@Xieql Xieql force-pushed the velero-plugin-api branch from a9ab316 to baaa9d8 Compare September 6, 2023 02:22
Signed-off-by: Xieql <[email protected]>
Copy link
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

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

/lgtm

@kurator-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kurator-bot kurator-bot merged commit 772b596 into kurator-dev:main Sep 7, 2023
9 checks passed
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