Skip to content

WIP: Repository refactoring#47

Open
sabre1041 wants to merge 3 commits intoredhat-developer:masterfrom
sabre1041:refactor-master
Open

WIP: Repository refactoring#47
sabre1041 wants to merge 3 commits intoredhat-developer:masterfrom
sabre1041:refactor-master

Conversation

@sabre1041
Copy link
Copy Markdown

@sabre1041 sabre1041 commented Jan 10, 2021

Refactoring of master branch

DO NOT MERGE UNTIL GitHub Pages refactoring as part of #46 is completed and validated!

@sabre1041 sabre1041 requested review from deweya and sbose78 January 10, 2021 22:41
@deweya
Copy link
Copy Markdown
Contributor

deweya commented Jan 12, 2021

@sabre1041 Is the intent to move away from separating charts between alpha and stable? It looks like all charts will be moved under charts/.

@deweya
Copy link
Copy Markdown
Contributor

deweya commented Jan 12, 2021

@sabre1041 Do you want to also use chart-releaser to release charts to the branch created in #46, or will that be handled in a different PR?

@sabre1041
Copy link
Copy Markdown
Author

@deweya To address your comments:

  1. Yes we are for the moment consolidating into a single charts folder. As we move forward with different chart types in this repository, we can refactor as needed.
  2. Separate PR for the release process

Comment on lines +12 to +13
- name: Fetch history
run: git fetch --prune --unshallow
Copy link
Copy Markdown
Contributor

@pedjak pedjak Jan 13, 2021

Choose a reason for hiding this comment

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

is this step really needed? And should not we the steps mentioned here: https://github.com/helm/chart-testing-action#example-workflow ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Resolved

uses: helm/chart-testing-action@v2.0.1

- name: Run chart-testing (lint)
run: ct lint --all
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should not we lint only changed charts?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I tend to prefer linting all charts regardless as it is not a lengthy process. For integration testing if we started to enable that aspect, would only target changed charts

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hm, but updating chart_schema.yaml might make linting fails on charts that are not a part of PR. Would that be ok?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thats a good point. @deweya @sbose78 any thoughts?

Copy link
Copy Markdown
Contributor

@deweya deweya Jan 15, 2021

Choose a reason for hiding this comment

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

Yeah it's something to consider. I use just ct lint since only changed charts will be linted. You don't really need to lint unchanged charts but I get doing it to be safe.

I think it's best to do just ct lint for the point @pedjak makes. I can see a quick change turning into a large PR with --all if we need to update chart_schema.yaml in the future. If we make a change to chart_schema.yaml with just ct lint, chart maintainers will just need to update their Chart.yaml file in their next update.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated

- name: IBM
email: contsto2@in.ibm.com
#kubeVersion: '>=1.10.1'
# kubeVersion: '>=1.10.1'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: no-op change

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This change was needed to allow chart-testing to pass

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.

3 participants