Skip to content

Jf/validate minio#13

Merged
BetoFandino merged 13 commits intomainfrom
JF/validate_minio
Jan 27, 2026
Merged

Jf/validate minio#13
BetoFandino merged 13 commits intomainfrom
JF/validate_minio

Conversation

@BetoFandino
Copy link
Contributor

Description

Added two changes in minio task:

  • Validates whether the minio plugin is enabled to create a minio init job.
  • Validates whether an expiration days rule exists before creating one.

@BetoFandino BetoFandino requested a review from a team January 21, 2026 01:26
mc config host add minio http://minio:9000 {{ OPENEDX_AWS_ACCESS_KEY }} {{ OPENEDX_AWS_SECRET_ACCESS_KEY }} --api s3v4
mc mb --ignore-existing minio/{{ BACKUP_BUCKET_NAME }}
{%- if BACKUP_MINIO_EXPIRATION_DAYS > 0 %}
{# validated if already exists expiration rule in backup bucket #}
Copy link
Member

Choose a reason for hiding this comment

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

Please use bash comment as Tutor does here. Don't use template comments

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But in the example you gave me, it's in a .sh file. In this case, wouldn't there be problems with the file type format? I ask because jinja2 templates are used, and according to the comments I checked, it's with {# #}.

Copy link
Member

Choose a reason for hiding this comment

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

@BetoFandino at the end of the day, all tutor init jobs are run with sh, so this is essentially an sh-compatible script. In this order of ideas, it is safe to add the comment as I indicated. Besides, I want the comment to be rendered in the script, and jinja2 comments ARE NOT RENDERED in the final output.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, Done

@BetoFandino BetoFandino merged commit 9f5b12e into main Jan 27, 2026
1 check passed
@BetoFandino BetoFandino deleted the JF/validate_minio branch January 27, 2026 18:50
BetoFandino added a commit that referenced this pull request Mar 10, 2026
* feat: A new variable has been added to validate whether minio is used. Validation if the expiration rule already exists in the lifecycle.

* feat: validated with snipper value

* fix: decorator of plugin loaded

* fix: deleted variable not used minio_enabled

* fix: deleted return config in plugin

* fix: validation of ilm on rules

* feat: taked action and filter to validate list

* feat: taked filter to validate list

* fix: return list of plugins

* feat: added comments in minio init

* feat: use actions and take plugins list by filter

* fix: comments in init minio

* fix: format of comments
BetoFandino added a commit that referenced this pull request Mar 10, 2026
* feat: A new variable has been added to validate whether minio is used. Validation if the expiration rule already exists in the lifecycle.

* feat: validated with snipper value

* fix: decorator of plugin loaded

* fix: deleted variable not used minio_enabled

* fix: deleted return config in plugin

* fix: validation of ilm on rules

* feat: taked action and filter to validate list

* feat: taked filter to validate list

* fix: return list of plugins

* feat: added comments in minio init

* feat: use actions and take plugins list by filter

* fix: comments in init minio

* fix: format of comments
BetoFandino added a commit that referenced this pull request Mar 11, 2026
* feat: A new variable has been added to validate whether minio is used. Validation if the expiration rule already exists in the lifecycle.

* feat: validated with snipper value

* fix: decorator of plugin loaded

* fix: deleted variable not used minio_enabled

* fix: deleted return config in plugin

* fix: validation of ilm on rules

* feat: taked action and filter to validate list

* feat: taked filter to validate list

* fix: return list of plugins

* feat: added comments in minio init

* feat: use actions and take plugins list by filter

* fix: comments in init minio

* fix: format of comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants