-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: main
Are you sure you want to change the base?
1.2 Fixes #38
Conversation
diff based workflow committed
adding debug statements.
chart not present error handled
adding much simpler fixes.
Pre commit hooks
event export
Pre commit hooks
adding non-failable differ
updating generalized helm differ
undo -u changes
undo -u changes
* 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]>
There was a problem hiding this 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.
- `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 |
There was a problem hiding this comment.
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
uses: draios/[email protected] | ||
uses: rarchk/[email protected] |
There was a problem hiding this comment.
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
- name: "Helm publish artifactory" | ||
uses: rarchk/[email protected] |
There was a problem hiding this comment.
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
uses: draios/[email protected] | ||
uses: rarchk/[email protected] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
action: "publish" | ||
action: "publish-artifactory" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as before
It statically audits k8s resources | ||
```yaml | ||
- name: "Helm audit" | ||
uses: rarchk/[email protected] | ||
env: |
There was a problem hiding this comment.
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
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"} |
There was a problem hiding this comment.
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)
print_title "Installing helm:${HELM_VERSION}" | ||
ark get helm --version "${HELM_VERSION}" --quiet | ||
helm version --short -c |
There was a problem hiding this comment.
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
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 | ||
} |
There was a problem hiding this comment.
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
PR Type
What kind of change does this PR introduce?
Jira Link
What's New?
Describe your PR here
Other info
Click for more info