-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from mallardduck/fix-default-tag
- Loading branch information
Showing
33 changed files
with
1,386 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
#!/bin/bash | ||
set -e | ||
set -x | ||
|
||
source $(dirname $0)/entry | ||
|
||
cd $(dirname $0)/../../../.. | ||
|
||
case "${KUBERNETES_DISTRIBUTION_TYPE}" in | ||
"k3s") | ||
cluster_args="" | ||
kubernetes_version=$(kubectl version | grep "Server Version" | cut -d ' ' -f3) | ||
case "${kubernetes_version}" in | ||
v1.23.*) | ||
embedded_helm_controller_fixed_version="v1.23.14" | ||
if [[ $(echo ${kubernetes_version} ${embedded_helm_controller_fixed_version} | tr " " "\n" | sort -rV | head -n 1 ) == "${embedded_helm_controller_fixed_version}" ]]; then | ||
cluster_args="--set helmProjectOperator.helmController.enabled=false" | ||
fi | ||
;; | ||
v1.24.*) | ||
embedded_helm_controller_fixed_version="v1.24.8" | ||
if [[ $(echo ${kubernetes_version} ${embedded_helm_controller_fixed_version} | tr " " "\n" | sort -rV | head -n 1 ) == "${embedded_helm_controller_fixed_version}" ]]; then | ||
cluster_args="--set helmProjectOperator.helmController.enabled=false" | ||
fi | ||
;; | ||
v1.25.*) | ||
embedded_helm_controller_fixed_version="v1.25.4" | ||
if [[ $(echo ${kubernetes_version} ${embedded_helm_controller_fixed_version} | tr " " "\n" | sort -rV | head -n 1 ) == "${embedded_helm_controller_fixed_version}" ]]; then | ||
cluster_args="--set helmProjectOperator.helmController.enabled=false" | ||
fi | ||
;; | ||
esac | ||
;; | ||
"rke") | ||
cluster_args="" | ||
;; | ||
"rke2") | ||
cluster_args="" | ||
kubernetes_version=$(kubectl version | grep "Server Version" | cut -d ' ' -f3) | ||
case "${kubernetes_version}" in | ||
v1.23.*) | ||
embedded_helm_controller_fixed_version="v1.23.14" | ||
if [[ $(echo ${kubernetes_version} ${embedded_helm_controller_fixed_version} | tr " " "\n" | sort -rV | head -n 1 ) == "${embedded_helm_controller_fixed_version}" ]]; then | ||
cluster_args="--set helmProjectOperator.helmController.enabled=false" | ||
fi | ||
;; | ||
v1.24.*) | ||
embedded_helm_controller_fixed_version="v1.24.8" | ||
if [[ $(echo ${kubernetes_version} ${embedded_helm_controller_fixed_version} | tr " " "\n" | sort -rV | head -n 1 ) == "${embedded_helm_controller_fixed_version}" ]]; then | ||
cluster_args="--set helmProjectOperator.helmController.enabled=false" | ||
fi | ||
;; | ||
v1.25.*) | ||
embedded_helm_controller_fixed_version="v1.25.4" | ||
if [[ $(echo ${kubernetes_version} ${embedded_helm_controller_fixed_version} | tr " " "\n" | sort -rV | head -n 1 ) == "${embedded_helm_controller_fixed_version}" ]]; then | ||
cluster_args="--set helmProjectOperator.helmController.enabled=false" | ||
fi | ||
;; | ||
esac | ||
;; | ||
*) | ||
echo "KUBERNETES_DISTRIBUTION_TYPE=${KUBERNETES_DISTRIBUTION_TYPE} is unknown" | ||
exit 1 | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
annotations: | ||
catalog.cattle.io/certified: rancher | ||
catalog.cattle.io/display-name: Prometheus Federator | ||
catalog.cattle.io/namespace: cattle-monitoring-system | ||
catalog.cattle.io/os: linux,windows | ||
catalog.cattle.io/permits-os: linux,windows | ||
catalog.cattle.io/provides-gvr: helm.cattle.io.projecthelmchart/v1alpha1 | ||
catalog.cattle.io/release-name: prometheus-federator | ||
apiVersion: v2 | ||
appVersion: 0.4.3 | ||
dependencies: | ||
- name: helmProjectOperator | ||
repository: file://./charts/helmProjectOperator | ||
version: 0.3.2 | ||
description: Prometheus Federator | ||
icon: https://raw.githubusercontent.com/rancher/prometheus-federator/main/assets/logos/prometheus-federator.svg | ||
name: prometheus-federator | ||
version: 0.4.4 |
Oops, something went wrong.