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

1.2 Fixes #38

Open
wants to merge 33 commits into
base: main
Choose a base branch
from
Open

1.2 Fixes #38

wants to merge 33 commits into from

Conversation

rarchk
Copy link

@rarchk rarchk commented Jan 7, 2024

PR Type

  • Supports OCI based helm packages
  • Standardized arguments from each action (currently highly inconsistent)
  • Better logging and debugging support

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables...)
  • Refactoring (no functional changes, no api changes )
  • Documentation content changes
  • Tests
  • Other (please specify)

Jira Link

What's New?

Describe your PR here

Other info

Click for more info
Your diff here

rarchk-amagi and others added 30 commits May 31, 2023 19:41
diff based workflow committed
chart not present error handled
updating generalized helm differ
rarchk and others added 3 commits October 25, 2023 18:09
* Adding audit code

* removing typo.

* adding binary path

* adding more values

* Updating ark support.

* update helm version

* update polaris version

* updated serverless chart naming conventions

* moving away from git fetch workflow

* removing version of arkade

* Changed helm diff logic

* updating README

---------

Co-authored-by: rarchk <[email protected]>
@rarchk rarchk requested a review from a team as a code owner January 7, 2024 11:52
Copy link
Member

@mbovo mbovo left a comment

Choose a reason for hiding this comment

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

Hi @rarchk-amagi @rarchk thanks for your pull request.

There are a lot of changes here that are not really "minor fixes" for 1.2 release; for example the introduction of new tooling or the change of input names that leads to break the backward compatibility.
I'm asking here to separate all these features into different PRs to be easily reviewed and in order to lead to major versions bump.

Comment on lines -14 to +18
- `publish` - Uses helm artifactory plugin to uploads the chart
- `publish-artifactory` - Uses helm artifactory plugin to uploads the chart
- `publish-chartmuseum` - Uses helm cm plugin to uploads the chart
Copy link
Member

Choose a reason for hiding this comment

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

This is a breaking change, it cannot be marked as 1.2 fixes

Comment on lines -95 to +103
uses: draios/[email protected]
uses: rarchk/[email protected]
Copy link
Member

Choose a reason for hiding this comment

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

please revert to the original repo

Comment on lines +112 to +113
- name: "Helm publish artifactory"
uses: rarchk/[email protected]
Copy link
Member

Choose a reason for hiding this comment

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

please revert to the original repo

Comment on lines -128 to +136
uses: draios/[email protected]
uses: rarchk/[email protected]
Copy link
Member

Choose a reason for hiding this comment

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

ditto

Comment on lines -107 to +115
action: "publish"
action: "publish-artifactory"
Copy link
Member

Choose a reason for hiding this comment

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

as before

Comment on lines +251 to +255
It statically audits k8s resources
```yaml
- name: "Helm audit"
uses: rarchk/[email protected]
env:
Copy link
Member

Choose a reason for hiding this comment

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

The example should reflect the name of the repo

Comment on lines -4 to +13
export HELM_VERSION=${HELM_VERSION:="3.5.1"}
export KUBECTL_VERSION=${KUBECTL_VERSION:="1.21.0"}
export HELM_VERSION=${HELM_VERSION:="v3.13.3"}
export KUBECTL_VERSION=${KUBECTL_VERSION:="v1.28.0"}
export HELM_ARTIFACTORY_PLUGIN_VERSION=${HELM_ARTIFACTORY_PLUGIN_VERSION:="v1.0.2"}
export HELM_CHARTMUSEUM_PLUGIN_VERSION=${HELM_CHARTMUSEUM_PLUGIN_VERSION:="0.10.3"}
export CHART_VERSION=${CHART_VERSION:=""}
export CHART_APP_VERSION=${CHART_APP_VERSION:=""}
export DYFF_VERSION=${DYFF_VERSION:="1.6.0"}
export YQ_VERSION=${YQ_VERSION:="v4.40.5"}
export POLARIS_VERSION=${POLARIS_VERSION:="8.5.3"}
export KUBE_SCORE_VERSION=${KUBE_SCORE_VERSION:="1.17.0"}
Copy link
Member

Choose a reason for hiding this comment

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

Changing these version requires a full non-regression test run, it cannot be applied as 1.2 fixes, they need a new major version (especially true for kubectl and helm versions)

Comment on lines +55 to +57
print_title "Installing helm:${HELM_VERSION}"
ark get helm --version "${HELM_VERSION}" --quiet
helm version --short -c
Copy link
Member

Choose a reason for hiding this comment

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

It's nice to use arkade to install tooling but again this cannot be considered a minor fix

Comment on lines +102 to +132
install_dyff() {
if ! command -v dyff; then
echo "dyff is missing"
get_dyff
elif ! [[ $(dyff version) == *${DYFF_VERSION}* ]]; then
echo "dyfff $(dyff version) is not desired version"
get_dyff
fi
}

get_dyff() {
print_title "Installing dyff:${DYFF_VERSION}"
curl -L "https://github.com/homeport/dyff/releases/download/v${DYFF_VERSION}/dyff_${DYFF_VERSION}_linux_amd64.tar.gz" | tar xvz
chmod +x dyff
sudo mv dyff /usr/local/bin/dyff
}

install_polaris() {
if ! command -v polaris; then
print_title "Installing polaris:${POLARIS_VERSION}"
ark get polaris --version "${POLARIS_VERSION}" --quiet
fi
polaris version
if ! command -v kube-score; then
print_title "Installing kube-score:${POLARIS_VERSION}"
curl -L "https://github.com/zegl/kube-score/releases/download/v${KUBE_SCORE_VERSION}/kube-score_${KUBE_SCORE_VERSION}_linux_amd64.tar.gz" | tar xvz
chmod +x kube-score
sudo mv kube-score /usr/local/bin/kube-score
fi
kube-score version
}
Copy link
Member

Choose a reason for hiding this comment

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

This could be considered a change per se, adding new features

@mbovo mbovo mentioned this pull request Jan 9, 2024
7 tasks
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