diff --git a/.github/ct-install.yaml b/.github/ct-install.yaml index 18b687394b8..7cc85697b21 100644 --- a/.github/ct-install.yaml +++ b/.github/ct-install.yaml @@ -54,6 +54,5 @@ chart-repos: - truecharts=https://charts.truecharts.org - truecharts-library=https://library-charts.truecharts.org - bitnami=https://charts.bitnami.com/bitnami - - metallb=https://metallb.github.io/metallb - grafana=https://grafana.github.io/helm-charts - prometheus=https://prometheus-community.github.io/helm-charts diff --git a/.github/ct-lint.yaml b/.github/ct-lint.yaml index fda4b2b030c..1473e4f501c 100644 --- a/.github/ct-lint.yaml +++ b/.github/ct-lint.yaml @@ -16,6 +16,5 @@ chart-repos: - truecharts=https://charts.truecharts.org - truecharts-library=https://library-charts.truecharts.org - bitnami=https://charts.bitnami.com/bitnami - - metallb=https://metallb.github.io/metallb - grafana=https://grafana.github.io/helm-charts - prometheus=https://prometheus-community.github.io/helm-charts diff --git a/.github/scripts/build-catalog.sh b/.github/scripts/build-catalog.sh index 989bddd13df..ee216432e1f 100755 --- a/.github/scripts/build-catalog.sh +++ b/.github/scripts/build-catalog.sh @@ -37,21 +37,6 @@ clean_catalog() { } export -f clean_catalog -prep_helm() { - if [[ -z "$standalone" ]]; then - helm repo add truecharts-old https://truecharts.org - helm repo add truecharts https://charts.truecharts.org - helm repo add truecharts-library https://library-charts.truecharts.org - helm repo add bitnami https://charts.bitnami.com/bitnami - helm repo add metallb https://metallb.github.io/metallb - helm repo add grafana https://grafana.github.io/helm-charts - helm repo add prometheus https://prometheus-community.github.io/helm-charts - helm repo add amd-gpu-helm https://radeonopencompute.github.io/k8s-device-plugin/ - helm repo update - fi - } - export -f prep_helm - clean_apps() { local chart="$1" local chartname="$2" diff --git a/.github/scripts/gen-docs.sh b/.github/scripts/gen-docs.sh index 17c285078b7..fb5065b0ee7 100755 --- a/.github/scripts/gen-docs.sh +++ b/.github/scripts/gen-docs.sh @@ -3,62 +3,6 @@ set -o errexit set -o nounset set -o pipefail -# Designed to ensure the appversion in Chart.yaml is in sync with the primary Chart tag if found -# Also makes sure that home link is pointing to the correct url -sync_tag() { - local chart="$1" - local chartname="$2" - local train="$3" - local chartversion="$4" - echo "Attempting to sync primary tag with appversion for: ${chartname}" - local tag="$(cat ${chart}/values.yaml | grep '^ tag: ' | awk -F" " '{ print $2 }' | head -1)" - tag="${tag%%@*}" - tag="${tag:-auto}" - tag=$(echo $tag | sed "s/release-//g") - tag=$(echo $tag | sed "s/release_//g") - tag=$(echo $tag | sed "s/version-//g") - tag=$(echo $tag | sed "s/version_//g") - tag="${tag#*V.}" - tag="${tag#*v-}" - tag="${tag#*v}" - tag="${tag%-*}" - tag="${tag:0:10}" - tag="${tag%-}" - tag="${tag%_}" - tag="${tag%.}" - echo "Updating tag of ${chartname} to ${tag}..." - sed -i -e "s|appVersion: .*|appVersion: \"${tag}\"|" "${chart}/Chart.yaml" - echo "Updating icon of ${chartname}..." - sed -i -e "s|icon: .*|icon: https:\/\/truecharts.org\/img\/hotlink-ok\/chart-icons\/${chartname}.png|" "${chart}/Chart.yaml" - echo "Updating home of ${chartname}..." - sed -i -e "s|home: .*|home: https:\/\/truecharts.org\/docs\/charts\/${train}\/${chartname}|" "${chart}/Chart.yaml" - echo "Attempting to update sources of ${chartname}..." - echo "Using go-yq verion: <$(go-yq -V)>" - # Get all sources (except truecharts) - curr_sources=$(go-yq '.sources[] | select(. != "https://github.com/truecharts*")' "${chart}/Chart.yaml") - # Empty sources list in-place - go-yq -i 'del(.sources.[])' "${chart}/Chart.yaml" - # Add truechart source - tcsource="https://github.com/truecharts/charts/tree/master/charts/$train/$chartname" go-yq -i '.sources += env(tcsource)' "${chart}/Chart.yaml" - # Add the rest of the sources - while IFS= read -r line; do - src="$line" go-yq -i '.sources += env(src)' "${chart}/Chart.yaml" - done <<< "$curr_sources" - echo "Sources of ${chartname} updated!" - } -export -f sync_tag - -sync_helmignore() { - local chart="$1" - local chartname="$2" - local train="$3" - local chartversion="$4" - echo "Attempting to sync HelmIgnore file for: ${chartname}" - rm -rf ${chart}/.helmignore - cp templates/chart/.helmignore ${chart}/ - } -export -f sync_helmignore - create_changelog() { local chart="$1" local chartname="$2" @@ -82,21 +26,6 @@ create_changelog() { } export -f create_changelog -generate_docs() { - local chart="$1" - local chartname="$2" - local train="$3" - local chartversion="$4" - echo "Generating Docs" - helm-docs \ - --ignore-file=".helmdocsignore" \ - --output-file="README.md" \ - --template-files="/__w/charts/charts/templates/docs/README.md.gotmpl" \ - --chart-search-root="${chart}" - sed -i "s/TRAINPLACEHOLDER/${train}/" "${chart}/README.md" - } - export -f generate_docs - if [[ -d "charts/${1}" ]]; then echo "Start processing charts/${1} ..." @@ -104,11 +33,7 @@ if [[ -d "charts/${1}" ]]; then chartname=$(basename charts/${1}) train=$(basename $(dirname "charts/${1}")) SCALESUPPORT=$(cat charts/${1}/Chart.yaml | yq '.annotations."truecharts.org/SCALE-support"' -r) - sync_helmignore "charts/${1}" "${chartname}" "$train" "${chartversion}" || echo "Syncing HelmIgnore file failed..." - helm dependency update "charts/${1}" --skip-refresh || (sleep 10 && helm dependency update "charts/${1}" --skip-refresh) || (sleep 10 && helm dependency update "charts/${1}" --skip-refresh) - sync_tag "charts/${1}" "${chartname}" "$train" "${chartversion}" || echo "Tag sync failed..." create_changelog "charts/${1}" "${chartname}" "$train" "${chartversion}" || echo "changelog generation failed..." - generate_docs "charts/${1}" "${chartname}" "$train" "${chartversion}" || echo "Docs generation failed..." else echo "Chart 'charts/${1}' no longer exists in repo. Skipping it..." fi diff --git a/.github/workflows/charts-release.yaml b/.github/workflows/charts-release.yaml index 29c623bba17..5f46b22df42 100644 --- a/.github/workflows/charts-release.yaml +++ b/.github/workflows/charts-release.yaml @@ -25,18 +25,12 @@ jobs: helmv3 helm: "3.8.0" - - name: Install helm-docs - run: | - wget -O /tmp/helm-docs.deb https://github.com/k8s-at-home/helm-docs/releases/download/v0.1.1/helm-docs_0.1.1_Linux_x86_64.deb - sudo dpkg -i /tmp/helm-docs.deb - - name: Prep Helm run: | helm repo add truecharts https://charts.truecharts.org helm repo add truecharts-library https://library-charts.truecharts.org helm repo add bitnami https://charts.bitnami.com/bitnami - helm repo add metallb https://metallb.github.io/metallb - helm repo add grafana https://grafana.github.io/helm-charts + helm repo add prometheus https://prometheus-community.github.io/helm-charts helm repo update @@ -97,7 +91,6 @@ jobs: echo "copying docs to website for ${chart}" rm -rf website/docs/charts/*/${chart} mkdir -p website/docs/charts/${train}/${chart} || echo "chart path already exists, continuing..." - yes | cp -rf charts/${train}/${chart}/README.md website/docs/charts/${train}/${chart}/index.md 2>/dev/null || : yes | cp -rf charts/${train}/${chart}/CHANGELOG.md website/docs/charts/${train}/${chart}/CHANGELOG.md 2>/dev/null || : yes | cp -rf charts/${train}/${chart}/docs/* website/docs/charts/${train}/${chart}/ 2>/dev/null || : yes | cp -rf charts/${train}/${chart}/icon.png website/static/img/hotlink-ok/chart-icons/${chart}.png 2>/dev/null || : @@ -173,7 +166,7 @@ jobs: git push cd - rm -rf catalog - + release-helm-important: runs-on: ubuntu-latest container: @@ -187,17 +180,12 @@ jobs: helmv3 helm: "3.8.0" - - name: Install helm-docs - run: | - wget -O /tmp/helm-docs.deb https://github.com/k8s-at-home/helm-docs/releases/download/v0.1.1/helm-docs_0.1.1_Linux_x86_64.deb - sudo dpkg -i /tmp/helm-docs.deb - name: Prep Helm run: | helm repo add truecharts https://charts.truecharts.org helm repo add truecharts-library https://library-charts.truecharts.org helm repo add bitnami https://charts.bitnami.com/bitnami - helm repo add metallb https://metallb.github.io/metallb - helm repo add grafana https://grafana.github.io/helm-charts + helm repo add prometheus https://prometheus-community.github.io/helm-charts helm repo update - name: Checkout @@ -239,7 +227,7 @@ jobs: env: CR_TOKEN: "${{ secrets.BOT_TOKEN }}" CR_SKIP_EXISTING: "true" - + release-helm-stable: runs-on: ubuntu-latest container: @@ -253,17 +241,12 @@ jobs: helmv3 helm: "3.8.0" - - name: Install helm-docs - run: | - wget -O /tmp/helm-docs.deb https://github.com/k8s-at-home/helm-docs/releases/download/v0.1.1/helm-docs_0.1.1_Linux_x86_64.deb - sudo dpkg -i /tmp/helm-docs.deb - name: Prep Helm run: | helm repo add truecharts https://charts.truecharts.org helm repo add truecharts-library https://library-charts.truecharts.org helm repo add bitnami https://charts.bitnami.com/bitnami - helm repo add metallb https://metallb.github.io/metallb - helm repo add grafana https://grafana.github.io/helm-charts + helm repo add prometheus https://prometheus-community.github.io/helm-charts helm repo update - name: Checkout @@ -292,7 +275,7 @@ jobs: env: CR_TOKEN: "${{ secrets.BOT_TOKEN }}" CR_SKIP_EXISTING: "true" - + release-helm-incubator: runs-on: ubuntu-latest container: @@ -315,8 +298,8 @@ jobs: helm repo add truecharts https://charts.truecharts.org helm repo add truecharts-library https://library-charts.truecharts.org helm repo add bitnami https://charts.bitnami.com/bitnami - helm repo add metallb https://metallb.github.io/metallb - helm repo add grafana https://grafana.github.io/helm-charts + + helm repo add prometheus https://prometheus-community.github.io/helm-charts helm repo update - name: Checkout diff --git a/.github/workflows/daily.yaml b/.github/workflows/daily.yaml new file mode 100644 index 00000000000..a25b413711e --- /dev/null +++ b/.github/workflows/daily.yaml @@ -0,0 +1,48 @@ +name: "Daily Tasks" + +on: + workflow_dispatch: + +jobs: + generate-readme: + runs-on: ubuntu-latest + name: "Generate readme files" + steps: + - name: Checkout + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3 + with: + token: ${{ secrets.BOT_TOKEN }} + fetch-depth: 0 + - name: generate readme.md + shell: bash + run: | + for train in stable SCALE incubator games enterprise develop non-free deprecated dependency core; do + for chart in charts/${train}/*; do + if [ -d "${chart}" ]; then + echo "Generating readme.md for ${train}/${chart}" + cp "templates/README.md.tpl" "${chart}/README.md" + sed -i "s/TRAINPLACEHOLDER/${train}/" "${chart}/README.md" + sed -i "s/CHARTPLACEHOLDER/${chartname}/" "${chart}/README.md" + fi + done + done + - name: generate HelmIgnore + shell: bash + run: | + for train in stable SCALE incubator games enterprise develop non-free deprecated dependency core; do + for chart in charts/${train}/*; do + if [ -d "${chart}" ]; then + echo "Attempting to sync HelmIgnore file for: ${chartname}" + rm -rf ${chart}/.helmignore + cp templates/chart/.helmignore ${chart}/ + fi + done + done + + - name: Commit changes + run: | + git config user.name "TrueCharts-Bot" + git config user.email "bot@truecharts.org" + git add --all + git commit -sm "Commit daily changes" || exit 0 + git push diff --git a/.github/workflows/renovate-bump.yaml b/.github/workflows/renovate-bump.yaml index 9c11bac1cb2..d02d45d2f45 100644 --- a/.github/workflows/renovate-bump.yaml +++ b/.github/workflows/renovate-bump.yaml @@ -41,6 +41,52 @@ jobs: run: echo '${{ toJson(steps.filter.outputs) }}' > changes.json - name: Bump run: | + # Designed to ensure the appversion in Chart.yaml is in sync with the primary Chart tag if found + # Also makes sure that home link is pointing to the correct url + sync_tag() { + local chart="$1" + local chartname="$2" + local train="$3" + echo "Attempting to sync primary tag with appversion for: ${chartname}" + local tag="$(cat ${chart}/values.yaml | grep '^ tag: ' | awk -F" " '{ print $2 }' | head -1)" + tag="${tag%%@*}" + tag="${tag:-auto}" + tag=$(echo $tag | sed "s/release-//g") + tag=$(echo $tag | sed "s/release_//g") + tag=$(echo $tag | sed "s/version-//g") + tag=$(echo $tag | sed "s/version_//g") + tag="${tag#*V.}" + tag="${tag#*v-}" + tag="${tag#*v}" + tag="${tag%-*}" + tag="${tag:0:10}" + tag="${tag%-}" + tag="${tag%_}" + tag="${tag%.}" + echo "Updating tag of ${chartname} to ${tag}..." + sed -i -e "s|appVersion: .*|appVersion: \"${tag}\"|" "${chart}/Chart.yaml" + echo "Updating icon of ${chartname}..." + sed -i -e "s|icon: .*|icon: https:\/\/truecharts.org\/img\/hotlink-ok\/chart-icons\/${chartname}.png|" "${chart}/Chart.yaml" + echo "Updating home of ${chartname}..." + sed -i -e "s|home: .*|home: https:\/\/truecharts.org\/docs\/charts\/${train}\/${chartname}|" "${chart}/Chart.yaml" + echo "Attempting to update sources of ${chartname}..." + echo "Using go-yq verion: <$(go-yq -V)>" + # Get all sources (except truecharts) + curr_sources=$(go-yq '.sources[] | select(. != "https://github.com/truecharts*")' "${chart}/Chart.yaml") + # Empty sources list in-place + go-yq -i 'del(.sources.[])' "${chart}/Chart.yaml" + # Add truechart source + tcsource="https://github.com/truecharts/charts/tree/master/charts/$train/$chartname" go-yq -i '.sources += env(tcsource)' "${chart}/Chart.yaml" + # Add the rest of the sources + while IFS= read -r line; do + src="$line" go-yq -i '.sources += env(src)' "${chart}/Chart.yaml" + done <<< "$curr_sources" + echo "Sources of ${chartname} updated!" + } + export -f sync_tag + + + # The actual script APPS=$(jq --raw-output '.changed_files | fromjson | .[] |= sub("(?(?(?[\/]?)[^\/]+\/)(?(?[\/]?)[^\/]+\/)(?(?[\/]?)[^\/]+)(?.+))"; "\(.third_directory)") | unique' changes.json | jq -r '.[]') echo "changed apps: ${APPS[*]}" for chart in ${APPS[*]} @@ -78,6 +124,8 @@ jobs: echo "Bumping patch version for ${train}/${chart}" ./tools/bump.sh patch ./charts/${train}/${chart} fi + + sync_tag "charts/${train}/${chart}" "${chart}" "${train}" done - name: Cleanup run: | diff --git a/.gitignore b/.gitignore index bc29187bbbf..a83c25ccadd 100644 --- a/.gitignore +++ b/.gitignore @@ -54,4 +54,3 @@ chartsrepo/ .cr-index/ website/ pub/ -readme.md diff --git a/charts/stable/jackett/Chart.yaml b/charts/stable/jackett/Chart.yaml index 6bd94f784b5..e2f5cd3506a 100644 --- a/charts/stable/jackett/Chart.yaml +++ b/charts/stable/jackett/Chart.yaml @@ -22,7 +22,7 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/jackett - https://github.com/Jackett/Jackett type: application -version: 11.0.130 +version: 11.1.0 annotations: truecharts.org/catagories: | - media diff --git a/templates/README.md.tpl b/templates/README.md.tpl new file mode 100644 index 00000000000..d60a68ca528 --- /dev/null +++ b/templates/README.md.tpl @@ -0,0 +1,27 @@ +# README + +## General Info + +TrueCharts can be installed as both *normal* Helm Charts or as Apps on TrueNAS SCALE. +However only installations using the TrueNAS SCALE Apps system are supported. + +For more information about this App, please check the docs on the TrueCharts [website](https://truecharts.org/docs/charts/TRAINPLACEHOLDER/CHARTPLACEHOLDER) + +**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/charts/issues/new/choose)** + + +## Support + +- Please check our [quick-start guides for TrueNAS SCALE](https://truecharts.org/docs/manual/SCALE%20Apps/Important-MUST-READ). +- See the [Website](https://truecharts.org) +- Check our [Discord](https://discord.gg/tVsPTHWTtr) +- Open a [issue](https://github.com/truecharts/apps/issues/new/choose) + +--- + +## Sponsor TrueCharts + +TrueCharts can only exist due to the incredible effort of our staff. +Please consider making a [donation](https://truecharts.org/sponsor) or contributing back to the project any way you can! + +*All Rights Reserved - The TrueCharts Project* diff --git a/templates/docs/README.md b/templates/docs/README.md new file mode 100644 index 00000000000..d60a68ca528 --- /dev/null +++ b/templates/docs/README.md @@ -0,0 +1,27 @@ +# README + +## General Info + +TrueCharts can be installed as both *normal* Helm Charts or as Apps on TrueNAS SCALE. +However only installations using the TrueNAS SCALE Apps system are supported. + +For more information about this App, please check the docs on the TrueCharts [website](https://truecharts.org/docs/charts/TRAINPLACEHOLDER/CHARTPLACEHOLDER) + +**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/charts/issues/new/choose)** + + +## Support + +- Please check our [quick-start guides for TrueNAS SCALE](https://truecharts.org/docs/manual/SCALE%20Apps/Important-MUST-READ). +- See the [Website](https://truecharts.org) +- Check our [Discord](https://discord.gg/tVsPTHWTtr) +- Open a [issue](https://github.com/truecharts/apps/issues/new/choose) + +--- + +## Sponsor TrueCharts + +TrueCharts can only exist due to the incredible effort of our staff. +Please consider making a [donation](https://truecharts.org/sponsor) or contributing back to the project any way you can! + +*All Rights Reserved - The TrueCharts Project* diff --git a/templates/questions/addons/netshoot.yaml b/templates/questions/addons/netshoot.yaml deleted file mode 100644 index 89a34f8d5c7..00000000000 --- a/templates/questions/addons/netshoot.yaml +++ /dev/null @@ -1,36 +0,0 @@ - - variable: netshoot - label: Netshoot - schema: - additional_attrs: true - type: dict - attrs: - - variable: enabled - label: Enabled - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: envList - label: Netshoot Environment Variables - schema: - type: list - show_if: [["type", "!=", "disabled"]] - default: [] - items: - - variable: envItem - label: Environment Variable - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - required: true - - variable: value - label: Value - schema: - type: string - required: true diff --git a/templates/questions/addons/promtail.yaml b/templates/questions/addons/promtail.yaml deleted file mode 100644 index 2bed146e1ef..00000000000 --- a/templates/questions/addons/promtail.yaml +++ /dev/null @@ -1,69 +0,0 @@ - - variable: promtail - label: Promtail - schema: - additional_attrs: true - type: dict - attrs: - - variable: enabled - label: Enabled - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: loki - label: Loki URL - schema: - type: string - required: true - - variable: logs - label: Log Paths - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - required: true - - variable: path - label: Path - schema: - type: string - required: true - - variable: args - label: Promtail Command Line Arguments - schema: - type: list - show_if: [["type", "!=", "disabled"]] - default: [] - items: - - variable: arg - label: Arg - schema: - type: string - required: true - - variable: envList - label: Promtail Environment Variables - schema: - type: list - show_if: [["type", "!=", "disabled"]] - default: [] - items: - - variable: envItem - label: Environment Variable - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - required: true - - variable: value - label: Value - schema: - type: string - required: true diff --git a/templates/questions/controller/controller.yaml b/templates/questions/controller/controller.yaml index 07b9e7cfdf3..55b6faf624b 100644 --- a/templates/questions/controller/controller.yaml +++ b/templates/questions/controller/controller.yaml @@ -1,27 +1,8 @@ - variable: controller - group: Controller + group: "General Settings" label: "" schema: additional_attrs: true type: dict attrs: - - variable: advanced - label: Show Advanced Controller Settings - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: type - description: Please specify type of workload to deploy - label: (Advanced) Controller Type - schema: - type: string - required: true - enum: - - value: deployment - description: Deployment - - value: statefulset - description: Statefulset - - value: daemonset - description: Daemonset + diff --git a/templates/questions/controller/controllerDaemonset.yaml b/templates/questions/controller/controllerDaemonset.yaml deleted file mode 100644 index 8b2e74492e0..00000000000 --- a/templates/questions/controller/controllerDaemonset.yaml +++ /dev/null @@ -1 +0,0 @@ - default: daemonset diff --git a/templates/questions/controller/controllerDeployment.yaml b/templates/questions/controller/controllerDeployment.yaml deleted file mode 100644 index 96866a76d95..00000000000 --- a/templates/questions/controller/controllerDeployment.yaml +++ /dev/null @@ -1 +0,0 @@ - default: deployment diff --git a/templates/questions/controller/controllerExpert.yaml b/templates/questions/controller/controllerExpert.yaml deleted file mode 100644 index 8b802d2218e..00000000000 --- a/templates/questions/controller/controllerExpert.yaml +++ /dev/null @@ -1,47 +0,0 @@ - - variable: expert - label: Show Expert Configuration Options - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: labelsList - label: Controller Labels - schema: - type: list - default: [] - items: - - variable: labelItem - label: Label - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - - variable: value - label: Value - schema: - type: string - - variable: annotationsList - label: Controller Annotations - schema: - type: list - default: [] - items: - - variable: annotationItem - label: Label - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - - variable: value - label: Value - schema: - type: string diff --git a/templates/questions/controller/controllerExpertCommand.yaml b/templates/questions/controller/controllerExpertCommand.yaml index 21c32b55fcb..332bf0957d8 100644 --- a/templates/questions/controller/controllerExpertCommand.yaml +++ b/templates/questions/controller/controllerExpertCommand.yaml @@ -1,5 +1,5 @@ - variable: customcommand - group: Controller + group: "General Settings" label: "Custom Command" description: "Do not click this unless you know what you are doing" schema: diff --git a/templates/questions/controller/controllerExpertExtraArgs.yaml b/templates/questions/controller/controllerExpertExtraArgs.yaml index 1399c5f3041..a920ffc2379 100644 --- a/templates/questions/controller/controllerExpertExtraArgs.yaml +++ b/templates/questions/controller/controllerExpertExtraArgs.yaml @@ -1,5 +1,5 @@ - variable: customextraargs - group: Controller + group: "General Settings" label: "Extra Args" description: "Do not click this unless you know what you are doing" schema: diff --git a/templates/questions/controller/controllerStatefullset.yaml b/templates/questions/controller/controllerStatefullset.yaml deleted file mode 100644 index 475f59e6147..00000000000 --- a/templates/questions/controller/controllerStatefullset.yaml +++ /dev/null @@ -1 +0,0 @@ - default: statefulset diff --git a/templates/questions/general/containerConfig.yaml b/templates/questions/general/containerConfig.yaml index 5d407ed0a34..5aa0efb051f 100644 --- a/templates/questions/general/containerConfig.yaml +++ b/templates/questions/general/containerConfig.yaml @@ -1,6 +1,6 @@ - variable: TZ label: Timezone - group: Container Configuration + group: "General Settings" schema: type: string default: "Etc/UTC" @@ -9,7 +9,7 @@ - variable: envList label: Extra Environment Variables description: "Please be aware that some variables are set in the background, adding duplicates here might cause issues or prevent the app from starting..." - group: Container Configuration + group: "General Settings" schema: type: list default: [] @@ -28,79 +28,3 @@ label: Value schema: type: string - - variable: expertpodconf - group: Container Configuration - label: Show Expert Configuration - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: tty - label: Enable TTY - description: Determines whether containers in a pod runs with TTY enabled. By default pod has it disabled. - group: Workload Details - schema: - type: boolean - default: false - - variable: stdin - label: Enable STDIN - description: Determines whether containers in a pod runs with stdin enabled. By default pod has it disabled. - group: Workload Details - schema: - type: boolean - default: false - - variable: termination - group: Container Configuration - label: Termination settings - schema: - additional_attrs: true - type: dict - attrs: - - variable: gracePeriodSeconds - label: Grace Period Seconds - schema: - type: int - default: 10 - - variable: podLabelsList - group: Container Configuration - label: Pod Labels - schema: - type: list - default: [] - items: - - variable: podLabelItem - label: Label - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - - variable: value - label: Value - schema: - type: string - - variable: podAnnotationsList - group: Container Configuration - label: Pod Annotations - schema: - type: list - default: [] - items: - - variable: podAnnotationItem - label: Label - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - - variable: value - label: Value - schema: - type: string diff --git a/templates/questions/general/controllerTypes.yaml b/templates/questions/general/controllerTypes.yaml deleted file mode 100644 index 8bb27932bbd..00000000000 --- a/templates/questions/general/controllerTypes.yaml +++ /dev/null @@ -1,7 +0,0 @@ - enum: - - value: deployment - description: Deployment - - value: statefulset - description: Statefulset - - value: daemonset - description: Daemonset diff --git a/templates/questions/general/global.yaml b/templates/questions/general/global.yaml index c15de4e8fd6..7be6518a704 100644 --- a/templates/questions/general/global.yaml +++ b/templates/questions/general/global.yaml @@ -1,6 +1,6 @@ - variable: global label: Global Settings - group: Controller + group: "General Settings" schema: type: dict hidden: true diff --git a/templates/questions/general/groups.yaml b/templates/questions/general/groups.yaml index d8089476f8e..4d9b283db40 100644 --- a/templates/questions/general/groups.yaml +++ b/templates/questions/general/groups.yaml @@ -1,10 +1,8 @@ groups: - name: Container Image description: Image to be used for container - - name: Controller - description: Configure Workload Deployment - - name: Container Configuration - description: Additional Container Configuration + - name: General Settings + description: General Deployment Settings - name: App Configuration description: App Specific Config Options - name: Networking and Services @@ -21,6 +19,8 @@ groups: description: Traefik Middlewares - name: Metrics description: Metrics + - name: VPN + description: VPN - name: Addons description: Addon Configuration - name: Advanced diff --git a/templates/questions/general/resources.yaml b/templates/questions/general/resources.yaml index d60c393e025..13e31859fbd 100644 --- a/templates/questions/general/resources.yaml +++ b/templates/questions/general/resources.yaml @@ -1,58 +1,53 @@ - - - variable: advancedresources - label: Set Custom Resource Limits/Requests (Advanced) + - variable: resources group: Resources and Devices + label: "Resource Limits" schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: resources - label: "" + additional_attrs: true + type: dict + attrs: + - variable: limits + label: Advanced Limit Resource Consumption schema: additional_attrs: true type: dict attrs: - - variable: limits - label: Advanced Limit Resource Consumption + - variable: cpu + label: CPU + description: "1000m means 1 hyperthread. Detailed info: https://truecharts.org/docs/manual/SCALE%20Apps/indepth/validation" schema: - additional_attrs: true - type: dict - attrs: - - variable: cpu - label: CPU - description: "1000m means 1 hyperthread. Detailed info: https://truecharts.org/docs/manual/SCALE%20Apps/indepth/validation" - schema: - type: string - default: 4000m - valid_chars: '^(?!^0(\.0|m|)$)([0-9]+)(\.[0-9]|m?)$' - - variable: memory - label: RAM - description: "1Gi means 1 Gibibyte RAM. Detailed info: https://truecharts.org/docs/manual/SCALE%20Apps/indepth/validation" - schema: - type: string - default: 8Gi - valid_chars: '^(?!^0(e[0-9]|[EPTGMK]i?|)$)([0-9]+)(|[EPTGMK]i?|e[0-9]+)$' - - variable: requests - label: "Minimum Resources Required (request)" + type: string + default: 4000m + valid_chars: '^(?!^0(\.0|m|)$)([0-9]+)(\.[0-9]|m?)$' + - variable: memory + label: RAM + description: "1Gi means 1 Gibibyte RAM. Detailed info: https://truecharts.org/docs/manual/SCALE%20Apps/indepth/validation" schema: - additional_attrs: true - type: dict - attrs: - - variable: cpu - label: CPU - description: "1000m means 1 hyperthread. Detailed info: https://truecharts.org/docs/manual/SCALE%20Apps/indepth/validation" - schema: - type: string - default: 10m - valid_chars: '^(?!^0(\.0|m|)$)([0-9]+)(\.[0-9]|m?)$' - - variable: memory - label: "RAM" - description: "1Gi means 1 Gibibyte RAM. Detailed info: https://truecharts.org/docs/manual/SCALE%20Apps/indepth/validation" - schema: - type: string - default: 50Mi - valid_chars: '^(?!^0(e[0-9]|[EPTGMK]i?|)$)([0-9]+)(|[EPTGMK]i?|e[0-9]+)$' + type: string + default: 8Gi + valid_chars: '^(?!^0(e[0-9]|[EPTGMK]i?|)$)([0-9]+)(|[EPTGMK]i?|e[0-9]+)$' + - variable: requests + label: "Minimum Resources Required (request)" + schema: + additional_attrs: true + type: dict + hidden: true + attrs: + - variable: cpu + label: CPU + description: "1000m means 1 hyperthread. Detailed info: https://truecharts.org/docs/manual/SCALE%20Apps/indepth/validation" + schema: + type: string + default: 10m + hidden: true + valid_chars: '^(?!^0(\.0|m|)$)([0-9]+)(\.[0-9]|m?)$' + - variable: memory + label: "RAM" + description: "1Gi means 1 Gibibyte RAM. Detailed info: https://truecharts.org/docs/manual/SCALE%20Apps/indepth/validation" + schema: + type: string + default: 50Mi + hidden: true + valid_chars: '^(?!^0(e[0-9]|[EPTGMK]i?|)$)([0-9]+)(|[EPTGMK]i?|e[0-9]+)$' - variable: deviceList label: Mount USB Devices group: Resources and Devices diff --git a/templates/questions/ingress/ingressExpert.yaml b/templates/questions/ingress/ingressExpert.yaml deleted file mode 100644 index be49e35fba4..00000000000 --- a/templates/questions/ingress/ingressExpert.yaml +++ /dev/null @@ -1,58 +0,0 @@ - - variable: expert - label: Show Expert Configuration Options - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: enableFixedMiddlewares - description: These middlewares enforce a number of best practices. - label: Enable Default Middlewares - schema: - type: boolean - default: true - - variable: ingressClassName - label: IngressClass Name - schema: - type: string - default: "" - - variable: labelsList - label: Labels - schema: - type: list - default: [] - items: - - variable: labelItem - label: Label - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - - variable: value - label: Value - schema: - type: string - - variable: annotationsList - label: Annotations - schema: - type: list - default: [] - items: - - variable: annotationItem - label: Label - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - - variable: value - label: Value - schema: - type: string diff --git a/templates/questions/ingress/ingressList.yaml b/templates/questions/ingress/ingressList.yaml deleted file mode 100644 index 506e095e7fa..00000000000 --- a/templates/questions/ingress/ingressList.yaml +++ /dev/null @@ -1,176 +0,0 @@ - - variable: ingressList - label: Add Manual Custom Ingresses - group: Ingress - schema: - type: list - default: [] - items: - - variable: ingressListEntry - label: Custom Ingress - schema: - additional_attrs: true - type: dict - attrs: - - variable: enabled - label: Enable Ingress - schema: - type: boolean - default: true - hidden: true - - variable: name - label: Name - schema: - type: string - default: "" - - variable: ingressClassName - label: IngressClass Name - schema: - type: string - default: "" - - variable: labelsList - label: Labels - schema: - type: list - default: [] - items: - - variable: labelItem - label: Label - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - - variable: value - label: Value - schema: - type: string - - variable: annotationsList - label: Annotations - schema: - type: list - default: [] - items: - - variable: annotationItem - label: Label - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - - variable: value - label: Value - schema: - type: string - - variable: hosts - label: Hosts - schema: - type: list - default: [] - items: - - variable: hostEntry - label: Host - schema: - additional_attrs: true - type: dict - attrs: - - variable: host - label: HostName - schema: - type: string - default: "" - required: true - - variable: paths - label: Paths - schema: - type: list - default: [] - items: - - variable: pathEntry - label: Host - schema: - additional_attrs: true - type: dict - attrs: - - variable: path - label: Path - schema: - type: string - required: true - default: "/" - - variable: pathType - label: Path Type - schema: - type: string - required: true - default: Prefix - - variable: service - label: Linked Service - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Service Name - schema: - type: string - default: "" - - variable: port - label: Service Port - schema: - type: int - - variable: tls - label: TLS-Settings - schema: - type: list - default: [] - items: - - variable: tlsEntry - label: Host - schema: - additional_attrs: true - type: dict - attrs: - - variable: hosts - label: Certificate Hosts - schema: - type: list - default: [] - items: - - variable: host - label: Host - schema: - type: string - default: "" - required: true - - variable: scaleCert - label: Select TrueNAS SCALE Certificate - schema: - type: int - $ref: - - "definitions/certificate" - - variable: entrypoint - label: Traefik Entrypoint - description: Entrypoint used by Traefik when using Traefik as Ingress Provider - schema: - type: string - default: websecure - required: true - - variable: middlewares - label: Traefik Middlewares - description: Add previously created Traefik Middlewares to this Ingress - schema: - type: list - default: [] - items: - - variable: name - label: Name - schema: - type: string - default: "" - required: true diff --git a/templates/questions/ingress/ingressTraefik.yaml b/templates/questions/ingress/ingressTraefik.yaml index a2571056b4f..51d1fb26962 100644 --- a/templates/questions/ingress/ingressTraefik.yaml +++ b/templates/questions/ingress/ingressTraefik.yaml @@ -5,6 +5,11 @@ type: string default: websecure required: true + - variable: ingressClassName + label: (Advanced/Optional) IngressClass Name + schema: + type: string + default: "" - variable: middlewares label: Traefik Middlewares description: Add previously created Traefik Middlewares to this Ingress diff --git a/templates/questions/persistence/persistenceAdvanced.yaml b/templates/questions/persistence/persistenceAdvanced.yaml index 5aba9880e0e..3430b392015 100644 --- a/templates/questions/persistence/persistenceAdvanced.yaml +++ b/templates/questions/persistence/persistenceAdvanced.yaml @@ -4,94 +4,3 @@ show_if: [["type", "=", "pvc"]] type: string default: 256Gi - - variable: hostPathType - label: (Advanced) hostPath Type - schema: - show_if: [["type", "=", "hostPath"]] - type: string - default: "" - enum: - - value: "" - description: Default - - value: DirectoryOrCreate - description: DirectoryOrCreate - - value: Directory - description: Directory - - value: FileOrCreate - description: FileOrCreate - - value: File - description: File - - value: Socket - description: Socket - - value: CharDevice - description: CharDevice - - value: BlockDevice - description: BlockDevice - - variable: storageClass - label: (Advanced) storageClass - description: "Warning: Anything other than SCALE-ZFS or empty will break rollback!" - schema: - show_if: [["type", "=", "pvc"]] - type: string - default: SCALE-ZFS - - variable: accessMode - label: (Advanced) Access Mode - description: Allow or disallow multiple PVC's writhing to the same PV - schema: - show_if: [["type", "=", "pvc"]] - type: string - default: ReadWriteOnce - enum: - - value: ReadWriteOnce - description: ReadWriteOnce - - value: ReadOnlyMany - description: ReadOnlyMany - - value: ReadWriteMany - description: ReadWriteMany - - variable: advanced - label: Show Advanced Options - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: labelsList - label: Labels - schema: - type: list - default: [] - items: - - variable: labelItem - label: Label - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - - variable: value - label: Value - schema: - type: string - - variable: annotationsList - label: Annotations - schema: - type: list - default: [] - items: - - variable: annotationItem - label: Label - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - - variable: value - label: Value - schema: - type: string diff --git a/templates/questions/persistence/persistenceBasic.yaml b/templates/questions/persistence/persistenceBasic.yaml index 5c77af86375..c3c139b14e8 100644 --- a/templates/questions/persistence/persistenceBasic.yaml +++ b/templates/questions/persistence/persistenceBasic.yaml @@ -3,18 +3,14 @@ description: Sets the persistence type, Anything other than PVC could break rollback! schema: type: string - default: simplePVC + default: pvc enum: - - value: simplePVC - description: PVC (simple) - - value: simpleHP - description: Host Path (simple) - - value: emptyDir - description: emptyDir - value: pvc description: PVC - value: hostPath description: Host Path + - value: emptyDir + description: emptyDir - value: nfs description: NFS Share - variable: server @@ -29,13 +25,6 @@ show_if: [["type", "=", "nfs"]] type: string default: "" - - variable: setPermissionsSimple - label: Automatic Permissions - description: Automatically set permissions on install - schema: - show_if: [["type", "=", "simpleHP"]] - type: boolean - default: false - variable: setPermissions label: Automatic Permissions description: Automatically set permissions on install @@ -48,12 +37,6 @@ schema: type: boolean default: false - - variable: hostPathSimple - label: Host Path - description: Path inside the container the storage is mounted - schema: - show_if: [["type", "=", "simpleHP"]] - type: hostpath - variable: hostPath label: Host Path description: Path inside the container the storage is mounted @@ -71,3 +54,9 @@ description: Default - value: Memory description: Memory + - variable: size + label: Size quotum of Storage + schema: + show_if: [["type", "=", "pvc"]] + type: string + default: 256Gi diff --git a/templates/questions/persistence/persistenceList.yaml b/templates/questions/persistence/persistenceList.yaml index b496f06944a..e20a4bdde81 100644 --- a/templates/questions/persistence/persistenceList.yaml +++ b/templates/questions/persistence/persistenceList.yaml @@ -27,18 +27,14 @@ description: Sets the persistence type, Anything other than PVC could break rollback! schema: type: string - default: simpleHP + default: hostPath enum: - - value: simplePVC - description: PVC (Simple) - - value: simpleHP - description: Host Path (Simple) - - value: emptyDir - description: emptyDir - value: pvc description: PVC - value: hostPath description: Host Path + - value: emptyDir + description: emptyDir - value: nfs description: NFS Share - variable: server @@ -53,13 +49,6 @@ show_if: [["type", "=", "nfs"]] type: string default: "" - - variable: setPermissionsSimple - label: Automatic Permissions - description: Automatically set permissions on install - schema: - show_if: [["type", "=", "simpleHP"]] - type: boolean - default: false - variable: setPermissions label: Automatic Permissions description: Automatically set permissions on install @@ -72,12 +61,6 @@ schema: type: boolean default: false - - variable: hostPathSimple - label: Host Path - description: Path inside the container the storage is mounted - schema: - show_if: [["type", "=", "simpleHP"]] - type: hostpath - variable: hostPath label: Host Path description: Path inside the container the storage is mounted @@ -109,94 +92,3 @@ show_if: [["type", "=", "pvc"]] type: string default: 256Gi - - variable: hostPathType - label: (Advanced) Host Path Type - schema: - show_if: [["type", "=", "hostPath"]] - type: string - default: "" - enum: - - value: "" - description: Default - - value: DirectoryOrCreate - description: DirectoryOrCreate - - value: Directory - description: Directory - - value: FileOrCreate - description: FileOrCreate - - value: File - description: File - - value: Socket - description: Socket - - value: CharDevice - description: CharDevice - - value: BlockDevice - description: BlockDevice - - variable: storageClass - label: (Advanced) StorageClass - description: "Warning: Anything other than SCALE-ZFS or empty will break rollback!" - schema: - show_if: [["type", "=", "pvc"]] - type: string - default: SCALE-ZFS - - variable: accessMode - label: (Advanced) Access Mode - description: Allow or disallow multiple PVC's writhing to the same PV - schema: - show_if: [["type", "=", "pvc"]] - type: string - default: ReadWriteOnce - enum: - - value: ReadWriteOnce - description: ReadWriteOnce - - value: ReadOnlyMany - description: ReadOnlyMany - - value: ReadWriteMany - description: ReadWriteMany - - variable: advanced - label: Show Advanced Options - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: labelsList - label: Labels - schema: - type: list - default: [] - items: - - variable: labelItem - label: Label - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - - variable: value - label: Value - schema: - type: string - - variable: annotationsList - label: Annotations - schema: - type: list - default: [] - items: - - variable: annotationItem - label: Label - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - - variable: value - label: Value - schema: - type: string diff --git a/templates/questions/replicas/replica1.yaml b/templates/questions/replicas/replica1.yaml index 3f649ae4429..dc82f85f088 100644 --- a/templates/questions/replicas/replica1.yaml +++ b/templates/questions/replicas/replica1.yaml @@ -1 +1 @@ - default: 1 + default: 1 diff --git a/templates/questions/replicas/replica2.yaml b/templates/questions/replicas/replica2.yaml index 8cb9ab4506c..a263e76870b 100644 --- a/templates/questions/replicas/replica2.yaml +++ b/templates/questions/replicas/replica2.yaml @@ -1 +1 @@ - default: 3 + default: 3 diff --git a/templates/questions/replicas/replica3.yaml b/templates/questions/replicas/replica3.yaml index 244a6785c9a..4da4bc98e9d 100644 --- a/templates/questions/replicas/replica3.yaml +++ b/templates/questions/replicas/replica3.yaml @@ -1 +1 @@ - default: 2 + default: 2 diff --git a/templates/questions/replicas/replicas.yaml b/templates/questions/replicas/replicas.yaml index f8a8c839058..b83fa828da3 100644 --- a/templates/questions/replicas/replicas.yaml +++ b/templates/questions/replicas/replicas.yaml @@ -1,6 +1,6 @@ - - variable: replicas - description: Number of desired pod replicas - label: Desired Replicas - schema: - type: int - required: true + - variable: replicas + description: Number of desired pod replicas + label: Desired Replicas + schema: + type: int + required: true diff --git a/templates/questions/security/securityContextAdvanced.yaml b/templates/questions/security/securityContextAdvanced.yaml deleted file mode 100644 index 7da88ee8c67..00000000000 --- a/templates/questions/security/securityContextAdvanced.yaml +++ /dev/null @@ -1,26 +0,0 @@ - - variable: capabilities - label: Capabilities - schema: - additional_attrs: true - type: dict - attrs: - - variable: drop - label: Drop Capability - schema: - type: list - default: [] - items: - - variable: dropEntry - label: "" - schema: - type: string - - variable: add - label: Add Capability - schema: - type: list - default: [] - items: - - variable: addEntry - label: "" - schema: - type: string diff --git a/templates/questions/service/advancedPortHTTPS.yaml b/templates/questions/service/advancedPortHTTPS.yaml index bbd668d207a..1bb6496fca5 100644 --- a/templates/questions/service/advancedPortHTTPS.yaml +++ b/templates/questions/service/advancedPortHTTPS.yaml @@ -1,34 +1,14 @@ - - variable: advanced - label: Show Advanced Settings + - variable: protocol + label: Port Type schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: enabled - label: Enable the Port - schema: - type: boolean - hidden: true - default: true - - variable: protocol - label: Port Type - schema: - type: string - default: HTTPS - enum: - - value: HTTP - description: HTTP - - value: HTTPS - description: HTTPS - - value: TCP - description: TCP - - value: UDP - description: UDP - - variable: nodePort - label: Node Port (Optional) - description: This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer - schema: - type: int - min: 9000 - max: 65535 + type: string + default: HTTPS + enum: + - value: HTTP + description: HTTP + - value: HTTPS + description: HTTPS + - value: TCP + description: TCP + - value: UDP + description: UDP diff --git a/templates/questions/service/advancedPortTCP.yaml b/templates/questions/service/advancedPortTCP.yaml index 7bdc958b63a..54a891c99d0 100644 --- a/templates/questions/service/advancedPortTCP.yaml +++ b/templates/questions/service/advancedPortTCP.yaml @@ -1,34 +1,14 @@ - - variable: advanced - label: Show Advanced Settings + - variable: protocol + label: Port Type schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: enabled - label: Enable the Port - schema: - type: boolean - hidden: true - default: true - - variable: protocol - label: Port Type - schema: - type: string - default: TCP - enum: - - value: HTTP - description: HTTP - - value: HTTPS - description: HTTPS - - value: TCP - description: TCP - - value: UDP - description: UDP - - variable: nodePort - label: Node Port (Optional) - description: This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer - schema: - type: int - min: 9000 - max: 65535 + type: string + default: TCP + enum: + - value: HTTP + description: HTTP + - value: HTTPS + description: HTTPS + - value: TCP + description: TCP + - value: UDP + description: UDP diff --git a/templates/questions/service/advancedPortUDP.yaml b/templates/questions/service/advancedPortUDP.yaml index cb7a0a24950..9688e3549c8 100644 --- a/templates/questions/service/advancedPortUDP.yaml +++ b/templates/questions/service/advancedPortUDP.yaml @@ -1,34 +1,14 @@ - - variable: advanced - label: Show Advanced Settings + - variable: protocol + label: Port Type schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: enabled - label: Enable the Port - schema: - type: boolean - hidden: true - default: true - - variable: protocol - label: Port Type - schema: - type: string - default: UDP - enum: - - value: HTTP - description: HTTP - - value: HTTPS - description: HTTPS - - value: TCP - description: TCP - - value: UDP - description: UDP - - variable: nodePort - label: Node Port (Optional) - description: This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer - schema: - type: int - min: 9000 - max: 65535 + type: string + default: UDP + enum: + - value: HTTP + description: HTTP + - value: HTTPS + description: HTTPS + - value: TCP + description: TCP + - value: UDP + description: UDP diff --git a/templates/questions/service/serviceExpert.yaml b/templates/questions/service/serviceExpert.yaml index 981d0811fa4..dd4e5edbb47 100644 --- a/templates/questions/service/serviceExpert.yaml +++ b/templates/questions/service/serviceExpert.yaml @@ -74,64 +74,3 @@ type: ipaddr cidr: false required: true - - variable: dnsPolicy - group: Networking and Services - label: dnsPolicy - schema: - type: string - default: "" - enum: - - value: "" - description: Default - - value: ClusterFirst - description: ClusterFirst - - value: None - description: None - - variable: dnsConfig - label: DNS Configuration - group: Networking and Services - description: Specify custom DNS configuration which will be applied to the pod - schema: - additional_attrs: true - type: dict - attrs: - - variable: nameservers - label: Name Servers - schema: - default: [] - type: list - items: - - variable: nameserver - label: Name Server - schema: - type: string - - variable: options - label: Options - schema: - default: [] - type: list - items: - - variable: option - label: Option Entry - schema: - additional_attrs: true - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - - variable: value - label: Value - schema: - type: string - - variable: searches - label: Searches - schema: - default: [] - type: list - items: - - variable: search - label: Search Entry - schema: - type: string diff --git a/templates/questions/service/serviceSelectorExtras.yaml b/templates/questions/service/serviceSelectorExtras.yaml index 0cd687e591f..f01fbef7231 100644 --- a/templates/questions/service/serviceSelectorExtras.yaml +++ b/templates/questions/service/serviceSelectorExtras.yaml @@ -10,6 +10,7 @@ schema: type: boolean default: false + hidden: true show_subquestions_if: true subquestions: - variable: externalIPs @@ -17,6 +18,7 @@ description: "External IP's" schema: type: list + hidden: true default: [] items: - variable: externalIP @@ -29,6 +31,7 @@ schema: type: string default: SingleStack + hidden: true enum: - value: SingleStack description: SingleStack @@ -42,6 +45,7 @@ schema: type: list default: [] + hidden: true items: - variable: ipFamily label: IP Family diff --git a/templates/questions/strategy/recreate.yaml b/templates/questions/strategy/recreate.yaml deleted file mode 100644 index 7bb468730b1..00000000000 --- a/templates/questions/strategy/recreate.yaml +++ /dev/null @@ -1 +0,0 @@ - default: Recreate diff --git a/templates/questions/strategy/rollingupdate.yaml b/templates/questions/strategy/rollingupdate.yaml deleted file mode 100644 index f47016eee39..00000000000 --- a/templates/questions/strategy/rollingupdate.yaml +++ /dev/null @@ -1 +0,0 @@ - default: RollingUpdate diff --git a/templates/questions/strategy/strategy.yaml b/templates/questions/strategy/strategy.yaml deleted file mode 100644 index d580dab0df8..00000000000 --- a/templates/questions/strategy/strategy.yaml +++ /dev/null @@ -1,13 +0,0 @@ - - variable: strategy - description: Please specify type of workload to deploy - label: (Advanced) Update Strategy - schema: - type: string - required: true - enum: - - value: Recreate - description: "Recreate: Kill existing pods before creating new ones" - - value: RollingUpdate - description: "RollingUpdate: Create new pods and then kill old ones" - - value: OnDelete - description: "(Legacy) OnDelete: ignore .spec.template changes" diff --git a/tools/build-release.sh b/tools/build-release.sh index 9df91598bf8..b26b22ce957 100755 --- a/tools/build-release.sh +++ b/tools/build-release.sh @@ -78,11 +78,6 @@ chart_runner(){ train=$(basename $(dirname "${1}")) SCALESUPPORT=$(cat ${1}/Chart.yaml | yq '.annotations."truecharts.org/SCALE-support"' -r) helm dependency build "${1}" --skip-refresh || (sleep 10 && helm dependency build "${1}" --skip-refresh) || (sleep 10 && helm dependency build "${1}" --skip-refresh) - sync_tag "${1}" "${chartname}" "$train" "${chartversion}" || echo "Tag sync failed..." - # create_changelog "${1}" "${chartname}" "$train" "${chartversion}" || echo "changelog generation failed..." - # generate_docs "${1}" "${chartname}" "$train" "${chartversion}" || echo "Docs generation failed..." - #copy_docs "${1}" "${chartname}" "$train" "${chartversion}" || echo "Docs Copy failed..." - #package_chart "${1}" if [[ "${SCALESUPPORT}" == "true" ]]; then clean_apps "${1}" "${chartname}" "$train" "${chartversion}" copy_apps "${1}" "${chartname}" "$train" "${chartversion}" @@ -133,61 +128,6 @@ clean_catalog() { } export -f clean_catalog -gen_dh_cat() { - rm -rf dh_catalog/*.* - rm -rf dh_catalog/* - cp -rf catalog/* dh_catalog - cd dh_catalog - find ./ -type f -name *.yaml -exec sed -i 's/tccr.io/dh.tccr.io/gI' {} \; - cd - - } -export -f gen_dh_cat - -# Designed to ensure the appversion in Chart.yaml is in sync with the primary Chart tag if found -# Also makes sure that home link is pointing to the correct url -sync_tag() { - local chart="$1" - local chartname="$2" - local train="$3" - local chartversion="$4" - echo "Attempting to sync primary tag with appversion for: ${chartname}" - local tag="$(cat ${chart}/values.yaml | grep '^ tag: ' | awk -F" " '{ print $2 }' | head -1)" - tag="${tag%%@*}" - tag="${tag:-auto}" - tag=$(echo $tag | sed "s/release-//g") - tag=$(echo $tag | sed "s/release_//g") - tag=$(echo $tag | sed "s/version-//g") - tag=$(echo $tag | sed "s/version_//g") - tag="${tag#*V.}" - tag="${tag#*v-}" - tag="${tag#*v}" - tag="${tag%-*}" - tag="${tag:0:10}" - tag="${tag%-}" - tag="${tag%_}" - tag="${tag%.}" - echo "Updating tag of ${chartname} to ${tag}..." - sed -i -e "s|appVersion: .*|appVersion: \"${tag}\"|" "${chart}/Chart.yaml" - echo "Updating icon of ${chartname}..." - sed -i -e "s|icon: .*|icon: https:\/\/truecharts.org\/img\/hotlink-ok\/chart-icons\/${chartname}.png|" "${chart}/Chart.yaml" - echo "Updating home of ${chartname}..." - sed -i -e "s|home: .*|home: https:\/\/truecharts.org\/docs\/charts\/${train}\/${chartname}|" "${chart}/Chart.yaml" - echo "Attempting to update sources of ${chartname}..." - echo "Using go-yq verion: <$(go-yq -V)>" - # Get all sources (except truecharts) - curr_sources=$(go-yq '.sources[] | select(. != "https://github.com/truecharts*")' "${chart}/Chart.yaml") - # Empty sources list in-place - go-yq -i 'del(.sources.[])' "${chart}/Chart.yaml" - # Add truechart source - tcsource="https://github.com/truecharts/charts/tree/master/charts/$train/$chartname" go-yq -i '.sources += env(tcsource)' "${chart}/Chart.yaml" - # Add the rest of the sources - while IFS= read -r line; do - src="$line" go-yq -i '.sources += env(src)' "${chart}/Chart.yaml" - done <<< "$curr_sources" - echo "Sources of ${chartname} updated!" - } -export -f sync_tag - pre_commit() { if [[ -z "$standalone" ]]; then echo "Running pre-commit test-and-cleanup..." @@ -238,46 +178,6 @@ copy_general_docs() { } export -f copy_general_docs -generate_docs() { - local chart="$1" - local chartname="$2" - local train="$3" - local chartversion="$4" - if [[ -z "$standalone" ]]; then - echo "Generating Docs" - if [ "${chartname}" == "common" ]; then - helm-docs \ - --ignore-file=".helmdocsignore" \ - --output-file="README.md" \ - --template-files="/__w/apps/apps/templates/docs/common-README.md.gotmpl" \ - --chart-search-root="${chart}" - helm-docs \ - --ignore-file=".helmdocsignore" \ - --output-file="helm-values.md" \ - --template-files="/__w/apps/apps/templates/docs/common-helm-values.md.gotmpl" \ - --chart-search-root="${chart}" - else - helm-docs \ - --ignore-file=".helmdocsignore" \ - --output-file="README.md" \ - --template-files="/__w/apps/apps/templates/docs/README.md.gotmpl" \ - --chart-search-root="${chart}" - helm-docs \ - --ignore-file=".helmdocsignore" \ - --output-file="CONFIG.md" \ - --template-files="/__w/apps/apps/templates/docs/CONFIG.md.gotmpl" \ - --chart-search-root="${chart}" - helm-docs \ - --ignore-file=".helmdocsignore" \ - --output-file="helm-values.md" \ - --template-files="/__w/apps/apps/templates/docs/helm-values.md.gotmpl" \ - --chart-search-root="${chart}" - fi - sed -i "s/TRAINPLACEHOLDER/${train}/" "${chart}/README.md" - fi - } - export -f generate_docs - copy_docs() { local chart="$1" @@ -285,21 +185,14 @@ copy_docs() { local train="$3" local chartversion="$4" echo "Copying docs for: ${chart}" - if [ "${chartname}" == "common" ]; then - mkdir -p docs/charts/common || : - yes | cp -rf charts/library/common/README.md docs/charts/common/index.md 2>/dev/null || : - yes | cp -rf charts/library/common/helm-values.md docs/charts/common/helm-values.md 2>/dev/null || : - else - mkdir -p docs/charts/${train}/${chartname} || echo "chart path already exists, continuing..." - yes | cp -rf ${chart}/README.md docs/charts/${train}/${chartname}/index.md 2>/dev/null || : - yes | cp -rf ${chart}/CHANGELOG.md docs/charts/${train}/${chartname}/CHANGELOG.md 2>/dev/null || : - yes | cp -rf ${chart}/security.md docs/charts/${train}/${chartname}/security.md 2>/dev/null || : - yes | cp -rf ${chart}/CONFIG.md docs/charts/${train}/${chartname}/CONFIG.md 2>/dev/null || : - yes | cp -rf ${chart}/helm-values.md docs/charts/${train}/${chartname}/helm-values.md 2>/dev/null || : - rm docs/charts/${train}/${chartname}/LICENSE.md 2>/dev/null || : - yes | cp -rf ${chart}/LICENSE docs/charts/${train}/${chartname}/LICENSE.md 2>/dev/null || : - sed -i '1s/^/# License
\n\n/' docs/charts/${train}/${chartname}/LICENSE.md 2>/dev/null || : - fi + mkdir -p docs/charts/${train}/${chartname} || echo "chart path already exists, continuing..." + yes | cp -rf ${chart}/CHANGELOG.md docs/charts/${train}/${chartname}/CHANGELOG.md 2>/dev/null || : + yes | cp -rf ${chart}/security.md docs/charts/${train}/${chartname}/security.md 2>/dev/null || : + yes | cp -rf ${chart}/CONFIG.md docs/charts/${train}/${chartname}/CONFIG.md 2>/dev/null || : + yes | cp -rf ${chart}/helm-values.md docs/charts/${train}/${chartname}/helm-values.md 2>/dev/null || : + rm docs/charts/${train}/${chartname}/LICENSE.md 2>/dev/null || : + yes | cp -rf ${chart}/LICENSE docs/charts/${train}/${chartname}/LICENSE.md 2>/dev/null || : + sed -i '1s/^/# License
\n\n/' docs/charts/${train}/${chartname}/LICENSE.md 2>/dev/null || : } export -f copy_docs @@ -308,8 +201,7 @@ prep_helm() { helm repo add truecharts https://charts.truecharts.org helm repo add truecharts-library https://library-charts.truecharts.org helm repo add bitnami https://charts.bitnami.com/bitnami - helm repo add metallb https://metallb.github.io/metallb - helm repo add grafana https://grafana.github.io/helm-charts + helm repo add prometheus https://prometheus-community.github.io/helm-charts helm repo update fi @@ -388,21 +280,6 @@ upload_catalog() { } export -f upload_catalog -upload_dhcatalog() { - echo "Uploading DH-Catalog..." - cd dh_catalog - git config user.name "TrueCharts-Bot" - git config user.email "bot@truecharts.org" - git add --all - git commit -sm "Commit new Chart releases for TrueCharts" || exit 0 - git push - cd - - rm -rf dh_catalog -} -export -f upload_dhcatalog - - - parse_command_line() { while :; do case "${1:-}" in @@ -533,56 +410,4 @@ lookup_changed_charts() { } export -f lookup_changed_charts -package_chart() { - local chart="$1" - local args=("$chart" --package-path .cr-release-packages) - if [[ -n "$config" ]]; then - args+=(--config "$config") - fi - - if [[ -z "$standalone" ]]; then - echo "Packaging chart '$chart'..." - cr package "${args[@]}" - fi -} -export -f package_chart - -release_charts() { - local args=(-o "$owner" -r "$repo" -c "$(git rev-parse HEAD)") - if [[ -n "$config" ]]; then - args+=(--config "$config") - fi - - if [[ -z "$standalone" ]]; then - echo 'Releasing charts...' - cr upload "${args[@]}" - fi -} -export -f release_charts - -update_index() { - local args=(-o "$owner" -r "$repo" -c "$charts_repo_url") - if [[ -n "$config" ]]; then - args+=(--config "$config") - fi - - if [[ -z "$standalone" ]]; then - echo 'Updating charts repo index...' - cr index "${args[@]}" - fi -} -export -f update_index - -upload_index() { - cd .cr-index - git config user.name "TrueCharts-Bot" - git config user.email "bot@truecharts.org" - git add --all - git commit -sm "Commit released Helm Chart and docs for TrueCharts" || exit 0 - git push - cd - - rm -rf .cr-index -} -export -f upload_index - main "$@"