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

Unable to create lifecycle rules to cleanup old versions #2611

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

akash-jain-10
Copy link

@akash-jain-10 akash-jain-10 commented Jun 30, 2020

Unable to create lifecycle rules to cleanup old versions

@ghost ghost added the size/M label Jun 30, 2020
@akash-jain-10 akash-jain-10 changed the title Ability to create Lifecycle rules for OSS buckets for non current version and transition Unable to create lifecycle rules to cleanup old versions Jun 30, 2020
@akash-jain-10 akash-jain-10 marked this pull request as draft June 30, 2020 17:44
@akash-jain-10 akash-jain-10 reopened this Jun 30, 2020
@akash-jain-10
Copy link
Author

this PR addresses the issues mentioned in #2155

@akash-jain-10 akash-jain-10 marked this pull request as ready for review June 30, 2020 17:49
@ghost ghost added size/XXL dependencies and removed size/M labels Jul 1, 2020
@@ -176,6 +176,20 @@ func resourceAlicloudOssBucket() *schema.Resource {
},
},
},
"noncurrent_version_expiration": {
Type: schema.TypeList,
Copy link
Contributor

Choose a reason for hiding this comment

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

这个是否需要和之前 expiration 类型保持一致?

Copy link
Author

Choose a reason for hiding this comment

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

I have this changed to schema.TypeSet. Modified the code as per the same.

@@ -204,6 +219,31 @@ func resourceAlicloudOssBucket() *schema.Resource {
},
},
},
"noncurrent_version_transition": {
Copy link
Contributor

Choose a reason for hiding this comment

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

这个接口实现有问题。
一个rule 可以设置多个 noncurrent_version_transition 条件。

Copy link
Author

Choose a reason for hiding this comment

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

Hello @huiguangjun , it seems like the go sdk currently does not support the above said configuration. I have made changes as per the go sdk. Here is the goDoc for Lifecycle Rules struct - https://godoc.org/github.com/aliyun/aliyun-oss-go-sdk/oss#LifecycleRule

The LifecycleRule struct currently takes in 1 object for NonVersionTransition .

Also, it would be great if you continue conversation in english :) ! I have to translate the above comment :P

Copy link
Author

Choose a reason for hiding this comment

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

@huiguangjun any updates on this ? Let me know your thoughts.

@CLAassistant
Copy link

CLAassistant commented Aug 11, 2020

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
0 out of 2 committers have signed the CLA.

❌ Akash Jain
❌ akash-jain-10


Akash Jain seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@kapilkumartrivedi
Copy link

@huiguangjun any updates on this?

@akash-jain-10
Copy link
Author

@huiguangjun @zql-tqy are we good to merge these updates ?

@hpatani
Copy link

hpatani commented Mar 2, 2021

@huiguangjun @zql-tqy Please approve this. We are waiting for this feature. Thank you.

@gitarun786
Copy link

@huiguangjun @zql-tqy. Please approve and merge these updates . We need this feature .
Many thanks.

@vmugutrao
Copy link

Any update on this ??

@huiguangjun
Copy link
Contributor

merge to this pr
#3441

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.

8 participants