diff --git a/charts/chia/1.3.39/.helmignore b/charts/chia/1.3.39/.helmignore deleted file mode 100644 index a9fe727881..0000000000 --- a/charts/chia/1.3.39/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -# OWNERS file for Kubernetes -OWNERS \ No newline at end of file diff --git a/charts/chia/1.3.39/Chart.yaml b/charts/chia/1.3.39/Chart.yaml deleted file mode 100644 index 7a26eb8b92..0000000000 --- a/charts/chia/1.3.39/Chart.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v1 -appVersion: v1.7.0 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: Global, Versioned, peer-to-peer filesystem. -home: https://www.chia.net/ -icon: https://www.chia.net/wp-content/uploads/2022/09/chia-logo.svg -keywords: -- storage -- crypto -- blockchain -name: chia -sources: -- https://github.com/Chia-Network/chia-blockchain -- https://github.com/orgs/chia-network/packages/container/package/chia -version: 1.3.39 diff --git a/charts/chia/1.3.39/README.md b/charts/chia/1.3.39/README.md deleted file mode 100755 index d93ffcf19f..0000000000 --- a/charts/chia/1.3.39/README.md +++ /dev/null @@ -1,8 +0,0 @@ -Chia Network -===== - -[CHIA](https://www.chia.net/) is a new blockchain and smart transaction platform that is easier to use, more efficient, and secure. -Introduction ------------- - -This chart bootstraps CHIA deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. diff --git a/charts/chia/1.3.39/app-readme.md b/charts/chia/1.3.39/app-readme.md deleted file mode 100644 index 6ab946dd9e..0000000000 --- a/charts/chia/1.3.39/app-readme.md +++ /dev/null @@ -1,4 +0,0 @@ -Chia Network -===== - -[CHIA](https://www.chia.net/) is a new blockchain and smart transaction platform that is easier to use, more efficient, and secure. diff --git a/charts/chia/1.3.39/charts/common-2207.0.0.tgz b/charts/chia/1.3.39/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/charts/chia/1.3.39/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/charts/chia/1.3.39/default_values.yaml b/charts/chia/1.3.39/default_values.yaml deleted file mode 100644 index 3019cf582f..0000000000 --- a/charts/chia/1.3.39/default_values.yaml +++ /dev/null @@ -1,17 +0,0 @@ -image: - repository: ghcr.io/chia-network/chia - tag: 1.1.4 - pullPolicy: IfNotPresent -updateStrategy: Recreate -environmentVariables: - - name: "keys" - value: "/plots/keyfile" - -appVolumeMounts: - staging: - emptyDir: true - mountPath: "/plots" - data: - emptyDir: true - mountPath: "/root/.chia" - diff --git a/charts/chia/1.3.39/ix_values.yaml b/charts/chia/1.3.39/ix_values.yaml deleted file mode 100644 index 52095b1acc..0000000000 --- a/charts/chia/1.3.39/ix_values.yaml +++ /dev/null @@ -1,5 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: ixsystems/chia-docker - tag: v1.7.0 -updateStrategy: Recreate diff --git a/charts/chia/1.3.39/questions.yaml b/charts/chia/1.3.39/questions.yaml deleted file mode 100644 index 1dac7192db..0000000000 --- a/charts/chia/1.3.39/questions.yaml +++ /dev/null @@ -1,209 +0,0 @@ -groups: - - name: "Storage" - description: "Configure Storage for Chia" - - name: "Farmr.net Configuration" - description: "Configure farmr.net support" - - name: "Chia Environment Variables" - description: "Set the environment that will be visible to the container" - - name: "Networking" - description: "Configure networking for Chia container" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - -portals: - web_portal: - protocols: - - "https" - host: - - "www.truepool.io" - ports: - - "443" - path: "/kb/truepool-docker-image/" - -questions: - - variable: farmr_env - label: "Enable 'farmr.net' support" - group: "Farmr.net Configuration" - description: "Configure 'farmr.net' support for chia" - schema: - type: string - default: "off" - enum: - - value: "off" - description: "OFF" - - value: "farmer" - description: "FARMER" - - value: "harvester" - description: "HARVESTER" - - variable: appVolumeMounts - label: "Chia Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/data" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Chia Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Chia Configuration Volume" - schema: - type: hostpath - required: true - - variable: plots - label: "Plot Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Plots Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "plots" - editable: false - - variable: mountPath - label: "Plots Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/plots" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Chia Plots Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Chia Plots Volume" - schema: - type: hostpath - required: true - - - variable: extraAppVolumeMounts - label: "Chia Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Chia Host Path Volume" - description: "Add an extra host path volume for chia application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - - variable: environmentVariables - label: "Environment Variables for Chia" - group: "Chia Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: service - description: "Networking Configuration" - label: "Networking Configuration" - group: "Networking" - schema: - type: dict - required: true - attrs: - - variable: nodePort - label: "Node Port to use for Chia" - schema: - type: int - min: 8000 - max: 65535 - default: 8444 - required: true - - variable: farmerPort - label: "Farmer Port to use for Chia" - schema: - type: int - min: 8000 - max: 65535 - default: 8447 - required: true - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/charts/chia/1.3.39/requirements.lock b/charts/chia/1.3.39/requirements.lock deleted file mode 100644 index 4247a5f375..0000000000 --- a/charts/chia/1.3.39/requirements.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:43.583595794+05:00" diff --git a/charts/chia/1.3.39/templates/deployment.yaml b/charts/chia/1.3.39/templates/deployment.yaml deleted file mode 100644 index b3fe0f0077..0000000000 --- a/charts/chia/1.3.39/templates/deployment.yaml +++ /dev/null @@ -1,48 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels" . | nindent 4 }} - annotations: - rollme: {{ randAlphaNum 5 | quote }} -spec: - strategy: - type: {{ .Values.updateStrategy }} - selector: - matchLabels: {{ include "common.labels.selectorLabels" . | nindent 6 }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels.selectorLabels" . | nindent 8 }} - spec: - # FIXME: Let's please remove hostnetwork when upstream hostport issue is sorted out with kube-router - hostNetwork: {{ include "hostNetworkingEnabled" . }} - containers: - - name: {{ .Chart.Name }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - {{ include "common.resources.limitation" . | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - ports: - - name: chia-network - protocol: TCP - containerPort: 8444 - hostPort: null - - name: chia-farmer - protocol: TCP - containerPort: 8447 - hostPort: null - {{ $envList := (default list .Values.environmentVariables) }} - {{ $envList = mustAppend $envList (dict "name" "keys" "value" "/plots/keyfile") }} - {{ $envList = mustAppend $envList (dict "name" "farmr" "value" $.Values.farmr_env) }} - {{ include "common.containers.allEnvironmentVariables" (dict "environmentVariables" $envList) | nindent 10 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} diff --git a/charts/chia/1.3.39/templates/generate-mnemonic.yaml b/charts/chia/1.3.39/templates/generate-mnemonic.yaml deleted file mode 100644 index 1f3575ec84..0000000000 --- a/charts/chia/1.3.39/templates/generate-mnemonic.yaml +++ /dev/null @@ -1,30 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: "pre-install" - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-weight": "1" - "helm.sh/hook-delete-policy": hook-succeeded -spec: - template: - metadata: - name: "pre-upgrade-hook2" - spec: - restartPolicy: Never - containers: - - name: {{ .Chart.Name }}-generate-mnemonic - {{ include "common.containers.imageConfig" .Values.image | nindent 8 }} - volumeMounts:{{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 10 }} - - - name: generate-mnemonic-configmap - mountPath: /generate_entrypoint.sh - readOnly: true - subPath: entrypoint.sh - command: - - "/generate_entrypoint.sh" - volumes: {{- include "common.storage.configureAppVolumes" .Values | nindent 8 -}} - - name: generate-mnemonic-configmap - configMap: - defaultMode: 0700 - name: "generate-mnemonic-config-map" diff --git a/charts/chia/1.3.39/templates/mnemonic-configmap.yaml b/charts/chia/1.3.39/templates/mnemonic-configmap.yaml deleted file mode 100644 index 3158c85014..0000000000 --- a/charts/chia/1.3.39/templates/mnemonic-configmap.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: "generate-mnemonic-config-map" - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-weight": "-1" - "helm.sh/hook-delete-policy": hook-succeeded -data: - entrypoint.sh: |- - #!/bin/sh - if [ ! -e /plots/keyfile ]; then - /chia-blockchain/venv/bin/python3 -c "from chia.util.keychain import generate_mnemonic;print(generate_mnemonic())" > /plots/keyfile; - fi diff --git a/charts/chia/1.3.39/templates/networking.tpl b/charts/chia/1.3.39/templates/networking.tpl deleted file mode 100644 index 280f7bdc9e..0000000000 --- a/charts/chia/1.3.39/templates/networking.tpl +++ /dev/null @@ -1,21 +0,0 @@ -{{/* -Enable host networking -*/}} -{{- define "hostNetworkingEnabled" -}} -{{- if or (lt (.Values.service.nodePort | int) 9000) (lt (.Values.service.farmerPort | int) 9000) -}} -{{- print "true" -}} -{{- else -}} -{{- print "false" -}} -{{- end -}} -{{- end -}} - -{{/* -Enable Node Port Service -*/}} -{{- define "enableService" -}} -{{- if or (ge (.Values.service.nodePort | int) 9000) (ge (.Values.service.farmerPort | int) 9000) -}} -{{- print "true" -}} -{{- else -}} -{{- print "false" -}} -{{- end -}} -{{- end -}} diff --git a/charts/chia/1.3.39/templates/service.yaml b/charts/chia/1.3.39/templates/service.yaml deleted file mode 100644 index bf92e8d57b..0000000000 --- a/charts/chia/1.3.39/templates/service.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{{ if eq (include "enableService" .) "true" }} -{{ $svc := .Values.service }} -{{ $ports := list }} -{{ if ge ($svc.nodePort | int) 9000 }} -{{ $ports = mustAppend $ports (dict "name" "chia-network" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 8444) }} -{{ end }} -{{ if ge ($svc.farmerPort | int) 9000 }} -{{ $ports = mustAppend $ports (dict "name" "chia-farmer" "port" $svc.farmerPort "nodePort" $svc.farmerPort "targetPort" 8447) }} -{{ end }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{ include "common.classes.service" $params }} -{{ end }} \ No newline at end of file diff --git a/charts/chia/1.3.39/test_values.yaml b/charts/chia/1.3.39/test_values.yaml deleted file mode 100644 index 66f66f4f95..0000000000 --- a/charts/chia/1.3.39/test_values.yaml +++ /dev/null @@ -1,16 +0,0 @@ -appVolumeMounts: - data: - emptyDir: true - mountPath: /data - staging: - emptyDir: true - mountPath: /plots -farmr_env: 'off' -image: - pullPolicy: IfNotPresent - repository: ixsystems/chia-docker - tag: v1.7.0 -service: - farmerPort: 31122 - nodePort: 31121 -updateStrategy: Recreate diff --git a/charts/chia/1.3.39/values.yaml b/charts/chia/1.3.39/values.yaml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/charts/chia/item.yaml b/charts/chia/item.yaml deleted file mode 100644 index 93abfb0f65..0000000000 --- a/charts/chia/item.yaml +++ /dev/null @@ -1,4 +0,0 @@ -categories: - - storage - - crypto -icon_url: https://www.chia.net/wp-content/uploads/2022/09/chia-logo.svg diff --git a/charts/chia/upgrade_info.json b/charts/chia/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/charts/chia/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/charts/chia/upgrade_strategy b/charts/chia/upgrade_strategy deleted file mode 100755 index fee6131e03..0000000000 --- a/charts/chia/upgrade_strategy +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python3 -import json -import sys - -from catalog_update.upgrade_strategy import semantic_versioning - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - tags = {t.strip('v').replace('_', '.'): t for t in image_tags[key]} - version = semantic_versioning(tags) - if not version: - return {} - - return { - 'tags': {key: tags[version]}, - 'app_version': tags[version], - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/charts/ipfs/1.2.13/.helmignore b/charts/ipfs/1.2.13/.helmignore deleted file mode 100644 index a9fe727881..0000000000 --- a/charts/ipfs/1.2.13/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -# OWNERS file for Kubernetes -OWNERS \ No newline at end of file diff --git a/charts/ipfs/1.2.13/Chart.yaml b/charts/ipfs/1.2.13/Chart.yaml deleted file mode 100644 index eaff220379..0000000000 --- a/charts/ipfs/1.2.13/Chart.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v1 -appVersion: v0.18.1 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: Global, Versioned, peer-to-peer filesystem. -home: https://ipfs.io -icon: https://ipfs.io/ipfs/QmVk7srrwahXLNmcDYvyUEJptyoxpndnRa57YJ11L4jV26/ipfs.go.png -keywords: -- storage -- p2p -name: ipfs -sources: -- https://github.com/ipfs/go-ipfs -- https://hub.docker.com/r/ipfs/go-ipfs -upstream_version: 0.8.0-rc1 -version: 1.2.13 diff --git a/charts/ipfs/1.2.13/README.md b/charts/ipfs/1.2.13/README.md deleted file mode 100755 index d6bdd49a12..0000000000 --- a/charts/ipfs/1.2.13/README.md +++ /dev/null @@ -1,22 +0,0 @@ -IPFS -===== - -[IPFS](https://ipfs.io) is a global, versioned, peer-to-peer filesystem. It combines good ideas from previous systems such Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single bittorrent swarm, exchanging git objects. IPFS provides an interface as simple as the HTTP web, but with permanence built in. You can also mount the world at /ipfs. - -Introduction ------------- - -This chart bootstraps IPFS deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. - - -Configuration -------------- - -The following table lists the configurable parameters of the IPFS chart and their default values. - -| Parameter | Description | Default | -|:-------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------| -| `image.repository` | Image repository | `ipfs/go-ipfs` | -| `image.tag` | IPFS image tag. Possible values listed [here](https://hub.docker.com/r/ipfs/go-ipfs/tags). | `v0.8.0-rc1` | -| `image.pullPolicy` | Image pull policy | `IfNotPresent` | -| `extraArgs` | Additional command line arguments to pass to the IPFS server | `[]` | diff --git a/charts/ipfs/1.2.13/app-readme.md b/charts/ipfs/1.2.13/app-readme.md deleted file mode 100644 index dc481d47c8..0000000000 --- a/charts/ipfs/1.2.13/app-readme.md +++ /dev/null @@ -1 +0,0 @@ -[IPFS](https://ipfs.io) is a global, versioned, peer-to-peer filesystem. It combines good ideas from previous systems such Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single bittorrent swarm, exchanging git objects. IPFS provides an interface as simple as the HTTP web, but with permanence built in. You can also mount the world at /ipfs. diff --git a/charts/ipfs/1.2.13/charts/common-2207.0.0.tgz b/charts/ipfs/1.2.13/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/charts/ipfs/1.2.13/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/charts/ipfs/1.2.13/ix_values.yaml b/charts/ipfs/1.2.13/ix_values.yaml deleted file mode 100644 index 22c952a183..0000000000 --- a/charts/ipfs/1.2.13/ix_values.yaml +++ /dev/null @@ -1,4 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: ipfs/go-ipfs - tag: v0.18.1 diff --git a/charts/ipfs/1.2.13/questions.yaml b/charts/ipfs/1.2.13/questions.yaml deleted file mode 100644 index 14d68c6f1b..0000000000 --- a/charts/ipfs/1.2.13/questions.yaml +++ /dev/null @@ -1,221 +0,0 @@ -groups: - - name: "Container Images" - description: "Image to be used for container" - - name: "Workload Configuration" - description: "Configure Storage for IPFS" - - name: "Storage" - description: "Configure Storage for IPFS" - - name: "IPFS Configuration" - description: "Configure Storage for IPFS" - - name: "Advanced DNS Settings" - description: "Configure DNS settings" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - - -portals: - web_portal: - protocols: - - "http" - host: - - "$node_ip" - ports: - - "$variable-service.apiPort" - path: "/webui" - -questions: - - - variable: dnsConfig - label: "DNS Configuration" - group: "Advanced DNS Settings" - schema: - type: dict - attrs: - - variable: options - label: "DNS Options" - schema: - type: list - items: - - variable: optionsEntry - label: "Option Entry Configuration" - schema: - type: dict - attrs: - - variable: name - label: "Option Name" - schema: - type: string - required: true - - variable: value - label: "Option Value" - schema: - type: string - required: true - - - variable: updateStrategy - label: "IPFS update strategy" - group: "Workload Configuration" - schema: - type: string - default: "Recreate" - enum: - - value: "RollingUpdate" - description: "Create new pods and then kill old ones" - - value: "Recreate" - description: "Kill existing pods before creating new ones" - - - variable: environmentVariables - label: "IPFS image environment" - group: "IPFS Configuration" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: service - description: "IPFS Service Configuration" - label: "IPFS Service Configuration" - group: "IPFS Configuration" - schema: - type: dict - required: true - attrs: - - variable: swarmPort - label: "Swarm Port to use for IPFS (Public)" - schema: - type: int - min: 9000 - max: 65535 - default: 9401 - required: true - - variable: apiPort - label: "API Port to use for IPFS (local)" - schema: - type: int - min: 9000 - max: 65535 - default: 9501 - required: true - - variable: gatewayPort - label: "Gateway Port to use for IPFS (local)" - schema: - type: int - min: 9000 - max: 65535 - default: 9880 - required: true - - - variable: appVolumeMounts - label: "IPFS Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: staging - label: "Staging Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "IPFS Staging Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-ipfs-staging" - editable: false - - variable: mountPath - label: "IPFS Staging Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/export" - - variable: hostPathEnabled - label: "Enable Host Path for IPFS Staging Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for IPFS Staging Volume" - schema: - type: hostpath - required: true - - variable: data - label: "Data Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "IPFS Data Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-ipfs-data" - editable: false - - variable: mountPath - label: "IPFS Data Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/data/ipfs" - - variable: hostPathEnabled - label: "Enable Host Path for IPFS Data Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for IPFS Data Volume" - schema: - type: hostpath - required: true - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/charts/ipfs/1.2.13/requirements.lock b/charts/ipfs/1.2.13/requirements.lock deleted file mode 100644 index ce9757b291..0000000000 --- a/charts/ipfs/1.2.13/requirements.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:48.197830691+05:00" diff --git a/charts/ipfs/1.2.13/templates/NOTES.txt b/charts/ipfs/1.2.13/templates/NOTES.txt deleted file mode 100644 index cb1d892a3b..0000000000 --- a/charts/ipfs/1.2.13/templates/NOTES.txt +++ /dev/null @@ -1,2 +0,0 @@ -IPFS can be accessed from the following URL: -http://$node_ip:{{ .Values.service.apiPort }}/webui diff --git a/charts/ipfs/1.2.13/templates/deployment.yaml b/charts/ipfs/1.2.13/templates/deployment.yaml deleted file mode 100644 index 429fedd1ac..0000000000 --- a/charts/ipfs/1.2.13/templates/deployment.yaml +++ /dev/null @@ -1,61 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels" . | nindent 4 }} -spec: - strategy: - type: {{ .Values.updateStrategy }} - selector: - matchLabels: {{ include "common.labels.selectorLabels" . | nindent 6 }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels.selectorLabels" . | nindent 8 }} - spec: - serviceAccountName: {{ include "common.names.serviceAccountName" . | quote }} - initContainers: - - name: init-init - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - command: ['/bin/sh', '-c', '[ ! -e /data/ipfs/config ] && (/usr/local/bin/ipfs init ; chown -R 1000:100 /data/ipfs) ; exit 0'] - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - - name: init-api - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - command: ['/usr/local/bin/ipfs', 'config', 'Addresses.API', "/ip4/0.0.0.0/tcp/9501"] - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - - name: init-gateway - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - command: ['/usr/local/bin/ipfs', 'config', 'Addresses.Gateway', "/ip4/0.0.0.0/tcp/9080"] - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - - name: init-swarm - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - command: ['/usr/local/bin/ipfs', 'config', '--json', 'Addresses.Swarm', "[\"/ip4/0.0.0.0/tcp/9401\",\"/ip4/0.0.0.0/tcp/9401/quic\"]" ] - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - - name: init-access-origin - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - command: ['/usr/local/bin/ipfs', 'config', '--json', 'API.HTTPHeaders.Access-Control-Allow-Origin', "[\"*\"]" ] - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - - name: init-access-methods - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - command: ['/usr/local/bin/ipfs', 'config', '--json', 'API.HTTPHeaders.Access-Control-Allow-Methods', "[\"PUT\",\"POST\"]" ] - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - - name: init-chown - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - command: ['chown', '1000:100', '/data/ipfs/config'] - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - containers: - - name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 10 }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - ports: - - name: swarm - containerPort: 9401 - - name: api - containerPort: 9501 - - name: gateway - containerPort: 9880 -{{ include "common.containers.allEnvironmentVariables" .Values | nindent 10 }} -{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} -{{ include "common.storage.allAppVolumes" .Values | nindent 6 }} diff --git a/charts/ipfs/1.2.13/templates/service.yaml b/charts/ipfs/1.2.13/templates/service.yaml deleted file mode 100644 index 4cc9718639..0000000000 --- a/charts/ipfs/1.2.13/templates/service.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{{ $svc := .Values.service }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "swarm" "port" $svc.swarmPort "nodePort" $svc.swarmPort "targetPort" 9401) }} -{{ $ports = mustAppend $ports (dict "name" "api" "port" $svc.apiPort "nodePort" $svc.apiPort "targetPort" 9501) }} -{{ $ports = mustAppend $ports (dict "name" "gateway" "port" $svc.gatewayPort "nodePort" $svc.gatewayPort "targetPort" 9880) }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{ include "common.classes.service" $params }} diff --git a/charts/ipfs/1.2.13/templates/serviceaccount.yaml b/charts/ipfs/1.2.13/templates/serviceaccount.yaml deleted file mode 100644 index 12bd3f4a39..0000000000 --- a/charts/ipfs/1.2.13/templates/serviceaccount.yaml +++ /dev/null @@ -1 +0,0 @@ -{{ include "common.serviceaccount" . }} diff --git a/charts/ipfs/1.2.13/templates/tests/deployment-check.yaml b/charts/ipfs/1.2.13/templates/tests/deployment-check.yaml deleted file mode 100644 index d68ce8e043..0000000000 --- a/charts/ipfs/1.2.13/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-ipfs-test" - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}:{{ .Values.service.apiPort }}/webui/ - restartPolicy: Never diff --git a/charts/ipfs/1.2.13/test_values.yaml b/charts/ipfs/1.2.13/test_values.yaml deleted file mode 100644 index 261f35e325..0000000000 --- a/charts/ipfs/1.2.13/test_values.yaml +++ /dev/null @@ -1,21 +0,0 @@ -appVolumeMounts: - data: - emptyDir: true - mountPath: /data/ipfs - staging: - emptyDir: true - mountPath: /export -dnsConfig: - options: [] -emptyDirVolumes: true -environmentVariables: [] -extraArgs: [] -image: - pullPolicy: IfNotPresent - repository: ipfs/go-ipfs - tag: v0.18.1 -service: - apiPort: 30951 - gatewayPort: 30980 - swarmPort: 30941 -updateStrategy: Recreate diff --git a/charts/ipfs/item.yaml b/charts/ipfs/item.yaml deleted file mode 100644 index 725026bfb1..0000000000 --- a/charts/ipfs/item.yaml +++ /dev/null @@ -1,3 +0,0 @@ -categories: - - storage -icon_url: https://ipfs.io/ipfs/QmVk7srrwahXLNmcDYvyUEJptyoxpndnRa57YJ11L4jV26/ipfs.go.png diff --git a/charts/ipfs/upgrade_info.json b/charts/ipfs/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/charts/ipfs/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/charts/ipfs/upgrade_strategy b/charts/ipfs/upgrade_strategy deleted file mode 100755 index 13d38b0f3c..0000000000 --- a/charts/ipfs/upgrade_strategy +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/python3 -import json -import sys - -from catalog_update.upgrade_strategy import semantic_versioning - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - version = semantic_versioning(image_tags[key]) - if not version: - return {} - - return { - 'tags': {key: f'v{version}'}, - 'app_version': f'v{version}', - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/charts/machinaris/1.1.14/.helmignore b/charts/machinaris/1.1.14/.helmignore deleted file mode 100644 index 46fd899656..0000000000 --- a/charts/machinaris/1.1.14/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -# OWNERS file for Kubernetes -OWNERS diff --git a/charts/machinaris/1.1.14/Chart.yaml b/charts/machinaris/1.1.14/Chart.yaml deleted file mode 100644 index 9aaedb4837..0000000000 --- a/charts/machinaris/1.1.14/Chart.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -appVersion: v0.8.5 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: Global, Versioned, peer-to-peer filesystem. -home: https://github.com/guydavis/machinaris -icon: https://raw.githubusercontent.com/guydavis/machinaris/main/web/static/favicon.ico -keywords: -- storage -- crypto -- blockchain -name: machinaris -sources: -- https://github.com/guydavis/machinaris -version: 1.1.14 diff --git a/charts/machinaris/1.1.14/README.md b/charts/machinaris/1.1.14/README.md deleted file mode 100644 index 5eaca51a69..0000000000 --- a/charts/machinaris/1.1.14/README.md +++ /dev/null @@ -1,71 +0,0 @@ -Machinaris -===== - -[MACHINARIS](https://github.com/guydavis/machinaris) is an easy-to-use WebUI for Chia plotting and farming. This includes Chia, Plotman, MadMax, Chiadog under main node along with various coin-forks which can be enabled conditionally. - -Coins include Cactus, Chives, CrypoDoge, Flax, Flora, HDDCoin, Maize, NChain, StaiCoin, Stor, BTCGreen and Shibgreen. - -Introduction ------------- - -This chart bootstraps MACHINARIS deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. - -# Machinaris Defaults -This section contains information about the defaults of Machinaris application for visibility. - -## 1. Environment Variables -Following are the default environment variables for Machinaris main node and the coin forks. - -### Machinaris Node -Machinaris main node comes with following default environment variables: - -| Variable | Default Value | Description | -| ---------------- | ----------------------------------------------------- | --------------------- | -| TZ | Same as to User selected Timezone | Timezone information | -| worker_address | Same as to LAN IP address | Worker Address | -| blockchains | chia | Block Chain | -| plots_dir | Same as to User selected plots volume | Plots Directory | -| mode | fullnode | Machinaris Mode | - -These values can be overridden while configuring Machinaris application. - -### Coin Forks -Coin forks also come with a set of default environment variables: - -| Variable | Default Value | Description | -| ---------------- | ----------------------------------------------------- | --------------------- | -| TZ | Same as to User selected Timezone | Timezone information | -| worker_address | Same as to LAN IP address | Worker Address | -| blockchains | chia | BlockChain | -| plots_dir | Same as to User selected plots volume | Plots Directory | -| mode | fullnode | Machinaris Mode | -| controller_host| Same as to LAN IP address | Controller Host | -| worker_api_port| Coin's Workload REST API Port | Worker API Port | - -These defaults can be overridden for each coin fork when you enable them through Machinaris application configuration. - -## 2. Volumes - -Before getting to defaults, please take the following note: -> ->If Custom Host Path is not enabled for a Volume Configuration then, application will use ix-volumes and create datasets inside for Host Path by default. -> ->The path for ix-volumes has the following composition: ->``` ->/mnt//ix-applications/releases//volumes/ix-volumes/ ->``` ->And with the dataset inside, would be like: ->``` ->/mnt//ix-applications/releases//volumes/ix-volumes/> ->``` -> -Following are the Volume Configurations for Machinaris main node & the coin-forks by default: - -| Volume | hostPath (default value) | mountPath in container | Description | -| ---------------------- | ----------------------------------------------------- | ----------------------- | ----------------------------------------------- | -| `config` | `/config` | `/root/.chia` | Chia config for main node | -| `plots` | `/plots` | `/plots` | Plots volume for main node & coin forks | -| `plotting` | `/plotting` | `/plotting` | Plotting temp volume for main node & coin forks | -| `-config` | `/-config` | `/root/.chia` | Chia config for each of the coin-fork containers| - -Where `` is `/mnt//ix-applications/releases//volumes/ix_volumes/` and `` is one of the following: `[ cactus, chives, crypodoge, flax, flora, hddcoin, maize, nchain, staicoin, stor, btcgreen, shibgreen ]`. diff --git a/charts/machinaris/1.1.14/app-readme.md b/charts/machinaris/1.1.14/app-readme.md deleted file mode 100644 index e42a2ba7ac..0000000000 --- a/charts/machinaris/1.1.14/app-readme.md +++ /dev/null @@ -1,66 +0,0 @@ -Machinaris -===== - -[MACHINARIS](https://github.com/guydavis/machinaris) is an easy-to-use WebUI for Chia plotting and farming. This includes Chia, Plotman, MadMax, Chiadog under main node along with various coin-forks which can be enabled conditionally. - -Coins include Cactus, Chives, CrypoDoge, Flax, Flora, HDDCoin, Maize, NChain, StaiCoin, Stor, BTCGreen and Shibgreen. - -# Machinaris Defaults -This section contains information about the defaults of Machinaris application for visibility. - -## 1. Environment Variables -Following are the default environment variables for Machinaris main node and the coin forks. - -### Machinaris Node -Machinaris main node comes with following default environment variables: - -| Variable | Default Value | Description | -| ---------------- | ----------------------------------------------------- | --------------------- | -| TZ | Same as to User selected Timezone | Timezone information | -| worker_address | Same as to LAN IP address | Worker Address | -| blockchains | chia | Block Chain | -| plots_dir | Same as to User selected plots volume | Plots Directory | -| mode | fullnode | Machinaris Mode | - -These values can be overridden while configuring Machinaris application. - -### Coin Forks -Coin forks also come with a set of default environment variables: - -| Variable | Default Value | Description | -| ---------------- | ----------------------------------------------------- | --------------------- | -| TZ | Same as to User selected Timezone | Timezone information | -| worker_address | Same as to LAN IP address | Worker Address | -| blockchains | chia | BlockChain | -| plots_dir | Same as to User selected plots volume | Plots Directory | -| mode | fullnode | Machinaris Mode | -| controller_host| Same as to LAN IP address | Controller Host | -| worker_api_port| Coin's Workload REST API Port | Worker API Port | - -These defaults can be overridden for each coin fork when you enable them through Machinaris application configuration. - -## 2. Volumes - -Before getting to defaults, please take the following note: -> ->If Custom Host Path is not enabled for a Volume Configuration then, application will use ix-volumes and create datasets inside for Host Path by default. -> ->The path for ix-volumes has the following composition: ->``` ->/mnt//ix-applications/releases//volumes/ix-volumes/ ->``` ->And with the dataset inside, would be like: ->``` ->/mnt//ix-applications/releases//volumes/ix-volumes/> ->``` -> -Following are the Volume Configurations for Machinaris main node & the coin-forks by default: - -| Volume | hostPath (default value) | mountPath in container | Description | -| ---------------------- | ----------------------------------------------------- | ----------------------- | ----------------------------------------------- | -| `config` | `/config` | `/root/.chia` | Chia config for main node | -| `plots` | `/plots` | `/plots` | Plots volume for main node & coin forks | -| `plotting` | `/plotting` | `/plotting` | Plotting temp volume for main node & coin forks | -| `-config` | `/-config` | `/root/.chia` | Chia config for each of the coin-fork containers| - -Where `` is `/mnt//ix-applications/releases//volumes/ix_volumes/` and `` is one of the following: `[ cactus, chives, crypodoge, flax, flora, hddcoin, maize, nchain, staicoin, stor, btcgreen, shibgreen ]`. diff --git a/charts/machinaris/1.1.14/charts/common-2207.0.0.tgz b/charts/machinaris/1.1.14/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/charts/machinaris/1.1.14/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/charts/machinaris/1.1.14/ix_values.yaml b/charts/machinaris/1.1.14/ix_values.yaml deleted file mode 100644 index b81f32f414..0000000000 --- a/charts/machinaris/1.1.14/ix_values.yaml +++ /dev/null @@ -1,195 +0,0 @@ -apiPort: 8927 -btcgreen: - apiPort: 8938 - farmerPort: 18655 - ports: - - containerPort: 8938 - name: api - protocol: TCP - - containerPort: 9282 - name: blockchain - protocol: TCP - - containerPort: 18655 - name: farming - protocol: TCP -cactus: - apiPort: 8936 - farmerPort: 11447 - ports: - - containerPort: 8936 - hostPort: 8936 - name: api - protocol: TCP - - containerPort: 11444 - hostPort: 11444 - name: blockchain - protocol: TCP - - containerPort: 11447 - hostPort: 11447 - name: farming - protocol: TCP -chives: - apiPort: 8931 - farmerPort: 9647 - ports: - - containerPort: 8931 - name: api - protocol: TCP - - containerPort: 9699 - name: blockchain - protocol: TCP - - containerPort: 9647 - name: farming - protocol: TCP -coins: -- cactus -- chives -- cryptodoge -- flax -- flora -- hddcoin -- maize -- nchain -- staicoin -- stor -- btcgreen -- shibgreen -cryptodoge: - apiPort: 8937 - farmerPort: 16895 - ports: - - containerPort: 8937 - name: api - protocol: TCP - - containerPort: 15994 - name: blockchain - protocol: TCP - - containerPort: 16895 - name: farming - protocol: TCP -farmerPort: 8447 -flax: - apiPort: 8928 - farmerPort: 6885 - ports: - - containerPort: 8928 - name: api - protocol: TCP - - containerPort: 6888 - name: blockchain - protocol: TCP - - containerPort: 6885 - name: farming - protocol: TCP -flora: - apiPort: 8932 - farmerPort: 18647 - ports: - - containerPort: 8932 - name: api - protocol: TCP - - containerPort: 18644 - name: blockchain - protocol: TCP - - containerPort: 18647 - name: farming - protocol: TCP -hddcoin: - apiPort: 8930 - farmerPort: 28447 - ports: - - containerPort: 8930 - name: api - protocol: TCP - - containerPort: 28444 - name: blockchain - protocol: TCP - - containerPort: 28447 - name: farming - protocol: TCP -image: - pullPolicy: IfNotPresent - repository: ghcr.io/guydavis/machinaris - tag: v0.8.5 -maize: - apiPort: 8933 - farmerPort: 8647 - ports: - - containerPort: 8933 - name: api - protocol: TCP - - containerPort: 8644 - name: blockchain - protocol: TCP - - containerPort: 8647 - name: farming - protocol: TCP -nchain: - apiPort: 8929 - farmerPort: 38447 - ports: - - containerPort: 8929 - name: api - protocol: TCP - - containerPort: 58445 - name: blockchain - protocol: TCP - - containerPort: 38447 - name: farming - protocol: TCP -ports: -- containerPort: 8444 - hostPort: 8444 - name: chia-network - protocol: TCP -- containerPort: 8926 - name: machinaris-ui - protocol: TCP -- containerPort: 8927 - hostPort: 8927 - name: machinaris-api - protocol: TCP -- containerPort: 8447 - hostPort: 8447 - name: farming - protocol: TCP -shibgreen: - apiPort: 8939 - farmerPort: 18974 - ports: - - containerPort: 8939 - name: api - protocol: TCP - - containerPort: 7442 - name: blockchain - protocol: TCP - - containerPort: 18974 - name: farming - protocol: TCP -staicoin: - apiPort: 8934 - farmerPort: 1692 - ports: - - containerPort: 8934 - name: api - protocol: TCP - - containerPort: 1999 - name: blockchain - protocol: TCP - - containerPort: 1692 - name: farming - protocol: TCP -stor: - apiPort: 8935 - farmerPort: 8337 - ports: - - containerPort: 8935 - name: api - protocol: TCP - - containerPort: 8668 - name: blockchain - protocol: TCP - - containerPort: 8337 - name: farming - protocol: TCP -updateStrategy: Recreate diff --git a/charts/machinaris/1.1.14/questions.yaml b/charts/machinaris/1.1.14/questions.yaml deleted file mode 100644 index d7e2965221..0000000000 --- a/charts/machinaris/1.1.14/questions.yaml +++ /dev/null @@ -1,1753 +0,0 @@ -groups: - - name: "Networking" - description: "Configure Networking for Machinaris" - - name: "Machinaris Configuration" - description: "Machinaris configuration" - - name: "Storage" - description: "Configure Storage for Machinaris" - - name: "Machinaris Environment Variables" - description: "Set the environment that will be visible to the container" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - - name: "Configure Coins" - description: "Configure different coins" - -portals: - web_portal: - protocols: - - "http" - host: - - "$node_ip" - ports: - - "$variable-machinaris_ui_port" - -questions: - - variable: timezone - label: "Configure timezone" - group: "Machinaris Configuration" - description: "Configure timezone for machinaris" - schema: - type: string - $ref: - - "definitions/timezone" - - - variable: nodeIP - description: "LAN IP address of your TrueNAS server" - group: "Machinaris Configuration" - label: "Worker Address" - schema: - type: string - $ref: - - "definitions/nodeIP" - - - variable: machinaris_ui_port - label: "Machinaris Web UI" - group: "Networking" - description: "Web UI Port for Machinaris" - schema: - type: int - min: 9000 - max: 65535 - default: 9003 - - variable: machinarisApiPort - label: "Machinaris API port" - group: "Networking" - description: "API port for Machinaris" - schema: - editable: false - hidden: true - type: int - default: 8927 - - variable: appVolumeMounts - label: "Machinaris Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Machinaris Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Machinaris Configuration Volume" - schema: - type: hostpath - required: true - - variable: plots - label: "Plot Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Plots Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "plots" - editable: false - - variable: mountPath - label: "Plots Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/plots" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Machinaris Plots Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Machinaris Plots Volume" - schema: - type: hostpath - required: true - - variable: plotting - label: "Plotting Temp Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Plotting Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "plotting" - editable: false - - variable: mountPath - label: "Plotting Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/plotting" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Machinaris Plotting Temp Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Machinaris Plotting Volume" - schema: - type: hostpath - required: true - - - variable: extraAppVolumeMounts - label: "Machinaris Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Machinaris Host Path Volume" - description: "Add an extra host path volume for machinaris application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - - variable: environmentVariables - label: "Environment Variables for Machinaris" - group: "Machinaris Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" - - # Cactus Configurations - - variable: cactusEnabled - label: "Enable Cactus" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: cactus - label: "Configure Cactus" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "cactus-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # Chives Configurations - - variable: chivesEnabled - label: "Enable Chives" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: chives - label: "Configure Chives" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "chives-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # Cryptodoge Configurations - - variable: cryptodogeEnabled - label: "Enable Cryptodoge" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: cryptodoge - label: "Configure Cryptodoge" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "cryptodoge-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # Flax Configurations - - variable: flaxEnabled - label: "Enable Flax" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: flax - label: "Configure Flax" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "flax-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # Flora Configurations - - variable: floraEnabled - label: "Enable Flora" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: flora - label: "Configure Flora" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "flora-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # HDDCoin Configurations - - variable: hddcoinEnabled - label: "Enable HDDCoin" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hddcoin - label: "Configure HDDCoin" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "hddcoin-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # Maize Configurations - - variable: maizeEnabled - label: "Enable Maize" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: maize - label: "Configure Maize" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "maize-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # N-Chain Configurations - - variable: nchainEnabled - label: "Enable N-Chain" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: nchain - label: "Configure N-Chain" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "nchain-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - -# Staicoin Configurations - - variable: staicoinEnabled - label: "Enable Staicoin" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: staicoin - label: "Configure Staicoin" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "staicoin-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # Stor Configurations - - variable: storEnabled - label: "Enable Stor" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: stor - label: "Configure Stor" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "stor-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - -# BTCGreen Configurations - - variable: btcgreenEnabled - label: "Enable BTCGreen" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: btcgreen - label: "Configure BTCGreen" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "btcgreen-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string -# Shibgreen Configurations - - variable: shibgreenEnabled - label: "Enable Shibgreen" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: shibgreen - label: "Configure Shibgreen" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "shibgreen-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string diff --git a/charts/machinaris/1.1.14/requirements.lock b/charts/machinaris/1.1.14/requirements.lock deleted file mode 100644 index 6e41de62f6..0000000000 --- a/charts/machinaris/1.1.14/requirements.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:48.128962914+05:00" diff --git a/charts/machinaris/1.1.14/templates/_helpers.tpl b/charts/machinaris/1.1.14/templates/_helpers.tpl deleted file mode 100644 index 52c11e849b..0000000000 --- a/charts/machinaris/1.1.14/templates/_helpers.tpl +++ /dev/null @@ -1,40 +0,0 @@ -{{/* -Init container for coin deployments -*/}} -{{- define "initContainers" -}} -{{- $values := . -}} -{{- $machinarisApiUrl := (printf "http://%v:%v/" $values.nodeIP $values.apiPort) -}} -initContainers: - - name: init-{{ $values.coinName }} - image: curlimages/curl:7.80.0 - command: ['sh', '-c', 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' {{ $machinarisApiUrl }})" != "200" ]]; do echo "Machinaris is offline. Retrying in 2 seconds.." && sleep 2; done'] -{{- end -}} - - -{{/* -Evironment variables (support for overrides) -*/}} -{{- define "allEnvironmentVariables" -}} -{{- $finalEnvironmentVariables := .defaultEnv -}} -{{- range $env := .environmentVariables -}} - {{- $_ := set $finalEnvironmentVariables $env.name $env.value -}} -{{- end -}} -env: -{{- range $envVariableName := keys $finalEnvironmentVariables }} - - name: {{ $envVariableName | quote }} - value: {{ (get $finalEnvironmentVariables $envVariableName) | quote }} -{{- end -}} -{{- end -}} - - -{{/* -Resource limits -*/}} -{{- define "resourceLimits" -}} -{{- if .Values.enableResourceLimits -}} -resources: - limits: - cpu: {{ .Values.cpuLimit }} - memory: {{ .Values.memLimit }} -{{- end -}} -{{- end -}} diff --git a/charts/machinaris/1.1.14/templates/coins-deployment.yaml b/charts/machinaris/1.1.14/templates/coins-deployment.yaml deleted file mode 100644 index 5419441d28..0000000000 --- a/charts/machinaris/1.1.14/templates/coins-deployment.yaml +++ /dev/null @@ -1,46 +0,0 @@ -{{- $ref := . }} -{{- range $coinName := $ref.Values.coins }} -{{- $coinEnabled := get $ref.Values (printf "%vEnabled" $coinName) }} -{{- if $coinEnabled }} -{{- $coin := get $ref.Values $coinName }} -{{- $_ := set $ref "common" (dict "nameSuffix" $coinName) }} -{{- $_ := set $coin.volumeMounts "plots" $ref.Values.appVolumeMounts.plots }} -{{- $_ := set $coin.volumeMounts "plotting" $ref.Values.appVolumeMounts.plotting }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" $ref }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" $ref }} - labels: {{ include "common.labels" $ref | nindent 4 }} -spec: - strategy: - type: {{ $ref.Values.updateStrategy }} - selector: - matchLabels: {{ include "common.labels.selectorLabels" $ref | nindent 6 }} - template: - metadata: - name: {{ template "common.names.fullname" $ref }} - labels: {{ include "common.labels.selectorLabels" $ref | nindent 8 }} - spec: - hostNetwork: true - {{- include "initContainers" (dict "nodeIP" $ref.Values.nodeIP "apiPort" $ref.Values.machinarisApiPort "coinName" $coinName ) | nindent 6 }} - containers: - - name: {{ $ref.Chart.Name }} - {{- include "resourceLimits" $ref | nindent 10 }} - tty: true - {{ include "common.containers.imageConfig" (dict "repository" $ref.Values.image.repository "tag" $ref.Values.image.tag "pullPolicy" $ref.Values.image.pullPolicy "postfix" $ref.common.nameSuffix) | nindent 10 }} - {{ include "common.containers.configurePorts" $coin | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" (dict "appVolumeMounts" $coin.volumeMounts "ixVolumes" $ref.Values.ixVolumes) | nindent 12 }} - {{ range $index, $hostPathConfiguration := $ref.Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - {{ include "allEnvironmentVariables" (dict "defaultEnv" (dict "TZ" $ref.Values.timezone "worker_address" $ref.Values.nodeIP "worker_api_port" $coin.apiPort "controller_host" $ref.Values.nodeIP "controller_api_port" $ref.Values.apiPort "farmer_port" $coin.farmerPort "blockchains" $coinName "plots_dir" $ref.Values.appVolumeMounts.plots.mountPath "mode" "fullnode") "environmentVariables" $coin.environmentVariables) | nindent 10 }} - volumes: {{ include "common.storage.configureAppVolumes" (dict "appVolumeMounts" $coin.volumeMounts "ixVolumes" $ref.Values.ixVolumes) | nindent 8 }} - {{ range $index, $hostPathConfiguration := $ref.Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $coinName }}-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} ---- -{{- end }} -{{- end }} diff --git a/charts/machinaris/1.1.14/templates/deployment.yaml b/charts/machinaris/1.1.14/templates/deployment.yaml deleted file mode 100644 index 9425fc1045..0000000000 --- a/charts/machinaris/1.1.14/templates/deployment.yaml +++ /dev/null @@ -1,39 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -{{- if hasKey . "common" }} -{{- $_ := unset .common "nameSuffix" }} -{{- end }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels" . | nindent 4 }} -spec: - strategy: - type: {{ .Values.updateStrategy }} - selector: - matchLabels: {{ include "common.labels.selectorLabels" . | nindent 6 }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels.selectorLabels" . | nindent 8 }} - spec: - # FIXME: Let's please remove hostnetwork when upstream hostport issue is sorted out with kube-router - hostNetwork: true - containers: - - name: {{ .Chart.Name }} - {{- include "resourceLimits" . | nindent 10 }} - tty: true - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - {{ include "common.containers.configurePorts" .Values | nindent 10 }} - {{ include "allEnvironmentVariables" (dict "defaultEnv" (dict "TZ" .Values.timezone "worker_address" .Values.nodeIP "worker_api_port" .Values.apiPort "controller_api_port" .Values.apiPort "farmer_port" .Values.farmerPort "blockchains" "chia" "plots_dir" .Values.appVolumeMounts.plots.mountPath "mode" "fullnode") "environmentVariables" .Values.environmentVariables) | nindent 10 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} diff --git a/charts/machinaris/1.1.14/templates/service.yaml b/charts/machinaris/1.1.14/templates/service.yaml deleted file mode 100644 index bc10f57869..0000000000 --- a/charts/machinaris/1.1.14/templates/service.yaml +++ /dev/null @@ -1,6 +0,0 @@ -{{ $svc := .Values }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "pms" "port" $svc.machinaris_ui_port "nodePort" $svc.machinaris_ui_port "targetPort" "machinaris-ui") }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "ports" $ports "type" "NodePort" ) }} -{{ include "common.classes.service" $params }} diff --git a/charts/machinaris/1.1.14/templates/tests/cactus-check.yaml b/charts/machinaris/1.1.14/templates/tests/cactus-check.yaml deleted file mode 100644 index 775061f346..0000000000 --- a/charts/machinaris/1.1.14/templates/tests/cactus-check.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-cactus-deployment-test" - annotations: - "helm.sh/hook": test -spec: - hostNetwork: true - restartPolicy: Never - containers: - - name: {{ .Release.Name }}-cactus-deployment-test - image: busybox - # Note: Adding sleep 15, as even when cactus pod status is ready, I've seen API - # taking a few seconds to be live and running. - command: ['sh', '-c', 'sleep 30 && nc -vz {{ .Values.nodeIP }} {{ .Values.cactus.apiPort }}'] diff --git a/charts/machinaris/1.1.14/templates/tests/machinaris-check.yaml b/charts/machinaris/1.1.14/templates/tests/machinaris-check.yaml deleted file mode 100644 index 29b612245e..0000000000 --- a/charts/machinaris/1.1.14/templates/tests/machinaris-check.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-machinaris-deployment-test" - annotations: - "helm.sh/hook": test -spec: - hostNetwork: true - restartPolicy: Never - containers: - - name: {{ .Release.Name }}-machinaris-deployment-test - image: busybox - command: ['sh', '-c', 'nc -vz {{ .Values.nodeIP }} {{ .Values.machinarisApiPort }}'] diff --git a/charts/machinaris/1.1.14/test_values.yaml b/charts/machinaris/1.1.14/test_values.yaml deleted file mode 100644 index 6612b33824..0000000000 --- a/charts/machinaris/1.1.14/test_values.yaml +++ /dev/null @@ -1,73 +0,0 @@ -apiPort: 8927 -appVolumeMounts: - config: - emptyDir: true - mountPath: /root/.chia - plots: - emptyDir: true - mountPath: /plots - plotting: - emptyDir: true - mountPath: /plotting -cactus: - apiPort: 8936 - environmentVariables: - - name: mode - value: plotter - farmerPort: 11447 - ports: - - containerPort: 8936 - hostPort: 8936 - name: api - protocol: TCP - - containerPort: 11444 - hostPort: 11444 - name: blockchain - protocol: TCP - - containerPort: 11447 - hostPort: 11447 - name: farming - protocol: TCP - volumeMounts: - cactus-config: - emptyDir: true - mountPath: /root/.chia - mnemonic: - emptyDir: true - mountPath: /root/.chia/mnemonic.txt - readOnly: true - subPath: mnemonic.txt -cactusEnabled: true -coins: -- cactus -cpuLimit: 0.5 -enableResourceLimits: true -environmentVariables: -- name: mode - value: fullnode -farmerPort: 8447 -image: - pullPolicy: IfNotPresent - repository: ghcr.io/guydavis/machinaris - tag: v0.8.1 -machinarisApiPort: 8927 -machinaris_ui_port: 31003 -memLimit: 1G -nodeIP: 127.0.0.1 -ports: -- containerPort: 8444 - hostPort: 8444 - name: chia-network - protocol: TCP -- containerPort: 8926 - name: machinaris-ui - protocol: TCP -- containerPort: 8927 - hostPort: 8927 - name: machinaris-api - protocol: TCP -- containerPort: 8447 - hostPort: 8447 - protocol: TCP -timezone: America/Edmonton -updateStrategy: Recreate diff --git a/charts/machinaris/item.yaml b/charts/machinaris/item.yaml deleted file mode 100644 index b6147ab399..0000000000 --- a/charts/machinaris/item.yaml +++ /dev/null @@ -1,4 +0,0 @@ -categories: - - storage - - crypto -icon_url: https://raw.githubusercontent.com/guydavis/machinaris/main/web/static/machinaris.png diff --git a/charts/machinaris/upgrade_info.json b/charts/machinaris/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/charts/machinaris/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/charts/machinaris/upgrade_strategy_disable b/charts/machinaris/upgrade_strategy_disable deleted file mode 100755 index 81ad1edb3b..0000000000 --- a/charts/machinaris/upgrade_strategy_disable +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python3 -import json -import sys - -from catalog_update.upgrade_strategy import semantic_versioning - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - tags = {t.strip('v').replace('_', '.'): t for t in image_tags[key]} - version = semantic_versioning(image_tags[key]) - if not version: - return {} - - return { - 'tags': {key: tags[version]}, - 'app_version': tags[version], - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/chia/1.3.39/.helmignore b/test/chia/1.3.39/.helmignore deleted file mode 100644 index a9fe727881..0000000000 --- a/test/chia/1.3.39/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -# OWNERS file for Kubernetes -OWNERS \ No newline at end of file diff --git a/test/chia/1.3.39/Chart.yaml b/test/chia/1.3.39/Chart.yaml deleted file mode 100644 index 7a26eb8b92..0000000000 --- a/test/chia/1.3.39/Chart.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v1 -appVersion: v1.7.0 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: Global, Versioned, peer-to-peer filesystem. -home: https://www.chia.net/ -icon: https://www.chia.net/wp-content/uploads/2022/09/chia-logo.svg -keywords: -- storage -- crypto -- blockchain -name: chia -sources: -- https://github.com/Chia-Network/chia-blockchain -- https://github.com/orgs/chia-network/packages/container/package/chia -version: 1.3.39 diff --git a/test/chia/1.3.39/README.md b/test/chia/1.3.39/README.md deleted file mode 100755 index d93ffcf19f..0000000000 --- a/test/chia/1.3.39/README.md +++ /dev/null @@ -1,8 +0,0 @@ -Chia Network -===== - -[CHIA](https://www.chia.net/) is a new blockchain and smart transaction platform that is easier to use, more efficient, and secure. -Introduction ------------- - -This chart bootstraps CHIA deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. diff --git a/test/chia/1.3.39/app-readme.md b/test/chia/1.3.39/app-readme.md deleted file mode 100644 index 6ab946dd9e..0000000000 --- a/test/chia/1.3.39/app-readme.md +++ /dev/null @@ -1,4 +0,0 @@ -Chia Network -===== - -[CHIA](https://www.chia.net/) is a new blockchain and smart transaction platform that is easier to use, more efficient, and secure. diff --git a/test/chia/1.3.39/charts/common-2207.0.0.tgz b/test/chia/1.3.39/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/chia/1.3.39/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/chia/1.3.39/default_values.yaml b/test/chia/1.3.39/default_values.yaml deleted file mode 100644 index 3019cf582f..0000000000 --- a/test/chia/1.3.39/default_values.yaml +++ /dev/null @@ -1,17 +0,0 @@ -image: - repository: ghcr.io/chia-network/chia - tag: 1.1.4 - pullPolicy: IfNotPresent -updateStrategy: Recreate -environmentVariables: - - name: "keys" - value: "/plots/keyfile" - -appVolumeMounts: - staging: - emptyDir: true - mountPath: "/plots" - data: - emptyDir: true - mountPath: "/root/.chia" - diff --git a/test/chia/1.3.39/ix_values.yaml b/test/chia/1.3.39/ix_values.yaml deleted file mode 100644 index 52095b1acc..0000000000 --- a/test/chia/1.3.39/ix_values.yaml +++ /dev/null @@ -1,5 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: ixsystems/chia-docker - tag: v1.7.0 -updateStrategy: Recreate diff --git a/test/chia/1.3.39/questions.yaml b/test/chia/1.3.39/questions.yaml deleted file mode 100644 index 1dac7192db..0000000000 --- a/test/chia/1.3.39/questions.yaml +++ /dev/null @@ -1,209 +0,0 @@ -groups: - - name: "Storage" - description: "Configure Storage for Chia" - - name: "Farmr.net Configuration" - description: "Configure farmr.net support" - - name: "Chia Environment Variables" - description: "Set the environment that will be visible to the container" - - name: "Networking" - description: "Configure networking for Chia container" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - -portals: - web_portal: - protocols: - - "https" - host: - - "www.truepool.io" - ports: - - "443" - path: "/kb/truepool-docker-image/" - -questions: - - variable: farmr_env - label: "Enable 'farmr.net' support" - group: "Farmr.net Configuration" - description: "Configure 'farmr.net' support for chia" - schema: - type: string - default: "off" - enum: - - value: "off" - description: "OFF" - - value: "farmer" - description: "FARMER" - - value: "harvester" - description: "HARVESTER" - - variable: appVolumeMounts - label: "Chia Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/data" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Chia Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Chia Configuration Volume" - schema: - type: hostpath - required: true - - variable: plots - label: "Plot Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Plots Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "plots" - editable: false - - variable: mountPath - label: "Plots Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/plots" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Chia Plots Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Chia Plots Volume" - schema: - type: hostpath - required: true - - - variable: extraAppVolumeMounts - label: "Chia Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Chia Host Path Volume" - description: "Add an extra host path volume for chia application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - - variable: environmentVariables - label: "Environment Variables for Chia" - group: "Chia Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: service - description: "Networking Configuration" - label: "Networking Configuration" - group: "Networking" - schema: - type: dict - required: true - attrs: - - variable: nodePort - label: "Node Port to use for Chia" - schema: - type: int - min: 8000 - max: 65535 - default: 8444 - required: true - - variable: farmerPort - label: "Farmer Port to use for Chia" - schema: - type: int - min: 8000 - max: 65535 - default: 8447 - required: true - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/test/chia/1.3.39/requirements.lock b/test/chia/1.3.39/requirements.lock deleted file mode 100644 index 4247a5f375..0000000000 --- a/test/chia/1.3.39/requirements.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:43.583595794+05:00" diff --git a/test/chia/1.3.39/templates/deployment.yaml b/test/chia/1.3.39/templates/deployment.yaml deleted file mode 100644 index b3fe0f0077..0000000000 --- a/test/chia/1.3.39/templates/deployment.yaml +++ /dev/null @@ -1,48 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels" . | nindent 4 }} - annotations: - rollme: {{ randAlphaNum 5 | quote }} -spec: - strategy: - type: {{ .Values.updateStrategy }} - selector: - matchLabels: {{ include "common.labels.selectorLabels" . | nindent 6 }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels.selectorLabels" . | nindent 8 }} - spec: - # FIXME: Let's please remove hostnetwork when upstream hostport issue is sorted out with kube-router - hostNetwork: {{ include "hostNetworkingEnabled" . }} - containers: - - name: {{ .Chart.Name }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - {{ include "common.resources.limitation" . | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - ports: - - name: chia-network - protocol: TCP - containerPort: 8444 - hostPort: null - - name: chia-farmer - protocol: TCP - containerPort: 8447 - hostPort: null - {{ $envList := (default list .Values.environmentVariables) }} - {{ $envList = mustAppend $envList (dict "name" "keys" "value" "/plots/keyfile") }} - {{ $envList = mustAppend $envList (dict "name" "farmr" "value" $.Values.farmr_env) }} - {{ include "common.containers.allEnvironmentVariables" (dict "environmentVariables" $envList) | nindent 10 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} diff --git a/test/chia/1.3.39/templates/generate-mnemonic.yaml b/test/chia/1.3.39/templates/generate-mnemonic.yaml deleted file mode 100644 index 1f3575ec84..0000000000 --- a/test/chia/1.3.39/templates/generate-mnemonic.yaml +++ /dev/null @@ -1,30 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: "pre-install" - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-weight": "1" - "helm.sh/hook-delete-policy": hook-succeeded -spec: - template: - metadata: - name: "pre-upgrade-hook2" - spec: - restartPolicy: Never - containers: - - name: {{ .Chart.Name }}-generate-mnemonic - {{ include "common.containers.imageConfig" .Values.image | nindent 8 }} - volumeMounts:{{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 10 }} - - - name: generate-mnemonic-configmap - mountPath: /generate_entrypoint.sh - readOnly: true - subPath: entrypoint.sh - command: - - "/generate_entrypoint.sh" - volumes: {{- include "common.storage.configureAppVolumes" .Values | nindent 8 -}} - - name: generate-mnemonic-configmap - configMap: - defaultMode: 0700 - name: "generate-mnemonic-config-map" diff --git a/test/chia/1.3.39/templates/mnemonic-configmap.yaml b/test/chia/1.3.39/templates/mnemonic-configmap.yaml deleted file mode 100644 index 3158c85014..0000000000 --- a/test/chia/1.3.39/templates/mnemonic-configmap.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: "generate-mnemonic-config-map" - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-weight": "-1" - "helm.sh/hook-delete-policy": hook-succeeded -data: - entrypoint.sh: |- - #!/bin/sh - if [ ! -e /plots/keyfile ]; then - /chia-blockchain/venv/bin/python3 -c "from chia.util.keychain import generate_mnemonic;print(generate_mnemonic())" > /plots/keyfile; - fi diff --git a/test/chia/1.3.39/templates/networking.tpl b/test/chia/1.3.39/templates/networking.tpl deleted file mode 100644 index 280f7bdc9e..0000000000 --- a/test/chia/1.3.39/templates/networking.tpl +++ /dev/null @@ -1,21 +0,0 @@ -{{/* -Enable host networking -*/}} -{{- define "hostNetworkingEnabled" -}} -{{- if or (lt (.Values.service.nodePort | int) 9000) (lt (.Values.service.farmerPort | int) 9000) -}} -{{- print "true" -}} -{{- else -}} -{{- print "false" -}} -{{- end -}} -{{- end -}} - -{{/* -Enable Node Port Service -*/}} -{{- define "enableService" -}} -{{- if or (ge (.Values.service.nodePort | int) 9000) (ge (.Values.service.farmerPort | int) 9000) -}} -{{- print "true" -}} -{{- else -}} -{{- print "false" -}} -{{- end -}} -{{- end -}} diff --git a/test/chia/1.3.39/templates/service.yaml b/test/chia/1.3.39/templates/service.yaml deleted file mode 100644 index bf92e8d57b..0000000000 --- a/test/chia/1.3.39/templates/service.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{{ if eq (include "enableService" .) "true" }} -{{ $svc := .Values.service }} -{{ $ports := list }} -{{ if ge ($svc.nodePort | int) 9000 }} -{{ $ports = mustAppend $ports (dict "name" "chia-network" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 8444) }} -{{ end }} -{{ if ge ($svc.farmerPort | int) 9000 }} -{{ $ports = mustAppend $ports (dict "name" "chia-farmer" "port" $svc.farmerPort "nodePort" $svc.farmerPort "targetPort" 8447) }} -{{ end }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{ include "common.classes.service" $params }} -{{ end }} \ No newline at end of file diff --git a/test/chia/1.3.39/test_values.yaml b/test/chia/1.3.39/test_values.yaml deleted file mode 100644 index 66f66f4f95..0000000000 --- a/test/chia/1.3.39/test_values.yaml +++ /dev/null @@ -1,16 +0,0 @@ -appVolumeMounts: - data: - emptyDir: true - mountPath: /data - staging: - emptyDir: true - mountPath: /plots -farmr_env: 'off' -image: - pullPolicy: IfNotPresent - repository: ixsystems/chia-docker - tag: v1.7.0 -service: - farmerPort: 31122 - nodePort: 31121 -updateStrategy: Recreate diff --git a/test/chia/1.3.39/values.yaml b/test/chia/1.3.39/values.yaml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/chia/item.yaml b/test/chia/item.yaml deleted file mode 100644 index 93abfb0f65..0000000000 --- a/test/chia/item.yaml +++ /dev/null @@ -1,4 +0,0 @@ -categories: - - storage - - crypto -icon_url: https://www.chia.net/wp-content/uploads/2022/09/chia-logo.svg diff --git a/test/chia/upgrade_info.json b/test/chia/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/test/chia/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/test/chia/upgrade_strategy b/test/chia/upgrade_strategy deleted file mode 100755 index fee6131e03..0000000000 --- a/test/chia/upgrade_strategy +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python3 -import json -import sys - -from catalog_update.upgrade_strategy import semantic_versioning - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - tags = {t.strip('v').replace('_', '.'): t for t in image_tags[key]} - version = semantic_versioning(tags) - if not version: - return {} - - return { - 'tags': {key: tags[version]}, - 'app_version': tags[version], - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/collabora/1.2.6/.helmignore b/test/collabora/1.2.6/.helmignore deleted file mode 100644 index a9fe727881..0000000000 --- a/test/collabora/1.2.6/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -# OWNERS file for Kubernetes -OWNERS \ No newline at end of file diff --git a/test/collabora/1.2.6/Chart.yaml b/test/collabora/1.2.6/Chart.yaml deleted file mode 100644 index baeb4d43f9..0000000000 --- a/test/collabora/1.2.6/Chart.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -appVersion: 21.11.4.1.1 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: "Collabora Online Development Edition \u2013 an awesome, Online Office\ - \ suite image suitable for home use." -home: https://github.com/CollaboraOnline/online -icon: https://avatars.githubusercontent.com/u/22418908?s=200&v=4 -keywords: -- office -- documents -- productivity -name: collabora -sources: -- https://github.com/CollaboraOnline/online.git -- https://hub.docker.com/r/collabora/code -version: 1.2.6 diff --git a/test/collabora/1.2.6/README.md b/test/collabora/1.2.6/README.md deleted file mode 100755 index a6ad088691..0000000000 --- a/test/collabora/1.2.6/README.md +++ /dev/null @@ -1,8 +0,0 @@ -Collabora Online Development Edition -===== - -Collabora Online Development Edition - An awesome, Online Office suite image suitable for home use! -Introduction ------------- - -This chart bootstraps Collabora deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. diff --git a/test/collabora/1.2.6/app-readme.md b/test/collabora/1.2.6/app-readme.md deleted file mode 100644 index 2f0776c3c1..0000000000 --- a/test/collabora/1.2.6/app-readme.md +++ /dev/null @@ -1,9 +0,0 @@ -Collabora Online Development Edition -===== - -An awesome, Online Office suite image suitable for home use. -With the Collabora Online Development Edition (CODE) Docker Image you can host -your own online Office Suite at home! This Docker image is aimed at home users -and contains the latest and greatest developments. Simply integrate it in your -preferred File Sync and Share (FSS), to easily get your own online Office -Suite up and running! diff --git a/test/collabora/1.2.6/charts/common-2207.0.0.tgz b/test/collabora/1.2.6/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/collabora/1.2.6/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/collabora/1.2.6/ix_values.yaml b/test/collabora/1.2.6/ix_values.yaml deleted file mode 100644 index 94d9bbe79d..0000000000 --- a/test/collabora/1.2.6/ix_values.yaml +++ /dev/null @@ -1,10 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: collabora/code - tag: 21.11.4.1.1 -nginx: - image: - pullPolicy: IfNotPresent - repository: nginx - tag: 1.21.3 -updateStrategy: Recreate diff --git a/test/collabora/1.2.6/questions.yaml b/test/collabora/1.2.6/questions.yaml deleted file mode 100644 index 7ee8a2f850..0000000000 --- a/test/collabora/1.2.6/questions.yaml +++ /dev/null @@ -1,158 +0,0 @@ -groups: - - name: "Collabora Configuration" - description: "Configure Collabora" - - name: "Collabora Environment Variables" - description: "Set the environment that will be visible to the container" - - name: "Networking" - description: "Configure Networking for Collabora" - - name: "Storage" - description: "Configure Storage for Collabora" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - -portals: - web_portal: - protocols: - - "https" - host: - - "$variable-config.server_name" - ports: - - "$variable-nodePort" - path: "/browser/dist/admin/admin.html" - -questions: - - variable: config - label: "Container Configuration" - group: "Collabora Configuration" - schema: - type: dict - attrs: - - variable: timezone - label: "Timezone" - group: "Collabora Configuration" - schema: - type: string - $ref: - - "definitions/timezone" - - variable: username - label: "Username for WebUI" - schema: - type: string - default: "admin" - required: true - - variable: password - label: "Password for WebUI" - schema: - type: string - private: true - default: "changeme" - valid_chars: "[a-zA-Z0-9!@#$%^&*?]{8,}" - required: true - - variable: dictionaries - label: "Dictionaries to use, leave empty to use all" - schema: - type: string - default: "de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru" - - variable: extra_params - label: "Extra Parameters to add" - description: 'e.g. "--o:welcome.enable=false", See more on /etc/loolwsd/loowsd.xml. Separate params with space' - schema: - type: string - default: "--o:welcome.enable=false --o:user_interface.mode=notebookbar --o:ssl.termination=true --o:ssl.enable=false --o:net.proto=IPv4 --o:net.post_allow.host[0]=.+ --o:storage.wopi.host[0]=.+" - - variable: server_name - label: "Server Name" - description: "When this environment variable is set (is not “”), then its value will be used as server name in /etc/loolwsd/loolwsd.xml. Without this, CODE is not delivering a correct host for the websocket connection in case of a proxy in front of it." - schema: - type: string - $ref: - - "definitions/nodeIP" - - - variable: certificate - description: "Collabora Certificate" - label: "Certificate" - group: "Collabora Configuration" - schema: - type: int - $ref: - - "definitions/certificate" - "null": false - - - variable: extraAppVolumeMounts - label: "Collabora Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Collabora Host Path Volume" - description: "Add an extra host path volume for Collabora application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - - variable: environmentVariables - label: "Environment Variables" - group: "Collabora Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: nodePort - label: "Node Port to use for Collabora" - group: "Networking" - schema: - type: int - default: 9980 - min: 9000 - max: 65535 - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/test/collabora/1.2.6/requirements.lock b/test/collabora/1.2.6/requirements.lock deleted file mode 100644 index 19014c3eba..0000000000 --- a/test/collabora/1.2.6/requirements.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:48.244687333+05:00" diff --git a/test/collabora/1.2.6/templates/_helpers.tpl b/test/collabora/1.2.6/templates/_helpers.tpl deleted file mode 100644 index 82b2687b17..0000000000 --- a/test/collabora/1.2.6/templates/_helpers.tpl +++ /dev/null @@ -1,40 +0,0 @@ -{{/* -Retrieve secret name for secure credentials -*/}} -{{- define "secretName" -}} -{{- print "credentials" -}} -{{- end -}} - - -{{/* -Retrieve true/false if certificate is configured -*/}} -{{- define "certAvailable" -}} -{{- if .Values.certificate -}} -{{- $values := (. | mustDeepCopy) -}} -{{- $_ := set $values "commonCertOptions" (dict "certKeyName" $values.Values.certificate) -}} -{{- template "common.resources.cert_present" $values -}} -{{- else -}} -{{- false -}} -{{- end -}} -{{- end -}} - - -{{/* -Retrieve public key of certificate -*/}} -{{- define "cert.publicKey" -}} -{{- $values := (. | mustDeepCopy) -}} -{{- $_ := set $values "commonCertOptions" (dict "certKeyName" $values.Values.certificate "publicKey" true) -}} -{{ include "common.resources.cert" $values }} -{{- end -}} - - -{{/* -Retrieve private key of certificate -*/}} -{{- define "cert.privateKey" -}} -{{- $values := (. | mustDeepCopy) -}} -{{- $_ := set $values "commonCertOptions" (dict "certKeyName" $values.Values.certificate) -}} -{{ include "common.resources.cert" $values }} -{{- end -}} diff --git a/test/collabora/1.2.6/templates/deployment.yaml b/test/collabora/1.2.6/templates/deployment.yaml deleted file mode 100644 index 4e19a1caee..0000000000 --- a/test/collabora/1.2.6/templates/deployment.yaml +++ /dev/null @@ -1,77 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels" . | nindent 4 }} -spec: - strategy: - type: {{ .Values.updateStrategy }} - selector: - matchLabels: {{ include "common.labels.selectorLabels" . | nindent 6 }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels.selectorLabels" . | nindent 8 }} - spec: - containers: - - name: {{ .Chart.Name }}-nginx - image: {{ printf "%s:%s" .Values.nginx.image.repository .Values.nginx.image.tag }} - imagePullPolicy: {{ .Values.nginx.image.pullPolicy }} - volumeMounts: - - name: configuration - mountPath: /etc/nginx/nginx.conf - readOnly: true - subPath: config - - name: certs - mountPath: /etc/nginx/server.crt - subPath: certPublicKey - - name: certs - mountPath: /etc/nginx/server.key - subPath: certPrivateKey - ports: - - name: http - containerPort: 80 - protocol: TCP - - name: https - containerPort: 443 - protocol: TCP - - name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 10 }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - {{ if .Values.extraAppVolumeMounts }} - volumeMounts: - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - {{ end }} - ports: - - name: collabora - protocol: TCP - containerPort: 9980 - {{ $envList := (default list .Values.environmentVariables) }} - {{ $secretName := (include "secretName" .) }} - {{ $envConfig := .Values.config }} - {{ $envList = mustAppend $envList (dict "name" "timezone" "value" $envConfig.timezone) }} - {{ $envList = mustAppend $envList (dict "name" "domain" "value" $envConfig.domain) }} - {{ $envList = mustAppend $envList (dict "name" "dictionaries" "value" $envConfig.dictionaries) }} - {{ $envList = mustAppend $envList (dict "name" "extra_params" "value" $envConfig.extra_params) }} - {{ $envList = mustAppend $envList (dict "name" "DONT_GEN_SSL_CERT" "value" "true") }} - {{ $envList = mustAppend $envList (dict "name" "server_name" "value" (printf "%v:%v" $envConfig.server_name .Values.nodePort)) }} - {{ $envList = mustAppend $envList (dict "name" "username" "valueFromSecret" true "secretName" $secretName "secretKey" "username") }} - {{ $envList = mustAppend $envList (dict "name" "password" "valueFromSecret" true "secretName" $secretName "secretKey" "password") }} - {{ include "common.containers.allEnvironmentVariables" (dict "environmentVariables" $envList) | nindent 10 }} - volumes: - - name: configuration - configMap: - defaultMode: 0700 - name: "nginx-config" - - name: certs - secret: - secretName: {{ include "secretName" . }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} diff --git a/test/collabora/1.2.6/templates/nginx-conf.yaml b/test/collabora/1.2.6/templates/nginx-conf.yaml deleted file mode 100644 index e79e98253f..0000000000 --- a/test/collabora/1.2.6/templates/nginx-conf.yaml +++ /dev/null @@ -1,122 +0,0 @@ -{{- $serviceName := "localhost" -}} -apiVersion: v1 -kind: ConfigMap -metadata: - name: "nginx-config" - annotations: - rollme: {{ randAlphaNum 5 | quote }} -data: - config: |- - events { - worker_connections 1024; - } - - http { - include mime.types; - default_type application/octet-stream; - - # Types to enable gzip compression on - gzip_types - text/plain - text/css - text/js - text/xml - text/javascript - application/javascript - application/x-javascript - application/json - application/xml - application/rss+xml - image/svg+xml; - - sendfile on; - client_max_body_size 1000m; - - keepalive_timeout 65; - - # Disable tokens for security (#23684) - server_tokens off; - - gzip on; - client_body_temp_path /var/tmp/firmware; - - server { - server_name nginx; - listen 0.0.0.0:443 default_server ssl http2; - listen [::]:443 default_server ssl http2; - - ssl_certificate "/etc/nginx/server.crt"; - ssl_certificate_key "/etc/nginx/server.key"; - - ssl_session_timeout 120m; - ssl_session_cache shared:ssl:16m; - - ssl_protocols TLSv1.2 TLSv1.3; - ssl_prefer_server_ciphers on; - ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA:EDH+aRSA:EECDH:!RC4:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!SHA1:!SHA256:!SHA384; - add_header Strict-Transport-Security max-age=31536000; - - location = /robots.txt { - add_header Content-Type text/plain; - proxy_set_header Referer "http://nginx"; - return 200 "User-agent: *\nDisallow: /loleaflet/*\n"; - } - - # static files - location ^~ /browser { - proxy_pass http://{{ $serviceName }}:9980; - proxy_set_header Host $host; - # proxy_set_header Referer "http://nginx"; - } - - # WOPI discovery URL - location ^~ /hosting/discovery { - set $upstream_collabora {{ $serviceName }}; - proxy_pass http://$upstream_collabora:9980; - proxy_set_header Host $http_host; - # proxy_set_header Referer "http://nginx"; - } - - # Capabilities - location ^~ /hosting/capabilities { - proxy_pass http://{{ $serviceName }}:9980; - proxy_set_header Host $host; - # proxy_set_header Referer "http://nginx"; - } - - # main websocket - location ~ ^/cool/(.*)/ws$ { - proxy_pass http://{{ $serviceName }}:9980; - proxy_set_header Host $host; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - # proxy_set_header Referer "http://nginx"; - proxy_read_timeout 36000s; - } - - # download, presentation and image upload - location ~ ^/(c|l)ool { - proxy_pass http://{{ $serviceName }}:9980; - proxy_set_header Host $host; - proxy_set_header Referer "http://nginx"; - } - - # Admin Console websocket - location ^~ /cool/adminws { - proxy_pass http://{{ $serviceName }}:9980; - proxy_set_header Host $host; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - # proxy_set_header Referer "http://nginx"; - proxy_read_timeout 36000s; - } - - } - server { - listen 0.0.0.0:80; - listen [::]:80; - server_name nginx; - return 307 https://$host:{{ .Values.nodePort }}}$request_uri; - } - - } diff --git a/test/collabora/1.2.6/templates/nginx-service.yaml b/test/collabora/1.2.6/templates/nginx-service.yaml deleted file mode 100644 index 644ed5b3ad..0000000000 --- a/test/collabora/1.2.6/templates/nginx-service.yaml +++ /dev/null @@ -1,6 +0,0 @@ -{{ $port := .Values.nodePort }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "https" "nodePort" $port "targetPort" 443 "port" 443) }} -{{ $params := (. | mustDeepCopy) }} -{{ $_ := set $params "commonService" (dict "ports" $ports "type" "NodePort" ) }} -{{ include "common.classes.service" $params }} diff --git a/test/collabora/1.2.6/templates/secrets.yaml b/test/collabora/1.2.6/templates/secrets.yaml deleted file mode 100644 index 4538aa5e8a..0000000000 --- a/test/collabora/1.2.6/templates/secrets.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: {{ template "secretName" . }} - labels: {{ include "common.labels" . | nindent 4 }} -type: Opaque -data: - username: {{ .Values.config.username | b64enc | quote }} - password: {{ .Values.config.password | b64enc | quote }} - {{ if eq (include "certAvailable" .) "true" }} - certPublicKey: {{ (include "cert.publicKey" .) | toString | b64enc | quote }} - certPrivateKey: {{ (include "cert.privateKey" .) | toString | b64enc | quote }} - {{ else }} - {{ fail "No certificate configured for Collabora" }} - {{ end }} diff --git a/test/collabora/1.2.6/templates/tests/deployment-check.yaml b/test/collabora/1.2.6/templates/tests/deployment-check.yaml deleted file mode 100644 index 8bbb4f30fd..0000000000 --- a/test/collabora/1.2.6/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-collabora-test" - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ks https://{{ $serviceName }}/browser/dist/admin/admin.html - restartPolicy: Never diff --git a/test/collabora/1.2.6/test_values.yaml b/test/collabora/1.2.6/test_values.yaml deleted file mode 100644 index bfb75f41a6..0000000000 --- a/test/collabora/1.2.6/test_values.yaml +++ /dev/null @@ -1,364 +0,0 @@ -certificate: 55 -config: - DONT_GEN_SSL_CERT: 'true' - dictionaries: de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru - domain: nextcloud\.domain\.tld|othernextcloud\.domain\.tld - extra_params: --o:welcome.enable=false --o:user_interface.mode=notebookbar --o:ssl.termination=true - --o:ssl.enable=false --o:net.proto=IPv4 --o:net.post_allow.host[0]=.+ --o:storage.wopi.host[0]=.+ - password: changeme - server_name: ssh.sonicaj.com:49980 - timezone: Asia/Karachi - username: admin -environmentVariables: [] -extraAppVolumeMounts: [] -image: - pullPolicy: IfNotPresent - repository: collabora/code - tag: 21.11.4.1.1 -ixCertificateAuthorities: {} -ixCertificates: - '55': - CA_type_existing: false - CA_type_intermediate: false - CA_type_internal: false - CSR: null - DN: /CN=ad/C=US/ST=asdf/L=asdf/O=adsf/OU=asdf/emailAddress=a@a.com/subjectAltName=IP - Address:192.168.0.3, IP Address:192.168.0.5, IP Address:192.168.0.182, IP Address:192.168.0.129, - IP Address:192.168.0.146 - can_be_revoked: false - cert_type: CERTIFICATE - cert_type_CSR: false - cert_type_existing: true - cert_type_internal: false - certificate: '-----BEGIN CERTIFICATE----- - - MIIEdjCCA16gAwIBAgIDYFMYMA0GCSqGSIb3DQEBCwUAMGwxDDAKBgNVBAMMA2Fz - - ZDELMAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxCzAJBgNVBAcMAmFmMQ0wCwYD - - VQQKDARhc2RmMQwwCgYDVQQLDANhc2QxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w - - HhcNMjEwODMwMjMyMzU0WhcNMjMxMjAzMjMyMzU0WjBuMQswCQYDVQQDDAJhZDEL - - MAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxDTALBgNVBAcMBGFzZGYxDTALBgNV - - BAoMBGFkc2YxDTALBgNVBAsMBGFzZGYxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w - - ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC7+1xOHRQyOnQTHFcrdasX - - Zl0gzutVlA890a1wiQpdD5dOtCLo7+eqVYjqVKo9W8RUIArXWmBu/AbkH7oVFWC1 - - P973W1+ArF5sA70f7BZgqRKJTIisuIFIlRETgfnP2pfQmHRZtGaIJRZI4vQCdYgW - - 2g0KOvvNcZJCVq1OrhKiNiY1bWCp66DGg0ic6OEkZFHTm745zUNQaf2dNgsxKU0H - - PGjVLJI//yrRFAOSBUqgD4c50krnMF7fU/Fqh+UyOu8t6Y/HsySh3urB+Zie331t - - AzV6QV39KKxRflNx/yuWrtIEslGTm+xHKoCYJEk/nZ3mX8Y5hG6wWAb7A/FuDVg3 - - AgMBAAGjggEdMIIBGTAnBgNVHREEIDAehwTAqAADhwTAqAAFhwTAqAC2hwTAqACB - - hwTAqACSMB0GA1UdDgQWBBQ4G2ff4tgZl4vmo4xCfqmJhdqShzAMBgNVHRMBAf8E - - AjAAMIGYBgNVHSMEgZAwgY2AFLlYf9L99nxJDcpCM/LT3V5hQ/a3oXCkbjBsMQww - - CgYDVQQDDANhc2QxCzAJBgNVBAYTAlVTMQ0wCwYDVQQIDARhc2RmMQswCQYDVQQH - - DAJhZjENMAsGA1UECgwEYXNkZjEMMAoGA1UECwwDYXNkMRYwFAYJKoZIhvcNAQkB - - FgdhQGEuY29tggNgUxcwFgYDVR0lAQH/BAwwCgYIKwYBBQUHAwEwDgYDVR0PAQH/ - - BAQDAgWgMA0GCSqGSIb3DQEBCwUAA4IBAQA6FpOInEHB5iVk3FP67GybJ29vHZTD - - KQHbQgmg8s4L7qIsA1HQ+DMCbdylpA11x+t/eL/n48BvGw2FNXpN6uykhLHJjbKR - - h8yITa2KeD3LjLYhScwIigXmTVYSP3km6s8jRL6UKT9zttnIHyXVpBDya6Q4WTMx - - fmfC6O7t1PjQ5ZyVtzizIUP8ah9n4TKdXU4A3QIM6WsJXpHb+vqp1WDWJ7mKFtgj - - x5TKv3wcPnktx0zMPfLb5BTSE9rc9djcBG0eIAsPT4FgiatCUChe7VhuMnqskxEz - - MymJLoq8+mzucRwFkOkR2EIt1x+Irl2mJVMeBow63rVZfUQBD8h++LqB - - -----END CERTIFICATE----- - - - -----BEGIN CERTIFICATE----- - - MIIEhDCCA2ygAwIBAgIDYFMXMA0GCSqGSIb3DQEBCwUAMGwxDDAKBgNVBAMMA2Fz - - ZDELMAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxCzAJBgNVBAcMAmFmMQ0wCwYD - - VQQKDARhc2RmMQwwCgYDVQQLDANhc2QxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w - - HhcNMjEwODMwMjMyMDQ1WhcNMzEwODI4MjMyMDQ1WjBsMQwwCgYDVQQDDANhc2Qx - - CzAJBgNVBAYTAlVTMQ0wCwYDVQQIDARhc2RmMQswCQYDVQQHDAJhZjENMAsGA1UE - - CgwEYXNkZjEMMAoGA1UECwwDYXNkMRYwFAYJKoZIhvcNAQkBFgdhQGEuY29tMIIB - - IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq//c0hEEr83CS1pMgsHX50jt - - 2MqIbcf63UUNJTiYpUUvUQSFJFc7m/dr+RTZvu97eDCnD5K2qkHHvTPaPZwY+Djf - - iy7N641Sz6u/y3Yo3xxs1Aermsfedh48vusJpjbkT2XS44VjbkrpKcWDNVpp3Evd - - M7oJotXeUsZ+imiyVCfr4YhoY5gbGh/r+KN9Wf9YKoUyfLLZGwdZkhtX2zIbidsL - - Thqi9YTaUHttGinjiBBum234u/CfvKXsfG3yP2gvBGnlvZnM9ktv+lVffYNqlf7H - - VmB1bKKk84HtzuW5X76SGAgOG8eHX4x5ZLI1WQUuoQOVRl1I0UCjBtbz8XhwvQID - - AQABo4IBLTCCASkwLQYDVR0RBCYwJIcEwKgABYcEwKgAA4cEwKgAkocEwKgAtYcE - - wKgAgYcEwKgAtjAdBgNVHQ4EFgQUuVh/0v32fEkNykIz8tPdXmFD9rcwDwYDVR0T - - AQH/BAUwAwEB/zCBmAYDVR0jBIGQMIGNgBS5WH/S/fZ8SQ3KQjPy091eYUP2t6Fw - - pG4wbDEMMAoGA1UEAwwDYXNkMQswCQYDVQQGEwJVUzENMAsGA1UECAwEYXNkZjEL - - MAkGA1UEBwwCYWYxDTALBgNVBAoMBGFzZGYxDDAKBgNVBAsMA2FzZDEWMBQGCSqG - - SIb3DQEJARYHYUBhLmNvbYIDYFMXMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF - - BQcDAjAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQELBQADggEBAKEocOmVuWlr - - zegtKYMe8NhHIkFY9oVn5ym6RHNOJpPH4QF8XYC3Z5+iC5yGh4P/jVe/4I4SF6Ql - - PtofU0jNq5vzapt/y+m008eXqPQFmoUOvu+JavoRVcRx2LIP5AgBA1mF56CSREsX - - TkuJAA9IUQ8EjnmAoAeKINuPaKxGDuU8BGCMqr/qd564MKNf9XYL+Fb2rlkA0O2d - - 2No34DQLgqSmST/LAvPM7Cbp6knYgnKmGr1nETCXasg1cueHLnWWTvps2HiPp2D/ - - +Fq0uqcZLu4Mdo0CPs4e5sHRyldEnRSKh0DVLprq9zr/GMipmPLJUsT5Jed3sj0w - - M7Y3vwxshpo= - - -----END CERTIFICATE-----' - certificate_path: /etc/certificates/slog3.crt - chain: true - chain_list: - - '-----BEGIN CERTIFICATE----- - - MIIEdjCCA16gAwIBAgIDYFMYMA0GCSqGSIb3DQEBCwUAMGwxDDAKBgNVBAMMA2Fz - - ZDELMAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxCzAJBgNVBAcMAmFmMQ0wCwYD - - VQQKDARhc2RmMQwwCgYDVQQLDANhc2QxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w - - HhcNMjEwODMwMjMyMzU0WhcNMjMxMjAzMjMyMzU0WjBuMQswCQYDVQQDDAJhZDEL - - MAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxDTALBgNVBAcMBGFzZGYxDTALBgNV - - BAoMBGFkc2YxDTALBgNVBAsMBGFzZGYxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w - - ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC7+1xOHRQyOnQTHFcrdasX - - Zl0gzutVlA890a1wiQpdD5dOtCLo7+eqVYjqVKo9W8RUIArXWmBu/AbkH7oVFWC1 - - P973W1+ArF5sA70f7BZgqRKJTIisuIFIlRETgfnP2pfQmHRZtGaIJRZI4vQCdYgW - - 2g0KOvvNcZJCVq1OrhKiNiY1bWCp66DGg0ic6OEkZFHTm745zUNQaf2dNgsxKU0H - - PGjVLJI//yrRFAOSBUqgD4c50krnMF7fU/Fqh+UyOu8t6Y/HsySh3urB+Zie331t - - AzV6QV39KKxRflNx/yuWrtIEslGTm+xHKoCYJEk/nZ3mX8Y5hG6wWAb7A/FuDVg3 - - AgMBAAGjggEdMIIBGTAnBgNVHREEIDAehwTAqAADhwTAqAAFhwTAqAC2hwTAqACB - - hwTAqACSMB0GA1UdDgQWBBQ4G2ff4tgZl4vmo4xCfqmJhdqShzAMBgNVHRMBAf8E - - AjAAMIGYBgNVHSMEgZAwgY2AFLlYf9L99nxJDcpCM/LT3V5hQ/a3oXCkbjBsMQww - - CgYDVQQDDANhc2QxCzAJBgNVBAYTAlVTMQ0wCwYDVQQIDARhc2RmMQswCQYDVQQH - - DAJhZjENMAsGA1UECgwEYXNkZjEMMAoGA1UECwwDYXNkMRYwFAYJKoZIhvcNAQkB - - FgdhQGEuY29tggNgUxcwFgYDVR0lAQH/BAwwCgYIKwYBBQUHAwEwDgYDVR0PAQH/ - - BAQDAgWgMA0GCSqGSIb3DQEBCwUAA4IBAQA6FpOInEHB5iVk3FP67GybJ29vHZTD - - KQHbQgmg8s4L7qIsA1HQ+DMCbdylpA11x+t/eL/n48BvGw2FNXpN6uykhLHJjbKR - - h8yITa2KeD3LjLYhScwIigXmTVYSP3km6s8jRL6UKT9zttnIHyXVpBDya6Q4WTMx - - fmfC6O7t1PjQ5ZyVtzizIUP8ah9n4TKdXU4A3QIM6WsJXpHb+vqp1WDWJ7mKFtgj - - x5TKv3wcPnktx0zMPfLb5BTSE9rc9djcBG0eIAsPT4FgiatCUChe7VhuMnqskxEz - - MymJLoq8+mzucRwFkOkR2EIt1x+Irl2mJVMeBow63rVZfUQBD8h++LqB - - -----END CERTIFICATE-----' - - '-----BEGIN CERTIFICATE----- - - MIIEhDCCA2ygAwIBAgIDYFMXMA0GCSqGSIb3DQEBCwUAMGwxDDAKBgNVBAMMA2Fz - - ZDELMAkGA1UEBhMCVVMxDTALBgNVBAgMBGFzZGYxCzAJBgNVBAcMAmFmMQ0wCwYD - - VQQKDARhc2RmMQwwCgYDVQQLDANhc2QxFjAUBgkqhkiG9w0BCQEWB2FAYS5jb20w - - HhcNMjEwODMwMjMyMDQ1WhcNMzEwODI4MjMyMDQ1WjBsMQwwCgYDVQQDDANhc2Qx - - CzAJBgNVBAYTAlVTMQ0wCwYDVQQIDARhc2RmMQswCQYDVQQHDAJhZjENMAsGA1UE - - CgwEYXNkZjEMMAoGA1UECwwDYXNkMRYwFAYJKoZIhvcNAQkBFgdhQGEuY29tMIIB - - IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq//c0hEEr83CS1pMgsHX50jt - - 2MqIbcf63UUNJTiYpUUvUQSFJFc7m/dr+RTZvu97eDCnD5K2qkHHvTPaPZwY+Djf - - iy7N641Sz6u/y3Yo3xxs1Aermsfedh48vusJpjbkT2XS44VjbkrpKcWDNVpp3Evd - - M7oJotXeUsZ+imiyVCfr4YhoY5gbGh/r+KN9Wf9YKoUyfLLZGwdZkhtX2zIbidsL - - Thqi9YTaUHttGinjiBBum234u/CfvKXsfG3yP2gvBGnlvZnM9ktv+lVffYNqlf7H - - VmB1bKKk84HtzuW5X76SGAgOG8eHX4x5ZLI1WQUuoQOVRl1I0UCjBtbz8XhwvQID - - AQABo4IBLTCCASkwLQYDVR0RBCYwJIcEwKgABYcEwKgAA4cEwKgAkocEwKgAtYcE - - wKgAgYcEwKgAtjAdBgNVHQ4EFgQUuVh/0v32fEkNykIz8tPdXmFD9rcwDwYDVR0T - - AQH/BAUwAwEB/zCBmAYDVR0jBIGQMIGNgBS5WH/S/fZ8SQ3KQjPy091eYUP2t6Fw - - pG4wbDEMMAoGA1UEAwwDYXNkMQswCQYDVQQGEwJVUzENMAsGA1UECAwEYXNkZjEL - - MAkGA1UEBwwCYWYxDTALBgNVBAoMBGFzZGYxDDAKBgNVBAsMA2FzZDEWMBQGCSqG - - SIb3DQEJARYHYUBhLmNvbYIDYFMXMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF - - BQcDAjAOBgNVHQ8BAf8EBAMCAQYwDQYJKoZIhvcNAQELBQADggEBAKEocOmVuWlr - - zegtKYMe8NhHIkFY9oVn5ym6RHNOJpPH4QF8XYC3Z5+iC5yGh4P/jVe/4I4SF6Ql - - PtofU0jNq5vzapt/y+m008eXqPQFmoUOvu+JavoRVcRx2LIP5AgBA1mF56CSREsX - - TkuJAA9IUQ8EjnmAoAeKINuPaKxGDuU8BGCMqr/qd564MKNf9XYL+Fb2rlkA0O2d - - 2No34DQLgqSmST/LAvPM7Cbp6knYgnKmGr1nETCXasg1cueHLnWWTvps2HiPp2D/ - - +Fq0uqcZLu4Mdo0CPs4e5sHRyldEnRSKh0DVLprq9zr/GMipmPLJUsT5Jed3sj0w - - M7Y3vwxshpo= - - -----END CERTIFICATE-----' - city: asdf - common: ad - country: US - csr_path: /etc/certificates/slog3.csr - digest_algorithm: SHA256 - email: a@a.com - extensions: - AuthorityKeyIdentifier: 'keyid:B9:58:7F:D2:FD:F6:7C:49:0D:CA:42:33:F2:D3:DD:5E:61:43:F6:B7 - - DirName:/CN=asd/C=US/ST=asdf/L=af/O=asdf/OU=asd/emailAddress=a@a.com - - serial:60:53:17 - - ' - BasicConstraints: CA:FALSE - ExtendedKeyUsage: TLS Web Server Authentication - KeyUsage: Digital Signature, Key Encipherment - SubjectAltName: IP Address:192.168.0.3, IP Address:192.168.0.5, IP Address:192.168.0.182, - IP Address:192.168.0.129, IP Address:192.168.0.146 - SubjectKeyIdentifier: 38:1B:67:DF:E2:D8:19:97:8B:E6:A3:8C:42:7E:A9:89:85:DA:92:87 - fingerprint: 59:7A:49:6D:04:CE:70:E5:AF:9A:FB:75:3C:26:58:7D:B7:8E:A6:9D - from: Tue Aug 31 04:23:54 2021 - id: 55 - internal: 'NO' - issuer: external - key_length: 2048 - key_type: RSA - lifetime: 825 - name: slog3 - organization: adsf - organizational_unit: asdf - parsed: true - privatekey: '-----BEGIN PRIVATE KEY----- - - MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQC7+1xOHRQyOnQT - - HFcrdasXZl0gzutVlA890a1wiQpdD5dOtCLo7+eqVYjqVKo9W8RUIArXWmBu/Abk - - H7oVFWC1P973W1+ArF5sA70f7BZgqRKJTIisuIFIlRETgfnP2pfQmHRZtGaIJRZI - - 4vQCdYgW2g0KOvvNcZJCVq1OrhKiNiY1bWCp66DGg0ic6OEkZFHTm745zUNQaf2d - - NgsxKU0HPGjVLJI//yrRFAOSBUqgD4c50krnMF7fU/Fqh+UyOu8t6Y/HsySh3urB - - +Zie331tAzV6QV39KKxRflNx/yuWrtIEslGTm+xHKoCYJEk/nZ3mX8Y5hG6wWAb7 - - A/FuDVg3AgMBAAECggEAapt30rj9DitGTtxAt13pJMEhyYxvvD3WkvmJwguF/Bbu - - eW0Ba1c668fMeRCA54FWi1sMqusPS4HUqqUvk+tmyAOsAF4qgD/A4MMSC7uJSVI5 - - N/JWhJWyhCY94/FPakiO1nbPbVw41bcqtzU2qvparpME2CtxSCbDiqm7aaag3Kqe - - EF0fGSUdZ+TYl9JM05+eIyiX+UY19Fg0OjTHMn8nGpxcNTfDBdQ68TKvdo/dtIKL - - PLKzJUNNdM8odC4CvQtfGMqaslwZwXkiOl5VJcW21ncj/Y0ngEMKeD/i65ZoqGdR - - 0FKCQYEAGtM2FvJcZQ92Wsw7yj2bK2MSegVUyLK32QKBgQDe8syVCepPzRsfjfxA - - 6TZlWcGuTZLhwIx97Ktw3VcQ1f4rLoEYlv0xC2VWBORpzIsJo4I/OLmgp8a+Ga8z - - FkVRnq90dV3t4NP9uJlHgcODHnOardC2UUka4olBSCG6zmK4Jxi34lOxhGRkshOo - - L4IBeOIB5g+ZrEEXkzfYJHESRQKBgQDX2YhFhGIrT8BAnC5BbXbhm8h6Bhjz8DYL - - d+qhVJjef7L/aJxViU0hX9Ba2O8CLK3FZeREFE3hJPiJ4TZSlN4evxs5p+bbNDcA - - 0mhRI/o3X4ac6IxdRebyYnCOB/Cu94/MzppcZcotlCekKNike7eorCcX4Qavm7Pu - - MUuQ+ifmSwKBgEnchoqZzlbBzMqXb4rRuIO7SL9GU/MWp3TQg7vQmJerTZlgvsQ2 - - wYsOC3SECmhCq4117iCj2luvOdihCboTFsQDnn0mpQe6BIF6Ns3J38wAuqv0CcFd - - DKsrge1uyD3rQilgSoAhKzkUc24o0PpXQurZ8YZPgbuXpbj5vPaOnCdBAoGACYc7 - - wb3XS4wos3FxhUfcwJbM4b4VKeeHqzfu7pI6cU/3ydiHVitKcVe2bdw3qMPqI9Wc - - nvi6e17Tbdq4OCsEJx1OiVwFD9YdO3cOTc6lw/3+hjypvZBRYo+/4jUthbu96E+S - - dtOzehGZMmDvN0uSzupSi3ZOgkAAUFpyuIKickMCgYAId0PCRjonO2thn/R0rZ7P - - //L852uyzYhXKw5/fjFGhQ6LbaLgIRFaCZ0L2809u0HFnNvJjHv4AKP6j+vFQYYY - - qQ+66XnfsA9G/bu4MDS9AX83iahD9IdLXQAy8I19prAbpVumKegPbMnNYNB/TYEc - - 3G15AKCXo7jjOUtHY01DCQ== - - -----END PRIVATE KEY-----' - privatekey_path: /etc/certificates/slog3.key - revoked: false - revoked_date: null - root_path: /etc/certificates - san: - - IP Address:192.168.0.3 - - IP Address:192.168.0.5 - - IP Address:192.168.0.182 - - IP Address:192.168.0.129 - - IP Address:192.168.0.146 - serial: 6312728 - signedby: null - state: asdf - subject_name_hash: 1673640987 - type: 8 - until: Mon Dec 4 04:23:54 2023 -ixChartContext: - isInstall: false - isUpdate: true - isUpgrade: false - operation: UPDATE - storageClassName: ix-storage-class-col - upgradeMetadata: {} -ixExternalInterfacesConfiguration: [] -ixExternalInterfacesConfigurationNames: [] -ixVolumes: [] -nginx: - image: - pullPolicy: IfNotPresent - repository: nginx - tag: 1.21.3 -nodePort: 31980 diff --git a/test/collabora/item.yaml b/test/collabora/item.yaml deleted file mode 100644 index 1e6ded9124..0000000000 --- a/test/collabora/item.yaml +++ /dev/null @@ -1,5 +0,0 @@ -categories: - - office - - documents - - productivity -icon_url: https://avatars.githubusercontent.com/u/22418908?s=200&v=4 diff --git a/test/collabora/upgrade_info.json b/test/collabora/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/test/collabora/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/test/collabora/upgrade_strategy_disabled b/test/collabora/upgrade_strategy_disabled deleted file mode 100755 index 26b1870b43..0000000000 --- a/test/collabora/upgrade_strategy_disabled +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/python3 -import json -import sys - -from catalog_update.upgrade_strategy import semantic_versioning - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - version = semantic_versioning(sorted(image_tags[key], reverse=True)) - if not version: - return {} - - return { - 'tags': {key: version}, - 'app_version': version, - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/diskoverdata/1.0.4/Chart.lock b/test/diskoverdata/1.0.4/Chart.lock deleted file mode 100644 index 79a866f92f..0000000000 --- a/test/diskoverdata/1.0.4/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:48.080698555+05:00" diff --git a/test/diskoverdata/1.0.4/Chart.yaml b/test/diskoverdata/1.0.4/Chart.yaml deleted file mode 100644 index 761ea59a17..0000000000 --- a/test/diskoverdata/1.0.4/Chart.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v2 -appVersion: "2.0.1" -icon: http://www.diskoverdata.com/wp-content/uploads/2019/09/diskover.png -description: Diskover is used to monitor size/volumes of distributed dataset. -name: diskoverdata -version: 1.0.4 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -home: https://github.com/diskoverdata/diskover-community/ -keywords: -- storage -- monitoring -- management -sources: -- https://github.com/diskoverdata/diskover-community/ diff --git a/test/diskoverdata/1.0.4/README.md b/test/diskoverdata/1.0.4/README.md deleted file mode 100644 index efc6e80942..0000000000 --- a/test/diskoverdata/1.0.4/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# DiskOverData - -DiskOver App for TrueNAS SCALE - -[Diskover](https://www.diskoverdata.com/) is a sustainable file management solution for your distributed data. - -# Introduction - -This chart is based on [diskoverdata](https://hub.docker.com/r/linuxserver/diskover) and -deployed on kubernetes via helm chart - -## Configuration - -Please refer to questions.yaml for a detailed overview on supported configurable values. diff --git a/test/diskoverdata/1.0.4/app-readme.md b/test/diskoverdata/1.0.4/app-readme.md deleted file mode 100644 index 189190698d..0000000000 --- a/test/diskoverdata/1.0.4/app-readme.md +++ /dev/null @@ -1 +0,0 @@ -DiskOver App for TrueNAS SCALE diff --git a/test/diskoverdata/1.0.4/charts/common-2207.0.0.tgz b/test/diskoverdata/1.0.4/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/diskoverdata/1.0.4/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/diskoverdata/1.0.4/ix_values.yaml b/test/diskoverdata/1.0.4/ix_values.yaml deleted file mode 100644 index c79cb3020f..0000000000 --- a/test/diskoverdata/1.0.4/ix_values.yaml +++ /dev/null @@ -1,18 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: linuxserver/diskover - tag: "2.0.1" - -elasticsearch: - image: - pullPolicy: IfNotPresent - repository: docker.elastic.co/elasticsearch/elasticsearch - tag: "7.5.2" - -python: - image: - pullPolicy: IfNotPresent - repository: python - tag: "3.10" - -es_user: elasticsearch diff --git a/test/diskoverdata/1.0.4/questions.yaml b/test/diskoverdata/1.0.4/questions.yaml deleted file mode 100644 index c30285208f..0000000000 --- a/test/diskoverdata/1.0.4/questions.yaml +++ /dev/null @@ -1,322 +0,0 @@ -groups: - - name: "Configuration" - description: "Diskover application configuration" - - name: "Storage" - description: "Configure storage for Diskover" - - name: "Networking" - description: "Networking Configuration for Diskover" - - name: "Advanced DNS Settings" - description: "Configure DNS settings" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - -portals: - web_portal: - protocols: - - "http" - host: - - "$node_ip" - ports: - - "$variable-web_port" - path: "/" - -questions: - - variable: web_port - label: "Web Port for Diskover" - group: Networking - schema: - type: int - min: 8000 - max: 65535 - default: 22510 - required: true - - - variable: timezone - label: "Configure timezone" - group: "Configuration" - description: "Configure timezone for Diskover" - schema: - type: string - $ref: - - "definitions/timezone" - - - variable: dnsConfig - label: "DNS Configuration" - group: "Advanced DNS Settings" - schema: - type: dict - attrs: - - variable: options - label: "DNS Options" - schema: - type: list - items: - - variable: optionsEntry - label: "Option Entry Configuration" - schema: - type: dict - attrs: - - variable: name - label: "Option Name" - schema: - type: string - required: true - - variable: value - label: "Option Value" - schema: - type: string - required: true - - - variable: ownerUID - label: "Config folder's user id" - description: "Linuxserver uses this user id to configure config's folders permissions" - group: Configuration - schema: - type: int - default: 568 - min: 1 - max: 65535 - - - variable: ownerGID - label: "Config folder's group id" - description: "Linuxserver uses this group id to configure config's folders permissions" - group: Configuration - schema: - type: int - default: 568 - min: 1 - max: 65535 - - - variable: diskoverCredentials - description: "Configure Diskover Initial Password" - label: "Configure Diskover Initial Username and password" - group: "Configuration" - schema: - type: dict - required: true - additional_attrs: true - attrs: - - variable: username - label: "Username" - description: "UserName for Diskover User" - schema: - type: string - default: "admin" - required: true - - variable: password - label: "Password" - description: "Initial Password for Diskover User" - schema: - type: string - private: true - default: "changeme" - required: true - - - variable: environmentVariables - label: "Diskover Extra Environment" - group: "Configuration" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: cronjobSchedule - description: "Cronjobs Consist on 5 values in this specific format 'Minute Hour Day Month Week'" - label: "Define cronjob schedule for diskover" - group: "Configuration" - schema: - type: string - default: "0 3 * * *" - - - variable: appVolumeMounts - label: "Diskover Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: config - label: "Storage Volume for Configuration" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Storage Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-config" - editable: false - - variable: mountPath - label: "Configuration Storage Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/config" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Diskover Configuration Storage Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Diskover Configuration Storage Volume" - schema: - type: hostpath - required: true - - variable: data - label: "Storage Volume for Data" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Storage Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-data" - editable: false - - variable: mountPath - label: "Configuration Storage Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/data" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Diskover Data folder to monitor" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Diskover Data folder to monitor" - schema: - type: hostpath - required: true - - - variable: extraDataVolumeMounts - label: "Add Extra Host Paths For Diskover To Monitor" - group: "Storage" - schema: - type: list - items: - - variable: dataAppVolume - label: "Host Path Volume" - description: "Add extra Data Volumes for diskover to monitor" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - - variable: extraAppVolumeMounts - label: "Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Host Path Volume" - description: "Add an extra host path volume for Diskover application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - - variable: elasticSearchAppVolumeMounts - label: "elastic search Storage" - group: "Storage" - schema: - type: dict - hidden: true - attrs: - - variable: esdata - label: "Storage Volume for Configuration" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Storage Volume Dataset Name" - schema: - type: string - $ref: - - "normalize/ixVolume" - default: "ix-elasticsearch-data" - editable: false - - variable: mountPath - label: "Configuration Storage Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - editable: false - default: "/usr/share/elasticsearch/data" - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/test/diskoverdata/1.0.4/templates/_diskover.tpl b/test/diskoverdata/1.0.4/templates/_diskover.tpl deleted file mode 100644 index 12efc486ab..0000000000 --- a/test/diskoverdata/1.0.4/templates/_diskover.tpl +++ /dev/null @@ -1,35 +0,0 @@ -{{- define "add.user" -}} - {{- $user := .Values.es_user -}} - {{- printf "adduser %s -D;" $user -}} -{{- end -}} - - -{{- define "change.user.permissions" -}} - {{- $user := .Values.es_user -}} - {{- $mountPath := .Values.elasticSearchAppVolumeMounts.esdata.mountPath -}} - {{- printf "chown -R %s:%s %s;" $user $user $mountPath -}} -{{- end -}} - - -{{- define "elasticsearch.IP" -}} - {{ $envList := (default list) }} - {{ $envList = mustAppend $envList (dict "name" "ES_HOST" "value" (printf "%s" (include "common.names.fullname" .))) }} - {{ $envList = mustAppend $envList (dict "name" "ES_PORT" "value" "9200") }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) }} -{{- end -}} - - -{{- define "elasticsearch.credentials" -}} - {{ $envList := (default list) }} - {{ $envList = mustAppend $envList (dict "name" "ES_USER" "valueFromSecret" true "secretName" "elastic-search-credentials" "secretKey" "es-username") }} - {{ $envList = mustAppend $envList (dict "name" "ES_PASS" "valueFromSecret" true "secretName" "elastic-search-credentials" "secretKey" "es-password") }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) }} -{{- end -}} - - -{{- define "config.file.path" -}} - {{ $envList := (default list) }} - {{ $envList = mustAppend $envList (dict "name" "DEST" "value" .mountPath) }} - {{ $envList = mustAppend $envList (dict "name" "FILE" "value" .configFile) }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) }} -{{- end -}} diff --git a/test/diskoverdata/1.0.4/templates/deployment.yaml b/test/diskoverdata/1.0.4/templates/deployment.yaml deleted file mode 100644 index 08117a0bee..0000000000 --- a/test/diskoverdata/1.0.4/templates/deployment.yaml +++ /dev/null @@ -1,133 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -{{ $elastic_search := (. | mustDeepCopy) }} -{{ $_ := set $elastic_search "common" (dict "nameSuffix" "elasticsearch") }} - -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - chart: {{ template "common.names.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} - annotations: - rollme: {{ randAlphaNum 5 | quote }} -spec: - replicas: {{ (default 1 .Values.replicas) }} - strategy: - type: "Recreate" - selector: - matchLabels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - {{- include "common.labels.selectorLabels" . | nindent 8 }} - annotations: {{ include "common.annotations" . | nindent 8 }} - spec: - initContainers: - - name: init-config - {{ include "common.containers.imageConfig" .Values.python.image | nindent 10 }} - command: ["python3", "/init_scripts/init_config.py"] - env: - {{ $envList := (default list .Values.environmentVariables) }} - {{ $envList = mustAppend $envList (dict "name" "TZ" "value" .Values.timezone) }} - {{ $envList = mustAppend $envList (dict "name" "DS_USER" "valueFromSecret" true "secretName" "diskover-credentials" "secretKey" "username") }} - {{ $envList = mustAppend $envList (dict "name" "DS_PASS" "valueFromSecret" true "secretName" "diskover-credentials" "secretKey" "password") }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} - {{ include "elasticsearch.IP" $elastic_search | nindent 12 }} - {{ include "elasticsearch.credentials" . | nindent 12 }} - {{ $configPath := (dict "mountPath" (printf "%s/diskover-web.conf.d/" .Values.appVolumeMounts.config.mountPath) "configFile" "Constants.php") }} - {{ include "config.file.path" $configPath | nindent 12 }} - - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - - name: diskover-initial-scripts - mountPath: /init_scripts/ - - name: wait-es-search - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - env: - {{ include "elasticsearch.IP" $elastic_search | nindent 12 }} - command: ["python3", "/init_scripts/wait_for_elastic_search.py"] - - volumeMounts: - - name: diskover-initial-scripts - mountPath: /init_scripts/ - - name: init-es-config - {{ include "common.containers.imageConfig" .Values.python.image | nindent 10 }} - command: ["python3", "/init_scripts/initial_es_config.py"] - env: - {{ $envListConfig := (default list .Values.environmentVariables) }} - {{ include "elasticsearch.IP" $elastic_search | nindent 12 }} - {{ include "elasticsearch.credentials" . | nindent 12 }} - {{ $configPathES := (dict "mountPath" (printf "%s/diskover.conf.d/diskover/" .Values.appVolumeMounts.config.mountPath) "configFile" "config.yaml") }} - {{ include "config.file.path" $configPathES | nindent 12 }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envListConfig) | nindent 12 }} - - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - - name: diskover-initial-scripts - mountPath: /init_scripts/ - - containers: - - name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 10 }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - - name: diskover-initial-scripts - mountPath: /init_scripts/ - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - {{ range $index, $hostPathConfiguration := .Values.extraDataVolumeMounts }} - - name: extradatavolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - - ports: - - name: web - containerPort: 80 - {{ $cronjobSchedule := .Values.cronjobSchedule }} - lifecycle: - postStart: - exec: - command: - - /bin/sh - - -c - - | - ./init_scripts/.default_crawler.sh /app/diskover/diskover.py /data; - {{ range $index, $hostPathConfiguration := .Values.extraDataVolumeMounts }} - ./init_scripts/.default_crawler.sh /app/diskover/diskover.py {{ $hostPathConfiguration.mountPath }}; - {{ end }} - {{ range $index, $hostPathConfiguration := .Values.extraDataVolumeMounts }} - echo "{{$cronjobSchedule}} python3 /app/diskover/diskover.py {{ $hostPathConfiguration.mountPath }}" >> /config/crontab; - {{ end }} - echo "{{.Values.cronjobSchedule}} python3 /app/diskover/diskover.py /data" >> /config/crontab; - crontab /config/crontab; - env: - {{ $envListDiskover := (default list .Values.environmentVariables) }} - {{ $envListDiskover = mustAppend $envListDiskover (dict "name" "PUID" "value" .Values.ownerUID) }} - {{ $envListDiskover = mustAppend $envListDiskover (dict "name" "PGID" "value" .Values.ownerGID) }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envListDiskover) | nindent 12 }} - -{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} - {{ range $index, $hostPathConfiguration := .Values.extraDataVolumeMounts }} - - name: extradatavolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} - - - name: diskover-initial-scripts - configMap: - defaultMode: 0700 - name: "diskover-initial-scripts" diff --git a/test/diskoverdata/1.0.4/templates/diskover-secrets.yaml b/test/diskoverdata/1.0.4/templates/diskover-secrets.yaml deleted file mode 100644 index e1dfb1010b..0000000000 --- a/test/diskoverdata/1.0.4/templates/diskover-secrets.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: diskover-credentials - labels: {{ include "common.labels" . | nindent 4 }} -type: Opaque -data: - username: {{ .Values.diskoverCredentials.username | b64enc | quote }} - password: {{ .Values.diskoverCredentials.password | b64enc | quote }} diff --git a/test/diskoverdata/1.0.4/templates/elastic_search_deployment.yaml b/test/diskoverdata/1.0.4/templates/elastic_search_deployment.yaml deleted file mode 100644 index 8dfc96fe73..0000000000 --- a/test/diskoverdata/1.0.4/templates/elastic_search_deployment.yaml +++ /dev/null @@ -1,20 +0,0 @@ -{{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" "elasticsearch") }} -{{ include "common.deployment.common_config" $values | nindent 0 }} -spec: {{ include "common.deployment.common_spec" $values | nindent 2 }} - template: {{ include "common.deployment.pod.metadata" $values | nindent 4 }} - spec: - containers: - - name: {{ .Chart.Name }} - {{ include "common.containers.imageConfig" .Values.elasticsearch.image | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" (dict "appVolumeMounts" .Values.elasticSearchAppVolumeMounts ) | nindent 12 }} - ports: - - name: es-port - containerPort: 9200 - env: - {{ $envList := (default list .Values.environmentVariables) }} - {{ $envList = mustAppend $envList (dict "name" "discovery.type" "value" "single-node") }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} - -{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} - volumes: {{ include "common.storage.configureAppVolumes" (dict "appVolumeMounts" .Values.elasticSearchAppVolumeMounts "emptyDirVolumes" .Values.emptyDirVolumes "ixVolumes" .Values.ixVolumes) | nindent 8 }} diff --git a/test/diskoverdata/1.0.4/templates/elastic_search_service.yaml b/test/diskoverdata/1.0.4/templates/elastic_search_service.yaml deleted file mode 100644 index 99a33d28bf..0000000000 --- a/test/diskoverdata/1.0.4/templates/elastic_search_service.yaml +++ /dev/null @@ -1,6 +0,0 @@ -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "es-port" "port" 9200 "targetPort" 9200) }} -{{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" "elasticsearch") }} -{{ $_1 := set $values "commonService" (dict "type" "ClusterIP" "ports" $ports ) }} -{{ include "common.classes.service" $values }} diff --git a/test/diskoverdata/1.0.4/templates/elasticsearch-secret.yaml b/test/diskoverdata/1.0.4/templates/elasticsearch-secret.yaml deleted file mode 100644 index bb82255889..0000000000 --- a/test/diskoverdata/1.0.4/templates/elasticsearch-secret.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: elastic-search-credentials - labels: {{ include "common.labels" . | nindent 4 }} -type: Opaque -data: - es-username: {{ "elastic" | b64enc | quote }} - es-password: {{ "changeme" | b64enc | quote }} diff --git a/test/diskoverdata/1.0.4/templates/initial_scripts.yaml b/test/diskoverdata/1.0.4/templates/initial_scripts.yaml deleted file mode 100644 index f5edb47ea4..0000000000 --- a/test/diskoverdata/1.0.4/templates/initial_scripts.yaml +++ /dev/null @@ -1,270 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: "diskover-initial-scripts" - annotations: - rollme: {{ randAlphaNum 5 | quote }} - -data: - wait_for_elastic_search.py: |- - # This Script Wait for elastic search to setup completely - import requests - import os - import time - timeout = 100 - while True: - try: - if timeout < 0: - print("timeout") - raise requests.exceptions.ConnectTimeout("Elasticsearch is not responding") - timeout -= 1 - response = requests.get(f"http://{os.environ['ES_HOST']}:{os.environ['ES_PORT']}") - if response.status_code == 200: - break - except requests.exceptions.ConnectTimeout as e: - print(e) - break - except requests.exceptions.ConnectionError: - print("Trying to connect to elastic search") - time.sleep(3) - - - .default_crawler.sh: |- - #!/bin/sh - while : - do - # this condition wait for the script to copy into the container . - if test -f "$1"; then - # Empty folders don't generate indices . if folder is empty a default file is generated - if ! [ "$(ls -A $2)" ]; then - echo "Dummy file created as empty dirs are rejected" > $2/diskover_test.txt; - fi - python3 $1 $2/; - break; - fi - sleep 5 - - done - - init_config.py: |- - import os - Config = f""" ['doc', 'docx', 'odt', 'pdf', 'tex', 'wpd', 'wks', 'txt', 'rtf', 'key', 'odp', 'pps', 'ppt', 'pptx', 'ods', 'xls', 'xlsm', 'xlsx'], - 'images' => ['ai', 'bmp', 'gif', 'ico', 'jpeg', 'jpg', 'png', 'ps', 'psd', 'psp', 'svg', 'tif', 'tiff', 'exr', 'tga'], - 'video' => ['3g2', '3gp', 'avi', 'flv', 'h264', 'm4v', 'mkv', 'qt', 'mov', 'mp4', 'mpg', 'mpeg', 'rm', 'swf', 'vob', 'wmv', 'ogg', 'ogv', 'webm'], - 'audio' => ['au', 'aif', 'aiff', 'cda', 'mid', 'midi', 'mp3', 'm4a', 'mpa', 'ogg', 'wav', 'wma', 'wpl'], - 'apps' => ['apk', 'exe', 'bat', 'bin', 'cgi', 'pl', 'gadget', 'com', 'jar', 'msi', 'py', 'wsf'], - 'programming' => ['c', 'cgi', 'pl', 'class', 'cpp', 'cs', 'h', 'java', 'php', 'py', 'sh', 'swift', 'vb'], - 'internet' => ['asp', 'aspx', 'cer', 'cfm', 'cgi', 'pl', 'css', 'htm', 'html', 'js', 'jsp', 'part', 'php', 'py', 'rss', 'xhtml'], - 'system' => ['bak', 'cab', 'cfg', 'cpl', 'cur', 'dll', 'dmp', 'drv', 'icns', 'ico', 'ini', 'lnk', 'msi', 'sys', 'tmp', 'vdi', 'raw'], - 'data' => ['csv', 'dat', 'db', 'dbf', 'log', 'mdb', 'sav', 'sql', 'tar', 'xml'], - 'disc' => ['bin', 'dmg', 'iso', 'toast', 'vcd', 'img'], - 'compressed' => ['7z', 'arj', 'deb', 'pkg', 'rar', 'rpm', 'tar', 'gz', 'z', 'zip'], - 'trash' => ['old', 'trash', 'tmp', 'temp', 'junk', 'recycle', 'delete', 'deleteme', 'clean', 'remove'] - ]; - - // extra fields for search results and view file/dir info pages - // key is description for field and value is ES field name - // Example: - //const EXTRA_FIELDS = [ - // 'Date Changed' => 'ctime' - //]; - const EXTRA_FIELDS = []; - - // Maximum number of indices to load by default, indices are loaded in order by creation date - // setting this too high can cause slow logins and other timeout issues - // This setting can bo overridden on indices page per user and stored in maxindex cookie - // If MAX_INDEX is set higher than maxindex browser cookie, the cookie will be set to this value - const MAX_INDEX = 250; - - // time in seconds for index info to be cached, clicking reload indices forces update - const INDEXINFO_CACHETIME = 600; - - // time in seconds to check Elasticsearch for new index info - const NEWINDEX_CHECKTIME = 10; - - // sqlite database file path - const DATABASE = '../diskoverdb.sqlite3'; - }}`}} - - """ - - os.makedirs(os.environ['DEST'], exist_ok=True) - path = os.path.join(os.environ['DEST'], os.environ['FILE']) - with open(path, 'w') as w: - w.write(Config) - - - initial_es_config.py: |- - import os - Config = f"""# diskover default/sample config file - # - # default search paths for config - # macOS: ~/.config/diskover and ~/Library/Application Support/diskover - # Other Unix: ~/.config/diskover and /etc/diskover - # Windows: %APPDATA%\diskover where the APPDATA environment variable falls back to %HOME%\AppData\Roaming if undefined - # - appName: diskover - #logLevel: WARN - #logLevel: DEBUG - logLevel: INFO - logToFile: False - #logToFile: True - logDirectory: /tmp/ - - diskover: - # max number of crawl threads - # a thread is created up to maxthreads for each directory at level 1 of tree dir arg - # set to a number or leave blank to auto set based on number of cpus - #maxthreads: 20 - maxthreads: - # block size used for du size - blocksize: 512 - excludes: - # directory names and absolute paths you want to exclude from crawl - # directory excludes uses python re.search for string search (regex) - # directory excludes are case-sensitive - # Examples: .* or .backup or .backup* or /dir/dirname - # to exclude none use empty list [] - dirs: [".*", ".snapshot", ".Snapshot", "~snapshot", "~Snapshot", ".zfs"] - #dirs: [] - # files you want to exclude from crawl - # can include wildcards (.*, *.doc or NULLEXT for files with no extension) - # file names are case-sensitive, extensions are not - files: [".*", "Thumbs.db", ".DS_Store", "._.DS_Store", ".localized", "desktop.ini"] - #files: [] - # exclude empty 0 byte files, set to True to exclude empty files or False to not exclude - emptyfiles: True - # exclude empty dirs, set to True to exclude empty dirs or False to not exclude - emptydirs: True - # exclude files smaller than min size in bytes - minfilesize: 1 - #minfilesize: 512 - # exclude files modified less than x days ago - minmtime: 0 - #minmtime: 30 - # exclude files modified more than x days ago - maxmtime: 36500 - # exclude files changed less than x days ago - minctime: 0 - # exclude files changed more than x days ago - maxctime: 36500 - # exclude files accessed less than x days ago - minatime: 0 - # exclude files accessed more than x days ago - maxatime: 36500 - includes: - # directory names and absolute paths you want to include (whitelist), case-sensitive, - # to include none use empty list [] - #dirs: [".recycle"] - dirs: [] - # files you want to include (whitelist), case-sensitive - files: [] - ownersgroups: - # control how owner (username) and group fields are stored for file and directory docs - # store uid and gid's instead of trying to get owner and group names - uidgidonly: False - # owner/group names contain domain name set to True - domain: False - # character separator used on cifs/nfs mounts to separte user/group and domain name, usually \ or @ - domainsep: \ - # if domain name comes first before character separator, set this to True, otherwise False - domainfirst: True - # when indexing owner and group fields, keep the domain name - keepdomain: False - replacepaths: - # translate path names set to True to enable or False to disable. - # Set to True if crawling in Windows to replace drive letters and \ with / - replace: False - #from: /mnt/ - #to: /vols/ - from: - to: - plugins: - # set to True to enable all plugins or False to disable all plugins - enable: False - # list of plugins (by name) to use for directories - dirs: ['unixperms'] - # list of plugins (by name) to use for files - files: ['unixperms'] - other: - # restore atime/mtime for files and dirs during crawl - # set to True or False, default False (useful for cifs which does not work with noatime mount option) - # for nfs, it's preferable to use mount options ro,noatime,nodiratime - restoretimes: False - - databases: - elasticsearch: - host: '{os.environ['ES_HOST']}' - port: {os.environ['ES_PORT']} - #user: elastic - #password: changeme - user: '{os.environ['ES_USER']}' - password: '{os.environ['ES_PASS']}' - # set https to True if using HTTP TLS/SSL or False if using http - # for AWS ES, you will most likely want to set this to True - # override with env var ES_HTTPS - https: False - # compress http data - # for AWS ES, you will most likely want to set this to True - httpcompress: False - # timeout for connection to ES (default is 10) - timeout: 30 - # number of connections kept open to ES when crawling (default is 10) - maxsize: 20 - # max retries for ES operations (default is 0) - maxretries: 10 - # wait for at least yellow status before bulk uploading (default is False), set to True if you want to wait - wait: False - # chunk size for ES bulk operations (default is 500) - chunksize: 1000 - # the below settings are to optimize ES for crawling - # index refresh interval (default is 1s), set to -1 to disable refresh during crawl (fastest performance but no index searches), after crawl is set back to 1s - indexrefresh: 30s - # transaction log flush threshold size (default 512mb) - translogsize: 1gb - # transaction log sync interval time (default 5s) - translogsyncint: 30s - # search scroll size (default 100 docs) - scrollsize: 1000 - """ - - os.makedirs(os.environ['DEST'], exist_ok=True) - path = os.path.join(os.environ['DEST'], os.environ['FILE']) - - with open(path, 'w') as w: - w.write(Config) diff --git a/test/diskoverdata/1.0.4/templates/pre-install-job.yaml b/test/diskoverdata/1.0.4/templates/pre-install-job.yaml deleted file mode 100644 index ef2e8691c4..0000000000 --- a/test/diskoverdata/1.0.4/templates/pre-install-job.yaml +++ /dev/null @@ -1,31 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-job" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} - helm.sh/chart: {{ template "common.names.chart" . }} - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-delete-policy": hook-succeeded -spec: - template: - metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-hook" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - helm.sh/chart: {{ template "common.names.chart" . }} - spec: - restartPolicy: Never - containers: - - name: pre-install-job - image: "alpine:latest" - command: ["/bin/sh", "-c"] - args: - - {{ include "add.user" . }} - {{ include "change.user.permissions" . }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" (dict "appVolumeMounts" .Values.elasticSearchAppVolumeMounts ) | nindent 12 }} - volumes: {{ include "common.storage.configureAppVolumes" (dict "appVolumeMounts" .Values.elasticSearchAppVolumeMounts "emptyDirVolumes" .Values.emptyDirVolumes "ixVolumes" .Values.ixVolumes) | nindent 8 }} diff --git a/test/diskoverdata/1.0.4/templates/service.yaml b/test/diskoverdata/1.0.4/templates/service.yaml deleted file mode 100644 index ee91e81309..0000000000 --- a/test/diskoverdata/1.0.4/templates/service.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{{ $svc := .Values.service }} -{{ $selectors := list }} -{{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }} -{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "web" "port" .Values.web_port "nodePort" .Values.web_port "targetPort" 80) }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{ $_1 := set .Values "extraSelectorLabels" $selectors }} -{{ include "common.classes.service" $params }} diff --git a/test/diskoverdata/1.0.4/templates/tests/deployment-check.yaml b/test/diskoverdata/1.0.4/templates/tests/deployment-check.yaml deleted file mode 100644 index 7e888eb0b9..0000000000 --- a/test/diskoverdata/1.0.4/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: {{ .Release.Name }}-test-pod - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}:{{.Values.web_port}}/ - restartPolicy: Never diff --git a/test/diskoverdata/1.0.4/test_values.yaml b/test/diskoverdata/1.0.4/test_values.yaml deleted file mode 100644 index c20b5aca61..0000000000 --- a/test/diskoverdata/1.0.4/test_values.yaml +++ /dev/null @@ -1,50 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: linuxserver/diskover - tag: "2.0.1" - -elasticsearch: - image: - pullPolicy: IfNotPresent - repository: docker.elastic.co/elasticsearch/elasticsearch - tag: "7.5.2" - -python: - image: - pullPolicy: IfNotPresent - repository: python - tag: "3.10" - -environmentVariables: [] -extraAppVolumeMounts: [] -extraDataVolumeMounts: [] -web_port: 32000 -dnsConfig: - options: [] -emptyDirVolumes: true -appVolumeMounts: - config: - emptyDir: true - mountPath: /config - data: - emptyDir: true - mountPath: /data -elasticSearchAppVolumeMounts: - esdata: - emptyDir: true - mountPath: /usr/share/elasticsearch/data - -ownerUID: 568 -ownerGID: 568 -username: "admin" -password: "admin" -host: "192.169.0.156" -hostNetwork: false -timezone: "America/Los_Angeles" - -diskoverCredentials: - username: admin - password: admin - -cronjobSchedule: "0 3 * * *" -es_user: elasticsearch diff --git a/test/diskoverdata/item.yaml b/test/diskoverdata/item.yaml deleted file mode 100644 index f021ada830..0000000000 --- a/test/diskoverdata/item.yaml +++ /dev/null @@ -1,5 +0,0 @@ -icon_url: http://www.diskoverdata.com/wp-content/uploads/2019/09/diskover.png -categories: -- storage -- monitoring -- management diff --git a/test/emby/1.0.16/.helmignore b/test/emby/1.0.16/.helmignore deleted file mode 100644 index e559de0a01..0000000000 --- a/test/emby/1.0.16/.helmignore +++ /dev/null @@ -1,24 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ -# OWNERS file for Kubernetes -OWNERS diff --git a/test/emby/1.0.16/Chart.lock b/test/emby/1.0.16/Chart.lock deleted file mode 100644 index f64cd228a3..0000000000 --- a/test/emby/1.0.16/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-28T22:31:02.894743529+05:00" diff --git a/test/emby/1.0.16/Chart.yaml b/test/emby/1.0.16/Chart.yaml deleted file mode 100644 index 7507126c2c..0000000000 --- a/test/emby/1.0.16/Chart.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v2 -appVersion: 4.7.11.0 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: Emby Server -home: https://emby.media/ -icon: https://images-na.ssl-images-amazon.com/images/I/41NwssJC1iL.png -keywords: -- emby -- media -name: emby -sources: -- https://hub.docker.com/r/emby/embyserver -version: 1.0.16 diff --git a/test/emby/1.0.16/README.md b/test/emby/1.0.16/README.md deleted file mode 100644 index 3f1c5438ab..0000000000 --- a/test/emby/1.0.16/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Emby Server helm chart - -## Configuration - -Please refer to questions.yaml for a detailed overview on supported configurable items. diff --git a/test/emby/1.0.16/app-readme.md b/test/emby/1.0.16/app-readme.md deleted file mode 100644 index e9a7916971..0000000000 --- a/test/emby/1.0.16/app-readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# Emby Server - -Emby Server is a personal media server with apps on just about every device diff --git a/test/emby/1.0.16/charts/common-2207.0.0.tgz b/test/emby/1.0.16/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/emby/1.0.16/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/emby/1.0.16/ix_values.yaml b/test/emby/1.0.16/ix_values.yaml deleted file mode 100644 index 1266ae06bb..0000000000 --- a/test/emby/1.0.16/ix_values.yaml +++ /dev/null @@ -1,4 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: emby/embyserver - tag: 4.7.11.0 diff --git a/test/emby/1.0.16/questions.yaml b/test/emby/1.0.16/questions.yaml deleted file mode 100644 index fa860589b4..0000000000 --- a/test/emby/1.0.16/questions.yaml +++ /dev/null @@ -1,194 +0,0 @@ -groups: - - name: "Emby Server Configuration" - description: "Configure Emby Server" - - name: "Networking" - description: "Configure networking for container" - - name: "Storage" - description: "Persist and share data that is separate from the lifecycle of the container" - - name: "Workload Details" - description: "Configure how workload should be deployed" - - name: "Scaling/Upgrade Policy" - description: "Configure how pods are replaced when configuration is upgraded" - - name: "Restart Policy" - description: "Configure when pod should be restarted in case of failure" - - name: "Resource Reservation" - description: "Specify resources to be allocated to workload" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - -portals: - web_portal: - protocols: - - "http" - host: - - "$node_ip" - ports: - - "$kubernetes-resource_configmap_portal_port" - path: "/web" - -questions: - - variable: hostNetwork - label: "Enable Host Network" - group: "Networking" - schema: - type: boolean - default: false - - - variable: environmentVariables - label: "Environment Variables for Emby Server" - group: "Emby Server Configuration" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # Update strategy - - variable: updateStrategy - description: "Upgrade Policy" - label: "Update Strategy" - group: "Scaling/Upgrade Policy" - schema: - type: string - default: "Recreate" - enum: - - value: "RollingUpdate" - description: "Create new pods and then kill old ones" - - value: "Recreate" - description: "Kill existing pods before creating new ones" - - # Port configuration - - variable: embyServerHttp - label: "Configure Emby Server HTTP Service" - group: "Networking" - schema: - show_if: [[ "hostNetwork", "!=", true]] - type: dict - attrs: - - variable: port - label: "Port to expose for Emby Server UI" - schema: - type: int - min: 9000 - max: 65535 - default: 9096 - - # Specify GPU configuration - - variable: gpuConfiguration - label: "GPU Configuration" - group: "Resource Reservation" - schema: - type: dict - $ref: - - "definitions/gpuConfiguration" - attrs: [] - - - variable: appVolumeMounts - label: "Emby Server Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: config - label: "Config Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Emby Server Config Volume Name" - schema: - type: string - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-emby_config" - editable: false - hidden: true - - variable: mountPath - label: "Emby Server Config Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - editable: false - hidden: true - default: "/config" - - variable: hostPathEnabled - label: "Enable Host Path for Emby Server Config Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Emby Server Config Volume" - schema: - type: hostpath - required: true - - - variable: extraAppVolumeMounts - label: "Emby Server Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Emby Server Host Path Volume" - description: "Add an extra host path volume for emby application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - variable: readOnly - label: "Read Only" - description: "Mount hostpath in read-only mode" - schema: - type: boolean - default: false - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/test/emby/1.0.16/requirements.lock b/test/emby/1.0.16/requirements.lock deleted file mode 100644 index 77e599c9ce..0000000000 --- a/test/emby/1.0.16/requirements.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:47115d9b91afe42c8537dcf0fd8224f2f7d1c775f9ff860efa68a6b57d17d1c0 -generated: "2021-12-06T21:24:36.674776+05:00" diff --git a/test/emby/1.0.16/templates/NOTES.txt b/test/emby/1.0.16/templates/NOTES.txt deleted file mode 100644 index d2e3ff976e..0000000000 --- a/test/emby/1.0.16/templates/NOTES.txt +++ /dev/null @@ -1,7 +0,0 @@ -1. Get the application URL by running these commands: - -{{- if .Values.hostNetwork }} -http://$node_ip:8096/ -{{ else }} -http://$node_ip:{{ .Values.embyServerHttp.port }}/ -{{ end }} diff --git a/test/emby/1.0.16/templates/deployment.yaml b/test/emby/1.0.16/templates/deployment.yaml deleted file mode 100644 index e15f1e1e4a..0000000000 --- a/test/emby/1.0.16/templates/deployment.yaml +++ /dev/null @@ -1,71 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -{{ include "common.deployment.common_config" . | nindent 0 }} -spec: {{ include "common.deployment.common_spec" . | nindent 2 }} - template: {{ include "common.deployment.pod.metadata" . | nindent 4 }} - spec: - {{- if .Values.hostNetwork }} - hostNetwork: {{ .Values.hostNetwork }} - dnsPolicy: ClusterFirstWithHostNet - {{- end }} - hostname: {{ template "common.names.fullname" . }} - containers: - - name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 10 }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ if $hostPathConfiguration.readOnly }} - readOnly: {{ $hostPathConfiguration.readOnly }} - {{ end }} - {{ end }} - ports: - - name: emby - protocol: TCP - containerPort: 8096 - - name: emby-dlna - protocol: UDP - containerPort: 1900 - - name: emby-lnd - protocol: UDP - containerPort: 7359 - env: - - name: KUBE_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - {{ $envList := (default list .Values.environmentVariables) }} - {{ if and .Values.gpuConfiguration (hasKey .Values.gpuConfiguration "nvidia.com/gpu") (gt (get .Values.gpuConfiguration "nvidia.com/gpu" | toDecimal) 0) }} - {{ $envList = mustAppend $envList (dict "name" "NVIDIA_DRIVER_CAPABILITIES" "value" "all") }} - {{ end }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} - readinessProbe: - httpGet: - path: /emby/System/Ping - port: 8096 - failureThreshold: 5 - periodSeconds: 15 - livenessProbe: - httpGet: - path: /emby/System/Ping - port: 8096 - failureThreshold: 5 - periodSeconds: 15 - startupProbe: - httpGet: - path: /emby/System/Ping - port: 8096 - initialDelaySeconds: 5 - failureThreshold: 40 - periodSeconds: 15 - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} diff --git a/test/emby/1.0.16/templates/portal.tpl b/test/emby/1.0.16/templates/portal.tpl deleted file mode 100644 index 3cf73f3d06..0000000000 --- a/test/emby/1.0.16/templates/portal.tpl +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: portal -data: - {{- if .Values.hostNetwork }} - port: "8096" - {{- else }} - port: {{ .Values.embyServerHttp.port | quote }} - {{- end }} diff --git a/test/emby/1.0.16/templates/service-tcp.yaml b/test/emby/1.0.16/templates/service-tcp.yaml deleted file mode 100644 index 7a5a7d7439..0000000000 --- a/test/emby/1.0.16/templates/service-tcp.yaml +++ /dev/null @@ -1,17 +0,0 @@ -{{ $svc := .Values.embyServerHttp }} -{{ $ports := list }} -{{ if .Values.hostNetwork }} -{{ $ports = mustAppend $ports (dict "name" "http" "port" 8096 "targetPort" 8096) }} -{{ else }} -{{ $ports = mustAppend $ports (dict "name" "http" "port" $svc.port "nodePort" $svc.port "targetPort" 8096) }} -{{ end }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "ports" $ports ) }} -{{ if .Values.hostNetwork }} -{{ $_ := set $params.commonService "nameSuffix" "tcp-cluster-ip" }} -{{ $_1 := set $params.commonService "type" "ClusterIP" }} -{{ else }} -{{ $_ := set $params.commonService "nameSuffix" "tcp" }} -{{ $_1 := set $params.commonService "type" "NodePort" }} -{{ end }} -{{ include "common.classes.service" $params }} diff --git a/test/emby/1.0.16/templates/service-udp.yaml b/test/emby/1.0.16/templates/service-udp.yaml deleted file mode 100644 index e18769d83e..0000000000 --- a/test/emby/1.0.16/templates/service-udp.yaml +++ /dev/null @@ -1,6 +0,0 @@ -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "emby-dlna" "port" 1900 "protocol" "UDP" "targetPort" "emby-dlna") }} -{{ $ports = mustAppend $ports (dict "name" "emby-lnd" "port" 7359 "protocol" "UDP" "targetPort" "emby-lnd") }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "ClusterIP" "ports" $ports "nameSuffix" "udp" ) }} -{{ include "common.classes.service" $params }} diff --git a/test/emby/1.0.16/templates/tests/deployment-check.yaml b/test/emby/1.0.16/templates/tests/deployment-check.yaml deleted file mode 100644 index 4c2eef4036..0000000000 --- a/test/emby/1.0.16/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-emby-test" - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}-tcp:32496/emby/System/Ping - restartPolicy: Never diff --git a/test/emby/1.0.16/test_values.yaml b/test/emby/1.0.16/test_values.yaml deleted file mode 100644 index fe39431780..0000000000 --- a/test/emby/1.0.16/test_values.yaml +++ /dev/null @@ -1,19 +0,0 @@ -appVolumeMounts: - config: - emptyDir: true - mountPath: /config -embyServerHttp: - port: 32496 -emptyDirVolumes: true -environmentVariables: [] -extraAppVolumeMounts: -- hostPath: /mnt/extras/something - mountPath: /mnt/extras - readOnly: true -gpuConfiguration: {} -hostNetwork: false -image: - pullPolicy: IfNotPresent - repository: emby/embyserver - tag: 4.7.11.0 -updateStrategy: Recreate diff --git a/test/emby/item.yaml b/test/emby/item.yaml deleted file mode 100644 index cea5828390..0000000000 --- a/test/emby/item.yaml +++ /dev/null @@ -1,3 +0,0 @@ -categories: - - entertainment -icon_url: https://images-na.ssl-images-amazon.com/images/I/41NwssJC1iL.png diff --git a/test/emby/upgrade_info.json b/test/emby/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/test/emby/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/test/emby/upgrade_strategy b/test/emby/upgrade_strategy deleted file mode 100755 index 96df7efc04..0000000000 --- a/test/emby/upgrade_strategy +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/python3 -import json -import re -import sys - -from catalog_update.upgrade_strategy import semantic_versioning - - -RE_STABLE_VERSION = re.compile(r'\d+.\d+.\d+.\d+') - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - version = semantic_versioning(sorted( - [tag for tag in image_tags[key] if RE_STABLE_VERSION.fullmatch(tag) and tag.split('.')[2] != '0'], - reverse=True - )) - if not version: - return {} - - return { - 'tags': {key: version}, - 'app_version': version, - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/home-assistant/.helmignore b/test/home-assistant/.helmignore deleted file mode 100644 index c1347c2c27..0000000000 --- a/test/home-assistant/.helmignore +++ /dev/null @@ -1,2 +0,0 @@ -# Patterns to ignore when building packages. -*.png diff --git a/test/home-assistant/1.0.71/Chart.lock b/test/home-assistant/1.0.71/Chart.lock deleted file mode 100644 index 75536ecc2b..0000000000 --- a/test/home-assistant/1.0.71/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:48.151643214+05:00" diff --git a/test/home-assistant/1.0.71/Chart.yaml b/test/home-assistant/1.0.71/Chart.yaml deleted file mode 100644 index ec7a9999e2..0000000000 --- a/test/home-assistant/1.0.71/Chart.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v2 -appVersion: 2023.3.5 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: home-assistant App for TrueNAS SCALE -home: https://github.com/home-assistant/home-assistant -icon: https://avatars.githubusercontent.com/u/13844975?s=200&v=4 -keywords: -- home-automation -name: home-assistant -sources: -- https://github.com/home-assistant/home-assistant -version: 1.0.71 diff --git a/test/home-assistant/1.0.71/README.md b/test/home-assistant/1.0.71/README.md deleted file mode 100644 index bcdded4f0a..0000000000 --- a/test/home-assistant/1.0.71/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Introduction - -home assistant App for TrueNAS SCALE \ No newline at end of file diff --git a/test/home-assistant/1.0.71/app-readme.md b/test/home-assistant/1.0.71/app-readme.md deleted file mode 100644 index 15cfb6b108..0000000000 --- a/test/home-assistant/1.0.71/app-readme.md +++ /dev/null @@ -1 +0,0 @@ -home-assistant App for TrueNAS SCALE diff --git a/test/home-assistant/1.0.71/charts/common-2207.0.0.tgz b/test/home-assistant/1.0.71/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/home-assistant/1.0.71/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/home-assistant/1.0.71/ix_values.yaml b/test/home-assistant/1.0.71/ix_values.yaml deleted file mode 100644 index f61271a9d4..0000000000 --- a/test/home-assistant/1.0.71/ix_values.yaml +++ /dev/null @@ -1,4 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: homeassistant/home-assistant - tag: 2023.3.5 diff --git a/test/home-assistant/1.0.71/questions.yaml b/test/home-assistant/1.0.71/questions.yaml deleted file mode 100644 index feb5225536..0000000000 --- a/test/home-assistant/1.0.71/questions.yaml +++ /dev/null @@ -1,292 +0,0 @@ -groups: - - name: "Configuration" - description: "Home Assistant application configuration" - - name: "Storage" - description: "Configure storage for homeassistant" - - name: "Networking" - description: "Networking Configuration for homeassistant" - - name: "Advanced DNS Settings" - description: "Configure DNS settings" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - -portals: - web_portal: - protocols: - - "http" - host: - - "$node_ip" - ports: - - "$variable-web_port" - path: "/" - -questions: - - variable: web_port - label: "Web Port for homeassistant" - group: Networking - schema: - type: int - min: 8000 - max: 65535 - default: 20810 - required: true - - - variable: timezone - label: "Configure timezone" - group: "Configuration" - description: "Configure timezone for Home Assistant" - schema: - type: string - $ref: - - "definitions/timezone" - - - variable: hostNetwork - label: "Enable Host Network" - group: "Networking" - schema: - type: boolean - default: false - - - variable: dnsConfig - label: "DNS Configuration" - group: "Advanced DNS Settings" - schema: - type: dict - attrs: - - variable: options - label: "DNS Options" - schema: - type: list - items: - - variable: optionsEntry - label: "Option Entry Configuration" - schema: - type: dict - attrs: - - variable: name - label: "Option Name" - schema: - type: string - required: true - - variable: value - label: "Option Value" - schema: - type: string - required: true - - - variable: ownerUID - label: "Storage User ID" - description: "User ID of the storage volume being used (application will chown the storage volume path with specified UID)" - group: Configuration - schema: - type: int - default: 568 - min: 1 - max: 65535 - - - variable: ownerGID - label: "Storage Group ID" - description: "Group ID of the storage volume being used (application will chown the storage volume path with specified GID)" - group: Configuration - schema: - type: int - default: 568 - min: 1 - max: 65535 - - - variable: environmentVariables - label: "Home Assistant environment" - group: "Configuration" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: appVolumeMounts - label: "Home Assistant Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: config - label: "Storage Volume for Configuration" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Storage Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-config" - editable: false - - variable: mountPath - label: "Configuration Storage Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/config" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Home Assistant Configuration Storage Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Home Assistant Configuration Storage Volume" - schema: - type: hostpath - required: true - - variable: media - label: "Storage Volume for Media" - schema: - type: dict - attrs: - - variable: datasetName - label: "Media Storage Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-media" - editable: false - - variable: mountPath - label: "Media Storage Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/media" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Home Assistant Media Storage Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Home Assistant Media Storage Volume" - schema: - type: hostpath - required: true - - - - variable: postgresAppVolumeMounts - label: "Postgres Storage" - group: "Storage" - schema: - type: dict - hidden: true - attrs: - - variable: postgres-data - label: "Postgres Data Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Postgres Data Volume Name" - schema: - type: string - $ref: - - "normalize/ixVolume" - default: "ix-postgres_data" - editable: false - - variable: mountPath - label: "Postgresql Data Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - editable: false - default: "/var/lib/postgresql/data" - - variable: postgres-backup - label: "Postgres Backup Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Postgres Backup Volume Name" - schema: - type: string - $ref: - - "normalize/ixVolume" - default: "ix-postgres_backups" - editable: false - - variable: mountPath - label: "Postgresql Backup Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - editable: false - default: "/postgres_backups" - - - variable: extraAppVolumeMounts - label: "Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Host Path Volume" - description: "Add an extra host path volume for Home Assistant application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/test/home-assistant/1.0.71/templates/_postgres.tpl b/test/home-assistant/1.0.71/templates/_postgres.tpl deleted file mode 100644 index dcb7404691..0000000000 --- a/test/home-assistant/1.0.71/templates/_postgres.tpl +++ /dev/null @@ -1,49 +0,0 @@ -{{/* -Get Home assistance Postgres Database Name -*/}} -{{- define "postgres.DatabaseName" -}} -{{- print "homeassistance" -}} -{{- end -}} - - -{{- define "postgres.imageName" -}} -{{- print "postgres:13.1" -}} -{{- end -}} - - -{{/* -Retrieve postgres backup name -This will return a unique name based on revision and chart numbers specified. -*/}} -{{- define "postgres.backupName" -}} -{{- $upgradeDict := .Values.ixChartContext.upgradeMetadata -}} -{{- printf "postgres-backup-from-%s-to-%s-revision-%d" $upgradeDict.oldChartVersion $upgradeDict.newChartVersion (int64 $upgradeDict.preUpgradeRevision) -}} -{{- end }} - - -{{/* -Retrieve postgres credentials for environment variables configuration -*/}} -{{- define "postgres.envVariableConfiguration" -}} -{{ $envList := list }} -{{ $envList = mustAppend $envList (dict "name" "POSTGRES_USER" "valueFromSecret" true "secretName" "db-details" "secretKey" "db-user") }} -{{ $envList = mustAppend $envList (dict "name" "POSTGRES_PASSWORD" "valueFromSecret" true "secretName" "db-details" "secretKey" "db-password") }} -{{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) }} -{{- end -}} - - -{{/* -Retrieve postgres volume configuration -*/}} -{{- define "postgres.volumeConfiguration" -}} -{{ include "common.storage.configureAppVolumes" (dict "appVolumeMounts" .Values.postgresAppVolumeMounts "emptyDirVolumes" .Values.emptyDirVolumes "ixVolumes" .Values.ixVolumes) | nindent 0 }} -{{- end -}} - - -{{/* -Retrieve postgres volume mounts configuration -*/}} -{{- define "postgres.volumeMountsConfiguration" -}} -{{ include "common.storage.configureAppVolumeMountsInContainer" (dict "appVolumeMounts" .Values.postgresAppVolumeMounts ) | nindent 0 }} -{{- end -}} - diff --git a/test/home-assistant/1.0.71/templates/backup-postgres-config.yaml b/test/home-assistant/1.0.71/templates/backup-postgres-config.yaml deleted file mode 100644 index c9ccf66dba..0000000000 --- a/test/home-assistant/1.0.71/templates/backup-postgres-config.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: "postgres-backup-hook-config-map" - annotations: - rollme: {{ randAlphaNum 5 | quote }} -data: - entrypoint.sh: |- - #!/bin/sh - cmd="/docker-entrypoint.sh postgres" - eval "${cmd}" & disown; - until pg_isready; do - sleep 5; - done; - pg_dump -U $POSTGRES_USER -d {{ template "postgres.DatabaseName" . }} > /postgres_backups/$BACKUP_NAME; diff --git a/test/home-assistant/1.0.71/templates/backup-postgres-hook.yaml b/test/home-assistant/1.0.71/templates/backup-postgres-hook.yaml deleted file mode 100644 index fe1b71ea24..0000000000 --- a/test/home-assistant/1.0.71/templates/backup-postgres-hook.yaml +++ /dev/null @@ -1,38 +0,0 @@ -{{- if .Values.ixChartContext.isUpgrade -}} -{{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }} -apiVersion: batch/v1 -kind: Job -metadata: - name: "pre-upgrade-hook" - annotations: - "helm.sh/hook": pre-upgrade - "helm.sh/hook-weight": "1" - "helm.sh/hook-delete-policy": hook-succeeded - rollme: {{ randAlphaNum 5 | quote }} -spec: - template: - metadata: - name: "pre-upgrade-hook" - spec: - restartPolicy: Never - containers: - - name: {{ .Chart.Name }}-postgres-backup - image: {{ template "postgres.imageName" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - env: {{ include "postgres.envVariableConfiguration" $values | nindent 10 }} - - name: BACKUP_NAME - value: {{ template "postgres.backupName" . }} - volumeMounts: {{ include "postgres.volumeMountsConfiguration" $values | nindent 10 }} - - name: backup-script-configmap - mountPath: /bin/backup_entrypoint.sh - readOnly: true - subPath: entrypoint.sh - command: - - "/bin/backup_entrypoint.sh" - volumes: {{ include "postgres.volumeConfiguration" $values | nindent 8 }} - - name: backup-script-configmap - configMap: - defaultMode: 0700 - name: "postgres-backup-hook-config-map" -{{- end -}} diff --git a/test/home-assistant/1.0.71/templates/deployment.yaml b/test/home-assistant/1.0.71/templates/deployment.yaml deleted file mode 100644 index bc2a353325..0000000000 --- a/test/home-assistant/1.0.71/templates/deployment.yaml +++ /dev/null @@ -1,88 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -{{ $postgres_values := (. | mustDeepCopy) }} -{{ $_ := set $postgres_values "common" (dict "nameSuffix" "postgres") }} - -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - chart: {{ template "common.names.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} - annotations: - rollme: {{ randAlphaNum 5 | quote }} -spec: - replicas: {{ (default 1 .Values.replicas) }} - strategy: - type: "Recreate" - selector: - matchLabels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - {{- include "common.labels.selectorLabels" . | nindent 8 }} - annotations: {{ include "common.annotations" . | nindent 8 }} - spec: - hostNetwork: {{ .Values.hostNetwork }} - initContainers: - - name: init-postgresdb - image: {{ template "postgres.imageName" . }} - command: ['sh', '-c', "until pg_isready -h {{ template "common.names.fullname" $postgres_values }}; do echo waiting for postgres; sleep 2; done"] - imagePullPolicy: {{ .Values.image.pullPolicy }} - - name: init-configs - image: "alpine:latest" - imagePullPolicy: {{ .Values.image.pullPolicy }} - command: - - "sh" - - "/config/init/init.sh" - env: - {{ $envList := (default list .Values.environmentVariables) }} - {{ $envList = mustAppend $envList (dict "name" "POSTGRES_HOST" "value" (printf "%s:5432" (include "common.names.fullname" $postgres_values))) }} - {{ $envList = mustAppend $envList (dict "name" "POSTGRES_DB" "value" (include "postgres.DatabaseName" .)) }} - {{ $envList = mustAppend $envList (dict "name" "POSTGRES_USER" "valueFromSecret" true "secretName" "db-details" "secretKey" "db-user")}} - {{ $envList = mustAppend $envList (dict "name" "POSTGRES_PASSWORD" "valueFromSecret" true "secretName" "db-details" "secretKey" "db-password")}} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - - name: initial-config-script - mountPath: /config/init - - containers: - - name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 10 }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - - ports: - - name: web - containerPort: 8123 - env: - {{ $databaseName := (include "postgres.DatabaseName" .)}} - {{ $envList := (default list .Values.environmentVariables) }} - {{ $envList = mustAppend $envList (dict "name" "PUID" "value" .Values.ownerUID) }} - {{ $envList = mustAppend $envList (dict "name" "PGID" "value" .Values.ownerGID) }} - {{ $envList = mustAppend $envList (dict "name" "TZ" "value" .Values.timezone) }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} - -{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - - name: initial-config-script - configMap: - defaultMode: 0700 - name: "home-assistance-initial-script-configmap" - - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} diff --git a/test/home-assistant/1.0.71/templates/home-assistance-init-config.yaml b/test/home-assistant/1.0.71/templates/home-assistance-init-config.yaml deleted file mode 100644 index 5a4c03183a..0000000000 --- a/test/home-assistant/1.0.71/templates/home-assistance-init-config.yaml +++ /dev/null @@ -1,40 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: "home-assistance-initial-script-configmap" - annotations: - rollme: {{ randAlphaNum 5 | quote }} -data: - configuration.yaml.default: |- - # Configure a default setup of Home Assistant (frontend, api, etc) - default_config: - - # Text to speech - tts: - - platform: google_translate - - - init.sh: |- - #!/bin/sh - if test -f "/config/configuration.yaml"; then - echo "configuration.yaml exists." - if grep -q recorder: "/config/configuration.yaml"; then - echo "configuration.yaml already contains recorder" - else - cat /config/init/recorder.default >> /config/configuration.yaml - echo " postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}/${POSTGRES_DB}" >> /config/configuration.yaml - fi - else - echo "configuration.yaml does NOT exist." - cp /config/init/configuration.yaml.default /config/configuration.yaml - cat /config/init/recorder.default >> /config/configuration.yaml - echo " postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}/${POSTGRES_DB}" >> /config/configuration.yaml - cat /config/init/http.default >> /config/configuration.yaml - fi - recorder.default: |- - - recorder: - purge_keep_days: 30 - commit_interval: 3 - db_url: - diff --git a/test/home-assistant/1.0.71/templates/postgres-config.yaml b/test/home-assistant/1.0.71/templates/postgres-config.yaml deleted file mode 100644 index 8a0c284c51..0000000000 --- a/test/home-assistant/1.0.71/templates/postgres-config.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }} -apiVersion: v1 -kind: ConfigMap -metadata: - name: posgress-configmap -data: - database_url: {{ template "common.names.fullname" $values }} diff --git a/test/home-assistant/1.0.71/templates/postgres-deployment.yaml b/test/home-assistant/1.0.71/templates/postgres-deployment.yaml deleted file mode 100644 index 802ca73911..0000000000 --- a/test/home-assistant/1.0.71/templates/postgres-deployment.yaml +++ /dev/null @@ -1,24 +0,0 @@ -{{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }} -{{ include "common.deployment.common_config" $values | nindent 0 }} -spec: {{ include "common.deployment.common_spec" $values | nindent 2 }} - template: {{ include "common.deployment.pod.metadata" $values | nindent 4 }} - spec: - hostNetwork: {{ .Values.hostNetwork }} - containers: - - name: {{ .Chart.Name }}-postgres - image: {{ template "postgres.imageName" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - env: - {{ $envList := (default list .Values.environmentVariables) }} - {{ $envList = mustAppend $envList (dict "name" "POSTGRES_DB" "value" (include "postgres.DatabaseName" .)) }} - {{ $envList = mustAppend $envList (dict "name" "POSTGRES_USER" "valueFromSecret" true "secretName" "db-details" "secretKey" "db-user")}} - {{ $envList = mustAppend $envList (dict "name" "POSTGRES_PASSWORD" "valueFromSecret" true "secretName" "db-details" "secretKey" "db-password")}} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 10 }} - - volumeMounts: {{ include "postgres.volumeMountsConfiguration" $values | nindent 10 }} - ports: - - name: postgres-tcp - containerPort: 5432 - protocol: TCP - volumes: {{ include "postgres.volumeConfiguration" $values | nindent 8 }} diff --git a/test/home-assistant/1.0.71/templates/postgres-secret.yaml b/test/home-assistant/1.0.71/templates/postgres-secret.yaml deleted file mode 100644 index 6700621026..0000000000 --- a/test/home-assistant/1.0.71/templates/postgres-secret.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: db-details -data: - db-user: {{ "postgres" | b64enc }} - {{- if .Release.IsInstall }} - db-password: {{ randAlphaNum 15 | b64enc | quote }} - {{ else }} - db-password: {{ index (lookup "v1" "Secret" .Release.Namespace "db-details").data "db-password" }} - {{ end }} diff --git a/test/home-assistant/1.0.71/templates/postgres-service.yaml b/test/home-assistant/1.0.71/templates/postgres-service.yaml deleted file mode 100644 index c6603fd62b..0000000000 --- a/test/home-assistant/1.0.71/templates/postgres-service.yaml +++ /dev/null @@ -1,6 +0,0 @@ -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "postgres-tcp" "port" 5432 "targetPort" 5432) }} -{{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }} -{{ $_1 := set $values "commonService" (dict "type" "ClusterIP" "ports" $ports ) }} -{{ include "common.classes.service" $values }} diff --git a/test/home-assistant/1.0.71/templates/pre-install-job.yaml b/test/home-assistant/1.0.71/templates/pre-install-job.yaml deleted file mode 100644 index 2c4074efc9..0000000000 --- a/test/home-assistant/1.0.71/templates/pre-install-job.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-job" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} - helm.sh/chart: {{ template "common.names.chart" . }} - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-delete-policy": hook-succeeded -spec: - template: - metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-hook" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - helm.sh/chart: {{ template "common.names.chart" . }} - spec: - restartPolicy: Never - containers: - - name: pre-install-job - image: "alpine:latest" - command: - - "chown" - - "-R" - - "{{ .Values.ownerUID }}:{{ .Values.ownerGID }}" - - "{{ .Values.appVolumeMounts.config.mountPath }}" - - "{{ .Values.appVolumeMounts.media.mountPath }}" - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} diff --git a/test/home-assistant/1.0.71/templates/service.yaml b/test/home-assistant/1.0.71/templates/service.yaml deleted file mode 100644 index 79b48458e5..0000000000 --- a/test/home-assistant/1.0.71/templates/service.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{{ $svc := .Values.service }} -{{ $selectors := list }} -{{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }} -{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "web" "port" .Values.web_port "nodePort" .Values.web_port "targetPort" 8123) }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{ $_1 := set .Values "extraSelectorLabels" $selectors }} -{{ include "common.classes.service" $params }} diff --git a/test/home-assistant/1.0.71/templates/tests/deployment-check.yaml b/test/home-assistant/1.0.71/templates/tests/deployment-check.yaml deleted file mode 100644 index 7e888eb0b9..0000000000 --- a/test/home-assistant/1.0.71/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: {{ .Release.Name }}-test-pod - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}:{{.Values.web_port}}/ - restartPolicy: Never diff --git a/test/home-assistant/1.0.71/test_values.yaml b/test/home-assistant/1.0.71/test_values.yaml deleted file mode 100644 index 25171e8559..0000000000 --- a/test/home-assistant/1.0.71/test_values.yaml +++ /dev/null @@ -1,36 +0,0 @@ -appVolumeMounts: - config: - emptyDir: true - mountPath: /config - media: - emptyDir: true - mountPath: /media -dnsConfig: - options: [] -emptyDirVolumes: true -environmentVariables: [] -extraAppVolumeMounts: [] -hostNetwork: false -image: - pullPolicy: IfNotPresent - repository: homeassistant/home-assistant - tag: 2023.3.5 -ixChartContext: {} -ownerGID: 568 -ownerUID: 568 -postgresAppVolumeMounts: - postgres-backup: - emptyDir: true - mountPath: /postgres_backups - postgres-data: - emptyDir: true - mountPath: /var/lib/postgresql/data -postgresql: - backupVolume: - datasetName: ix-postgres_backups - mountPath: /postgres_backups - dataVolume: - datasetName: ix-postgres_data - mountPath: /var/lib/postgresql/data -timezone: America/Los_Angeles -web_port: 32000 diff --git a/test/home-assistant/item.yaml b/test/home-assistant/item.yaml deleted file mode 100644 index cf09962c57..0000000000 --- a/test/home-assistant/item.yaml +++ /dev/null @@ -1,3 +0,0 @@ -icon_url: https://avatars.githubusercontent.com/u/13844975?s=200&v=4 -categories: -- home-automation diff --git a/test/home-assistant/upgrade_info.json b/test/home-assistant/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/test/home-assistant/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/test/home-assistant/upgrade_strategy b/test/home-assistant/upgrade_strategy deleted file mode 100755 index 39bb56546a..0000000000 --- a/test/home-assistant/upgrade_strategy +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python3 -import json -import sys - -from catalog_update.upgrade_strategy import semantic_versioning - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - tags = {t: t for t in image_tags[key]} - version = semantic_versioning(list(tags)) - if not version: - return {} - - return { - 'tags': {key: tags[version]}, - 'app_version': version, - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/ipfs/1.2.13/.helmignore b/test/ipfs/1.2.13/.helmignore deleted file mode 100644 index a9fe727881..0000000000 --- a/test/ipfs/1.2.13/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -# OWNERS file for Kubernetes -OWNERS \ No newline at end of file diff --git a/test/ipfs/1.2.13/Chart.yaml b/test/ipfs/1.2.13/Chart.yaml deleted file mode 100644 index eaff220379..0000000000 --- a/test/ipfs/1.2.13/Chart.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v1 -appVersion: v0.18.1 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: Global, Versioned, peer-to-peer filesystem. -home: https://ipfs.io -icon: https://ipfs.io/ipfs/QmVk7srrwahXLNmcDYvyUEJptyoxpndnRa57YJ11L4jV26/ipfs.go.png -keywords: -- storage -- p2p -name: ipfs -sources: -- https://github.com/ipfs/go-ipfs -- https://hub.docker.com/r/ipfs/go-ipfs -upstream_version: 0.8.0-rc1 -version: 1.2.13 diff --git a/test/ipfs/1.2.13/README.md b/test/ipfs/1.2.13/README.md deleted file mode 100755 index d6bdd49a12..0000000000 --- a/test/ipfs/1.2.13/README.md +++ /dev/null @@ -1,22 +0,0 @@ -IPFS -===== - -[IPFS](https://ipfs.io) is a global, versioned, peer-to-peer filesystem. It combines good ideas from previous systems such Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single bittorrent swarm, exchanging git objects. IPFS provides an interface as simple as the HTTP web, but with permanence built in. You can also mount the world at /ipfs. - -Introduction ------------- - -This chart bootstraps IPFS deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. - - -Configuration -------------- - -The following table lists the configurable parameters of the IPFS chart and their default values. - -| Parameter | Description | Default | -|:-------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------| -| `image.repository` | Image repository | `ipfs/go-ipfs` | -| `image.tag` | IPFS image tag. Possible values listed [here](https://hub.docker.com/r/ipfs/go-ipfs/tags). | `v0.8.0-rc1` | -| `image.pullPolicy` | Image pull policy | `IfNotPresent` | -| `extraArgs` | Additional command line arguments to pass to the IPFS server | `[]` | diff --git a/test/ipfs/1.2.13/app-readme.md b/test/ipfs/1.2.13/app-readme.md deleted file mode 100644 index dc481d47c8..0000000000 --- a/test/ipfs/1.2.13/app-readme.md +++ /dev/null @@ -1 +0,0 @@ -[IPFS](https://ipfs.io) is a global, versioned, peer-to-peer filesystem. It combines good ideas from previous systems such Git, BitTorrent, Kademlia, SFS, and the Web. It is like a single bittorrent swarm, exchanging git objects. IPFS provides an interface as simple as the HTTP web, but with permanence built in. You can also mount the world at /ipfs. diff --git a/test/ipfs/1.2.13/charts/common-2207.0.0.tgz b/test/ipfs/1.2.13/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/ipfs/1.2.13/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/ipfs/1.2.13/ix_values.yaml b/test/ipfs/1.2.13/ix_values.yaml deleted file mode 100644 index 22c952a183..0000000000 --- a/test/ipfs/1.2.13/ix_values.yaml +++ /dev/null @@ -1,4 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: ipfs/go-ipfs - tag: v0.18.1 diff --git a/test/ipfs/1.2.13/questions.yaml b/test/ipfs/1.2.13/questions.yaml deleted file mode 100644 index 14d68c6f1b..0000000000 --- a/test/ipfs/1.2.13/questions.yaml +++ /dev/null @@ -1,221 +0,0 @@ -groups: - - name: "Container Images" - description: "Image to be used for container" - - name: "Workload Configuration" - description: "Configure Storage for IPFS" - - name: "Storage" - description: "Configure Storage for IPFS" - - name: "IPFS Configuration" - description: "Configure Storage for IPFS" - - name: "Advanced DNS Settings" - description: "Configure DNS settings" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - - -portals: - web_portal: - protocols: - - "http" - host: - - "$node_ip" - ports: - - "$variable-service.apiPort" - path: "/webui" - -questions: - - - variable: dnsConfig - label: "DNS Configuration" - group: "Advanced DNS Settings" - schema: - type: dict - attrs: - - variable: options - label: "DNS Options" - schema: - type: list - items: - - variable: optionsEntry - label: "Option Entry Configuration" - schema: - type: dict - attrs: - - variable: name - label: "Option Name" - schema: - type: string - required: true - - variable: value - label: "Option Value" - schema: - type: string - required: true - - - variable: updateStrategy - label: "IPFS update strategy" - group: "Workload Configuration" - schema: - type: string - default: "Recreate" - enum: - - value: "RollingUpdate" - description: "Create new pods and then kill old ones" - - value: "Recreate" - description: "Kill existing pods before creating new ones" - - - variable: environmentVariables - label: "IPFS image environment" - group: "IPFS Configuration" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: service - description: "IPFS Service Configuration" - label: "IPFS Service Configuration" - group: "IPFS Configuration" - schema: - type: dict - required: true - attrs: - - variable: swarmPort - label: "Swarm Port to use for IPFS (Public)" - schema: - type: int - min: 9000 - max: 65535 - default: 9401 - required: true - - variable: apiPort - label: "API Port to use for IPFS (local)" - schema: - type: int - min: 9000 - max: 65535 - default: 9501 - required: true - - variable: gatewayPort - label: "Gateway Port to use for IPFS (local)" - schema: - type: int - min: 9000 - max: 65535 - default: 9880 - required: true - - - variable: appVolumeMounts - label: "IPFS Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: staging - label: "Staging Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "IPFS Staging Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-ipfs-staging" - editable: false - - variable: mountPath - label: "IPFS Staging Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/export" - - variable: hostPathEnabled - label: "Enable Host Path for IPFS Staging Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for IPFS Staging Volume" - schema: - type: hostpath - required: true - - variable: data - label: "Data Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "IPFS Data Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-ipfs-data" - editable: false - - variable: mountPath - label: "IPFS Data Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/data/ipfs" - - variable: hostPathEnabled - label: "Enable Host Path for IPFS Data Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for IPFS Data Volume" - schema: - type: hostpath - required: true - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/test/ipfs/1.2.13/requirements.lock b/test/ipfs/1.2.13/requirements.lock deleted file mode 100644 index ce9757b291..0000000000 --- a/test/ipfs/1.2.13/requirements.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:48.197830691+05:00" diff --git a/test/ipfs/1.2.13/templates/NOTES.txt b/test/ipfs/1.2.13/templates/NOTES.txt deleted file mode 100644 index cb1d892a3b..0000000000 --- a/test/ipfs/1.2.13/templates/NOTES.txt +++ /dev/null @@ -1,2 +0,0 @@ -IPFS can be accessed from the following URL: -http://$node_ip:{{ .Values.service.apiPort }}/webui diff --git a/test/ipfs/1.2.13/templates/deployment.yaml b/test/ipfs/1.2.13/templates/deployment.yaml deleted file mode 100644 index 429fedd1ac..0000000000 --- a/test/ipfs/1.2.13/templates/deployment.yaml +++ /dev/null @@ -1,61 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels" . | nindent 4 }} -spec: - strategy: - type: {{ .Values.updateStrategy }} - selector: - matchLabels: {{ include "common.labels.selectorLabels" . | nindent 6 }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels.selectorLabels" . | nindent 8 }} - spec: - serviceAccountName: {{ include "common.names.serviceAccountName" . | quote }} - initContainers: - - name: init-init - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - command: ['/bin/sh', '-c', '[ ! -e /data/ipfs/config ] && (/usr/local/bin/ipfs init ; chown -R 1000:100 /data/ipfs) ; exit 0'] - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - - name: init-api - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - command: ['/usr/local/bin/ipfs', 'config', 'Addresses.API', "/ip4/0.0.0.0/tcp/9501"] - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - - name: init-gateway - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - command: ['/usr/local/bin/ipfs', 'config', 'Addresses.Gateway', "/ip4/0.0.0.0/tcp/9080"] - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - - name: init-swarm - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - command: ['/usr/local/bin/ipfs', 'config', '--json', 'Addresses.Swarm', "[\"/ip4/0.0.0.0/tcp/9401\",\"/ip4/0.0.0.0/tcp/9401/quic\"]" ] - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - - name: init-access-origin - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - command: ['/usr/local/bin/ipfs', 'config', '--json', 'API.HTTPHeaders.Access-Control-Allow-Origin', "[\"*\"]" ] - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - - name: init-access-methods - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - command: ['/usr/local/bin/ipfs', 'config', '--json', 'API.HTTPHeaders.Access-Control-Allow-Methods', "[\"PUT\",\"POST\"]" ] - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - - name: init-chown - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - command: ['chown', '1000:100', '/data/ipfs/config'] - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - containers: - - name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 10 }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 10 }} - ports: - - name: swarm - containerPort: 9401 - - name: api - containerPort: 9501 - - name: gateway - containerPort: 9880 -{{ include "common.containers.allEnvironmentVariables" .Values | nindent 10 }} -{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} -{{ include "common.storage.allAppVolumes" .Values | nindent 6 }} diff --git a/test/ipfs/1.2.13/templates/service.yaml b/test/ipfs/1.2.13/templates/service.yaml deleted file mode 100644 index 4cc9718639..0000000000 --- a/test/ipfs/1.2.13/templates/service.yaml +++ /dev/null @@ -1,8 +0,0 @@ -{{ $svc := .Values.service }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "swarm" "port" $svc.swarmPort "nodePort" $svc.swarmPort "targetPort" 9401) }} -{{ $ports = mustAppend $ports (dict "name" "api" "port" $svc.apiPort "nodePort" $svc.apiPort "targetPort" 9501) }} -{{ $ports = mustAppend $ports (dict "name" "gateway" "port" $svc.gatewayPort "nodePort" $svc.gatewayPort "targetPort" 9880) }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{ include "common.classes.service" $params }} diff --git a/test/ipfs/1.2.13/templates/serviceaccount.yaml b/test/ipfs/1.2.13/templates/serviceaccount.yaml deleted file mode 100644 index 12bd3f4a39..0000000000 --- a/test/ipfs/1.2.13/templates/serviceaccount.yaml +++ /dev/null @@ -1 +0,0 @@ -{{ include "common.serviceaccount" . }} diff --git a/test/ipfs/1.2.13/templates/tests/deployment-check.yaml b/test/ipfs/1.2.13/templates/tests/deployment-check.yaml deleted file mode 100644 index d68ce8e043..0000000000 --- a/test/ipfs/1.2.13/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-ipfs-test" - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}:{{ .Values.service.apiPort }}/webui/ - restartPolicy: Never diff --git a/test/ipfs/1.2.13/test_values.yaml b/test/ipfs/1.2.13/test_values.yaml deleted file mode 100644 index 261f35e325..0000000000 --- a/test/ipfs/1.2.13/test_values.yaml +++ /dev/null @@ -1,21 +0,0 @@ -appVolumeMounts: - data: - emptyDir: true - mountPath: /data/ipfs - staging: - emptyDir: true - mountPath: /export -dnsConfig: - options: [] -emptyDirVolumes: true -environmentVariables: [] -extraArgs: [] -image: - pullPolicy: IfNotPresent - repository: ipfs/go-ipfs - tag: v0.18.1 -service: - apiPort: 30951 - gatewayPort: 30980 - swarmPort: 30941 -updateStrategy: Recreate diff --git a/test/ipfs/item.yaml b/test/ipfs/item.yaml deleted file mode 100644 index 725026bfb1..0000000000 --- a/test/ipfs/item.yaml +++ /dev/null @@ -1,3 +0,0 @@ -categories: - - storage -icon_url: https://ipfs.io/ipfs/QmVk7srrwahXLNmcDYvyUEJptyoxpndnRa57YJ11L4jV26/ipfs.go.png diff --git a/test/ipfs/upgrade_info.json b/test/ipfs/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/test/ipfs/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/test/ipfs/upgrade_strategy b/test/ipfs/upgrade_strategy deleted file mode 100755 index 13d38b0f3c..0000000000 --- a/test/ipfs/upgrade_strategy +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/python3 -import json -import sys - -from catalog_update.upgrade_strategy import semantic_versioning - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - version = semantic_versioning(image_tags[key]) - if not version: - return {} - - return { - 'tags': {key: f'v{version}'}, - 'app_version': f'v{version}', - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/ix-chart/2212.0.1/.helmignore b/test/ix-chart/2212.0.1/.helmignore deleted file mode 100644 index 0e8a0eb36f..0000000000 --- a/test/ix-chart/2212.0.1/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/test/ix-chart/2212.0.1/Chart.lock b/test/ix-chart/2212.0.1/Chart.lock deleted file mode 100644 index 755de5eb06..0000000000 --- a/test/ix-chart/2212.0.1/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:48.266895679+05:00" diff --git a/test/ix-chart/2212.0.1/Chart.yaml b/test/ix-chart/2212.0.1/Chart.yaml deleted file mode 100644 index 8cd49e0837..0000000000 --- a/test/ix-chart/2212.0.1/Chart.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: v2 -name: ix-chart -description: A Helm chart for deploying simple workloads Kubernetes - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 2212.0.1 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -appVersion: v1 -dependencies: - - name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 diff --git a/test/ix-chart/2212.0.1/README.md b/test/ix-chart/2212.0.1/README.md deleted file mode 100644 index ed5e97a908..0000000000 --- a/test/ix-chart/2212.0.1/README.md +++ /dev/null @@ -1,117 +0,0 @@ -# iX Chart - -iX-chart is a chart designed to let user deploy a docker image in a TrueNAS SCALE kubernetes cluster. -It provides a mechanism to specify workload type, add external host interfaces in the pods, configure volumes and allocate host resources to the workload. - -This chart will deploy a docker image as a kubernetes workload allowing user to configure the workload deployment / management. - -## Introduction - -iX-chart is designed for simple single docker image deployments. - -## Configuration - -The following table lists the configurable parameters of the iX chart and -their default values. - -| Parameter | Description | Default | -|:-------------------------------|:----------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------| -| `workloadType` | Specify type of workload to deploy | `Deployment` | -| `cronSchedule` | Specify schedule for cronjob if `workloadType` is `CronJob`. | `{"minute": "5", "hour": "*", "dom": "*", "month": "*", "dow": "*"}` | -| `image.repository` | The image repository to pull from | `debian` | -| `image.tag` | The image tag to pull from | `latest` | -| `image.pullPolicy` | Image pull policy | `IfNotPresent` | -| `updateStrategy` | Upgrade Policy | `RollingUpdate` | -| `jobRestartPolicy` | Restart Policy for job type workload ( only applicable if `workloadType` is `Job`/`CronJob` | `OnFailure` | -| `containerCommand` | Commands to execute inside container overriding image CMD default | `null` | -| `containerArgs` | Specify arguments for container command | `null` | -| `containerEnvironmentVariables`| Container Environment Variables | `null` | -| `externalInterfaces` | Add external interfaces in the pod | `null` | -| `dnsPolicy` | Specify DNS Policy for pod | `Default` | -| `dnsConfig` | Specify custom DNS configuration which will be applied to the pod | `{"nameservers": [], "searches": []}` | -| `hostNetwork` | Use host network for workload ( similar to docker host networking ) | `false` | -| `hostPortsList` | Specify ports of host and workload to forward traffic from host port to workload port. | `null` | -| `portForwardingList` | Specify ports of node and workload to forward traffic from node port to workload port | `null` | -| `hostPathVolumes` | Specify host paths to be used as hostpath volumes for the workload | `null` | -| `volumes` | Specify `ix_volumes` | `null` | -| `livenessProbe` | Configure Liveness Probe for workload | `null` | -| `gpuConfiguration` | Allocate GPU to workload ( if available ) | `{}` | - - -## Persistence - -Chart release iX chart offers 2 ways to have persistent storage: - -1) `hostPathVolumes` -2) `volumes` - -For (1), they are kubernetes host path volumes which the user can assign to the workload with RO/RW permissions. - -(2) is a host path volume as well but it operates differently then (1) in terms of where it lives and how it's lifecycle is tied to the chart release. -For (2), users specify where they would like persistent storage in the workload and a dataset name ( it should be unique per each chart release ), based on this input, -system will create a dataset and then use it as a host path volume for the workload. During upgrades, snapshot will be taken for these volumes and on rollback users can subsequently -restore the snapshots hence the data. -When a chart release will be deleted, all (2) volumes data will be deleted unlike (1) ( until of course they are not in the chart release's dataset path ). - -## Recommended Persistence Configuration Examples - -The following is a recommended configuration example for creating ix volumes - -``` -"volumes": [ - { - "datasetName": "ix_volume1", - "mountPath": "/mount_test1" - }, - { - "datasetName": "ix_volume2", - "mountPath": "/mount_test2" - } -] - -``` - -`mountPath` refers to the path inside the pod. - ---- - -The following is a recommended configuration example for `hostPathVolumes` - -``` -"hostPathVolumes": [ - { - "hostPath": "/mnt/pool/test_dir", - "mountPath": "/test_dir", - "readOnly": true - }, - { - "hostPath": "/mnt/pool/test_file", - "mountPath": "/test_file", - "readOnly": true - } -] -``` - -## External Interfaces Configuration Examples - -``` -"externalInterfaces": [ - { - "hostInterface": "ens3", - "ipam": {"type": "dhcp"} - }, - { - "hostInterface": "br0", - "ipam": { - "type": "static", - "staticIPConfigurations": ["192.168.0.120/24"], - "staticRoutes": [ - {"destination": "0.0.0.0/0", "gateway": "192.168.0.1"} - ] - } - } -] -``` - -The first entry in the above configuration example will add an external interface in the pod using macvlan with `ipam` being set to `dhcp`. -Second entry will add an external interface in the pod using `bridge` and using static IP configuration for the external interface. diff --git a/test/ix-chart/2212.0.1/app-readme.md b/test/ix-chart/2212.0.1/app-readme.md deleted file mode 100644 index ab8d09d1e6..0000000000 --- a/test/ix-chart/2212.0.1/app-readme.md +++ /dev/null @@ -1,4 +0,0 @@ -# iX-Chart - -iX-chart is a chart designed to let user deploy a docker image in a TrueNAS SCALE kubernetes cluster. -It provides a mechanism to specify workload type, add external host interfaces in the pods, configure volumes and allocate host resources to the workload. diff --git a/test/ix-chart/2212.0.1/charts/common-2207.0.0.tgz b/test/ix-chart/2212.0.1/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/ix-chart/2212.0.1/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/ix-chart/2212.0.1/questions.yaml b/test/ix-chart/2212.0.1/questions.yaml deleted file mode 100644 index fc77ea49e1..0000000000 --- a/test/ix-chart/2212.0.1/questions.yaml +++ /dev/null @@ -1,647 +0,0 @@ -groups: - - name: "Container Images" - description: "Image to be used for container" - - name: "Container Entrypoint" - description: "Configuration of the executable that will be run when the container is started" - - name: "Container Environment Variables" - description: "Set the environment that will be visible to the container" - - name: "Networking" - description: "Configure networking for container" - - name: "Port Forwarding" - description: "Configure ports to forward to workload" - - name: "Storage" - description: "Persist and share data that is separate from the lifecycle of the container" - - name: "Health Check" - description: "Define mechanism to periodically probe the container to ensure it's functioning as desired" - - name: "Workload Details" - description: "Configure how workload should be deployed" - - name: "Scaling/Upgrade Policy" - description: "Configure how pods are replaced when configuration is upgraded" - - name: "Restart Policy" - description: "Configure when pod should be restarted in case of failure" - - name: "Resource Reservation" - description: "Specify resources to be allocated to workload" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - - name: "Portal Configuration" - description: "Configure UI web portal" - -questions: - - variable: enableUIPortal - label: "Enable WebUI Portal (only supported in TrueNAS SCALE Bluefin)" - description: "Enable webui portal for easier access to workload ( Only valid for TrueNAS SCALE Bluefin )" - group: "Portal Configuration" - schema: - type: boolean - default: false - - variable: portalDetails - label: "WebUI Portal" - description: "Configure WebUI Portal" - group: "Portal Configuration" - schema: - show_if: [["enableUIPortal", "=", true]] - type: dict - attrs: - - variable: portalName - label: "Portal Name" - description: "Specify a UI Portal name to use which would be displayed in the UI" - schema: - type: string - default: "Web Portal" - - variable: protocol - label: "Protocol for Portal" - description: "Specify protocol for portal" - schema: - type: string - default: "http" - enum: - - value: "http" - description: "HTTP Protocol" - - value: "https" - description: "HTTPS Protocol" - - variable: useNodeIP - label: "Use Node IP for Portal IP/Domain" - schema: - type: boolean - default: true - - variable: host - description: "IP/Domain to use for accessing the portal" - label: "Portal IP/Domain" - schema: - show_if: [["useNodeIP", "=", false]] - type: string - $ref: - - "definitions/nodeIP" - - variable: port - label: "Port" - description: "Specify port to be used for Portal access" - schema: - type: int - min: 9000 - max: 65535 - default: 15000 - - # Workload type - - variable: workloadType - description: "Please specify type of workload to deploy" - label: "Workload Type" - group: "Workload Details" - schema: - type: string - hidden: true - default: "Deployment" - required: true - enum: - - value: "Deployment" - description: "Deploy a Deployment workload" - - value: "Job" - description: "Deploy job workload" - - value: "CronJob" - description: "Deploy cronjob workload" - - # Cronjob schedule - - variable: cronSchedule - label: "Cron Schedule" - group: "Workload Details" - schema: - hidden: true - type: cron - show_if: [["workloadType", "=", "CronJob"]] - default: - minute: "5" - - # Image related - - variable: image - description: "Docker Image Details" - label: "Docker Image" - group: "Container Images" - schema: - type: dict - required: true - attrs: - - variable: repository - description: "Docker image repository" - label: "Image repository" - schema: - type: string - required: true - - variable: tag - description: "Tag to use for specified image" - label: "Image Tag" - schema: - type: string - default: "latest" - - variable: pullPolicy - description: "Docker Image Pull Policy" - label: "Image Pull Policy" - schema: - type: string - default: "IfNotPresent" - enum: - - value: "IfNotPresent" - description: "Only pull image if not present on host" - - value: "Always" - description: "Always pull image even if present on host" - - value: "Never" - description: "Never pull image even if it's not present on host" - - # Update strategy - - variable: updateStrategy - description: "Upgrade Policy" - label: "Update Strategy" - group: "Scaling/Upgrade Policy" - schema: - type: string - show_if: [["workloadType", "=", "Deployment"]] - default: "Recreate" - enum: - - value: "RollingUpdate" - description: "Create new pods and then kill old ones" - - value: "Recreate" - description: "Kill existing pods before creating new ones" - - # Restart Policy - - variable: jobRestartPolicy - description: "Restart Policy for Job" - label: "Restart Policy" - group: "Restart Policy" - schema: - hidden: true - type: string - default: "OnFailure" - show_if: [["workloadType", "!=", "Deployment"]] - enum: - - value: "OnFailure" - description: "Only restart job if it fails" - - value: "Never" - description: "Never restart job even if it fails" - - # Configurable CMD / Entrypoint / Environment Variables - - variable: containerCommand - description: "Commands to execute inside container overriding image CMD default" - label: "Container CMD" - group: "Container Entrypoint" - schema: - type: list - items: - - variable: command - description: "Container Command" - label: "Command" - schema: - type: string - - variable: containerArgs - description: "Specify arguments for container command" - label: "Container Args" - group: "Container Entrypoint" - schema: - type: list - items: - - variable: arg - description: "Container Arg" - label: "Arg" - schema: - type: string - - variable: containerEnvironmentVariables - description: "Container Environment Variables" - label: "Container Environment Variables" - group: "Container Environment Variables" - schema: - type: list - items: - - variable: environmentVariable - description: "Container Environment Variable" - label: "Container Environment Variable" - schema: - type: dict - attrs: - - variable: name - description: "Environment Variable Name" - label: "Environment Variable Name" - schema: - type: string - required: true - - variable: value - description: "Environment Variable Value" - label: "Environment Variable Value" - schema: - type: string - required: true - - # Networking options - - variable: externalInterfaces - description: "Add External Interfaces" - label: "Add external Interfaces" - group: "Networking" - schema: - type: list - items: - - variable: interfaceConfiguration - description: "Interface Configuration" - label: "Interface Configuration" - schema: - type: dict - $ref: - - "normalize/interfaceConfiguration" - attrs: - - variable: hostInterface - description: "Please specify host interface" - label: "Host Interface" - schema: - type: string - required: true - $ref: - - "definitions/interface" - - variable: ipam - description: "Define how IP Address will be managed" - label: "IP Address Management" - schema: - type: dict - required: true - attrs: - - variable: type - description: "Specify type for IPAM" - label: "IPAM Type" - schema: - type: string - required: true - enum: - - value: "dhcp" - description: "Use DHCP" - - value: "static" - description: "Use static IP" - show_subquestions_if: "static" - subquestions: - - variable: staticIPConfigurations - label: "Static IP Addresses" - schema: - type: list - items: - - variable: staticIP - label: "Static IP" - schema: - type: ipaddr - cidr: true - - variable: staticRoutes - label: "Static Routes" - schema: - type: list - items: - - variable: staticRouteConfiguration - label: "Static Route Configuration" - schema: - type: dict - attrs: - - variable: destination - label: "Destination" - schema: - type: ipaddr - cidr: true - required: true - - variable: gateway - label: "Gateway" - schema: - type: ipaddr - cidr: false - required: true - - - variable: dnsPolicy - label: "DNS Policy" - description: "Default behaviour is where Pod inherits the name resolution configuration from the node that the pods run on, if None is specified, It allows a Pod to ignore DNS settings from the Kubernetes environment." - group: "Networking" - schema: - type: string - default: "Default" - enum: - - value: "Default" - description: "Use Default DNS Policy where Pod will inherit the name resolution configuration from the node." - - value: "ClusterFirst" - description: > - "Kubernetes internal DNS will be prioritised and resolved first. If the domain does not resolve with internal - kubernetes DNS, the DNS query will be forwarded to the upstream nameserver inherited from the node. This is - useful if the workload needs to access other service(s)/workload(s) using kubernetes internal DNS." - - value: "ClusterFirstWithHostNet" - description: "For Pods running with hostNetwork and wanting to prioritise internal kubernetes DNS should make use of this policy." - - value: "None" - description: "Ignore DNS settings from the Kubernetes cluster" - - variable: dnsConfig - label: "DNS Configuration" - group: "Networking" - description: "Specify custom DNS configuration which will be applied to the pod" - schema: - type: dict - attrs: - - variable: nameservers - label: "Nameservers" - schema: - default: [] - type: list - items: - - variable: nameserver - label: "Nameserver" - schema: - type: string - - variable: searches - label: "Searches" - schema: - default: [] - type: list - items: - - variable: search - label: "Search Entry" - schema: - type: string - - variable: options - label: "DNS Options" - schema: - type: list - items: - - variable: optionsEntry - label: "Option Entry Configuration" - schema: - type: dict - attrs: - - variable: name - label: "Option Name" - schema: - type: string - required: true - - variable: value - label: "Option Value" - schema: - type: string - required: true - - - variable: hostNetwork - label: "Provide access to node network namespace for the workload" - group: "Networking" - schema: - type: boolean - default: false - show_if: [["externalInterfaces", "=", []]] - - - variable: hostPortsList - label: "Specify host ports for the workload" - description: "Only use host ports if scaling of a workload is not required" - group: "Networking" - schema: - show_if: [["updateStrategy", "=", "Recreate"]] - type: list - hidden: true - items: - - variable: hostPortConfiguration - label: "Host Port Configuration" - schema: - type: dict - attrs: - - variable: containerPort - label: "Container Port" - schema: - type: string - required: true - - variable: hostPort - label: "Host Port" - schema: - type: string - required: true - - - variable: portForwardingList - label: "Specify Node ports to forward to workload" - group: "Port Forwarding" - description: "Specify ports of node and workload to forward traffic from node port to workload port" - schema: - type: list - show_if: [["hostNetwork", "=", false]] - items: - - variable: portForwarding - label: "Port Forwarding Configuration" - schema: - type: dict - attrs: - - variable: containerPort - label: "Container Port" - schema: - type: int - required: true - - variable: nodePort - label: "Node Port" - schema: - type: int - required: true - max: 65535 - - variable: protocol - label: "Protocol" - schema: - type: string - default: "TCP" - enum: - - value: "TCP" - description: "TCP Protocol" - - value: "UDP" - description: "UDP Protocol" - - # Storage Options - # Host path based volumes - - variable: hostPathVolumes - label: "Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: hostPathConfiguration - label: "Host Path Configuration" - schema: - type: dict - attrs: - - variable: hostPath - label: "Host Path" - schema: - type: hostpath - required: true - - variable: mountPath - label: "Mount Path" - description: "Path where host path will be mounted inside the pod" - schema: - type: path - required: true - - variable: readOnly - label: "Read Only" - schema: - type: boolean - default: false - - - variable: emptyDirVolumes - label: "Memory Backed Volumes" - description: "Mount memory based temporary volumes for fast access i.e consuming /dev/shm" - group: "Storage" - schema: - type: list - items: - - variable: emptyDirVolume - label: "Memory Backed Volume" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path" - description: "Path where temporary path will be mounted inside the pod" - schema: - type: path - required: true - - # Volumes - - variable: volumes - label: "Volumes" - group: "Storage" - schema: - type: list - items: - - variable: volume - label: "Volume" - schema: - type: dict - $ref: - - "normalize/ixVolume" - attrs: - - variable: mountPath - label: "Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: datasetName - label: "Dataset Name" - schema: - type: string - required: true - - # Pod Probes - # Liveness Probe - - variable: livenessProbe - label: "Liveness Probe" - description: "Configure Liveness Probe" - group: "Health Check" - schema: - hidden: true - type: dict - default: null - "null": true - attrs: - - variable: command - label: "Liveness command" - description: "Specify a command to determine liveness of pod" - schema: - type: list - required: true - items: - - variable: commandArg - label: "Command Arg" - schema: - type: string - - variable: initialDelaySeconds - label: "Seconds Delay" - description: "Seconds to delay the first liveness probe" - schema: - type: int - default: 5 - - variable: periodSeconds - label: "Period Seconds" - description: "Specify number of seconds to run liveness probe" - schema: - type: int - default: 10 - - # Specify GPU configuration - - variable: gpuConfiguration - label: "GPU Configuration" - group: "Resource Reservation" - schema: - type: dict - $ref: - - "definitions/gpuConfiguration" - attrs: [] - - - 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: securityContext - label: "Security Context" - group: "Workload Details" - schema: - type: dict - attrs: - - variable: privileged - label: "Privileged Mode" - description: "Determines if any container in a pod can enable privileged mode. By default a container is not allowed to access any devices on the host, but a 'privileged' container is given access to all devices on the host. This allows the container nearly all the same access as processes running on the host." - schema: - type: boolean - default: false - - variable: capabilities - label: "Capabilities" - description: "With Linux capabilities, you can grant certain privileges to a process without granting all the privileges of the root user." - schema: - type: list - items: - - variable: capability - description: "Add Capability" - label: "Add Capability" - schema: - type: string - - variable: enableRunAsUser - label: "Configure Container User and Group ID" - description: "Configure security context runAsUser and runAsGroup variables" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: runAsUser - label: "Run Container As User" - description: "Configure user id for container." - schema: - type: int - default: 568 - - variable: runAsGroup - label: "Run Container As Group" - description: "Configure group id for container." - schema: - type: int - default: 568 - - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/test/ix-chart/2212.0.1/templates/NOTES.txt b/test/ix-chart/2212.0.1/templates/NOTES.txt deleted file mode 100644 index c3b3453e34..0000000000 --- a/test/ix-chart/2212.0.1/templates/NOTES.txt +++ /dev/null @@ -1,2 +0,0 @@ -1. Get the application URL by running these commands: - diff --git a/test/ix-chart/2212.0.1/templates/_containers.tpl b/test/ix-chart/2212.0.1/templates/_containers.tpl deleted file mode 100644 index e07bb9160c..0000000000 --- a/test/ix-chart/2212.0.1/templates/_containers.tpl +++ /dev/null @@ -1,77 +0,0 @@ -{{/* -Container Command -*/}} -{{- define "containerCommand" }} -{{- if .Values.containerCommand }} -command: - {{- range .Values.containerCommand }} - - {{ . | quote}} - {{- end }} -{{- end }} -{{- end }} - -{{/* -Container Args -*/}} -{{- define "containerArgs" }} -{{- if .Values.containerArgs }} -args: - {{- range .Values.containerArgs }} - - {{ . | quote}} - {{- end }} -{{- end }} -{{- end }} - -{{/* -Container Environment Variables -*/}} -{{- define "containerEnvVariables" }} -{{- if .Values.containerEnvironmentVariables }} -env: - {{- range .Values.containerEnvironmentVariables }} - - name: {{ .name | quote }} - value: {{ .value | quote }} - {{- end }} -{{- end }} -{{- end }} - -{{/* -Container Liveness Probe -*/}} -{{- define "containerLivenssProbe" }} -{{- if .Values.livenessProbe }} -livenessProbe: - exec: - command: - {{ toYaml .Values.livenessProbe.command | indent 16 }} - initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }} - periodSeconds: {{ .Values.periodSeconds }} -{{- end }} -{{- end }} - -{{/* -Container Ports -*/}} -{{- define "containerPorts" }} -{{- if or .Values.portForwardingList .Values.hostPortsList }} -ports: - {{- range $index, $config := .Values.portForwardingList }} - - containerPort: {{ $config.containerPort }} - {{- end }} - {{- range $index, $config := .Values.hostPortsList }} - - containerPort: {{ $config.containerPort }} - hostPort: {{ $config.hostPort }} - {{- end }} -{{- end }} -{{- end }} - -{{/* -Container Resource Configuration -*/}} -{{- define "containerResourceConfiguration" }} -{{- if .Values.gpuConfiguration }} -resources: - limits: - {{- toYaml .Values.gpuConfiguration | nindent 4 }} -{{- end }} -{{- end }} diff --git a/test/ix-chart/2212.0.1/templates/_helpers.tpl b/test/ix-chart/2212.0.1/templates/_helpers.tpl deleted file mode 100644 index 3d22e96fac..0000000000 --- a/test/ix-chart/2212.0.1/templates/_helpers.tpl +++ /dev/null @@ -1,71 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "ix-chart.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "ix-chart.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- $name := default .Chart.Name .Values.nameOverride }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} -{{- end }} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "ix-chart.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "ix-chart.labels" -}} -helm.sh/chart: {{ include "ix-chart.chart" . }} -{{ include "ix-chart.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "ix-chart.selectorLabels" -}} -app.kubernetes.io/name: {{ include "ix-chart.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} - -{{/* -Create the name of the service account to use -*/}} -{{- define "ix-chart.serviceAccountName" -}} -{{- if .Values.serviceAccount.create }} -{{- default (include "ix-chart.fullname" .) .Values.serviceAccount.name }} -{{- else }} -{{- default "default" .Values.serviceAccount.name }} -{{- end }} -{{- end }} - - -{{/* -Convert cron schema object to cron format -*/}} -{{- define "cronExpression" }} -{{- printf "%s %s %s %s %s " .minute .hour .dom .month .dow }} -{{- end }} diff --git a/test/ix-chart/2212.0.1/templates/_networking.tpl b/test/ix-chart/2212.0.1/templates/_networking.tpl deleted file mode 100644 index 417397f10b..0000000000 --- a/test/ix-chart/2212.0.1/templates/_networking.tpl +++ /dev/null @@ -1,30 +0,0 @@ -{{/* -DNS Configuration -*/}} -{{- define "dnsConfiguration" }} -dnsPolicy: {{ .Values.dnsPolicy }} -{{- if .Values.dnsConfig }} -dnsConfig: - {{- toYaml .Values.dnsConfig | nindent 2 }} -{{- end }} -{{- end }} - - -{{/* -Get configuration for host network -*/}} -{{- define "hostNetworkingConfiguration" -}} -{{- $host := default false .Values.hostNetwork -}} -{{- if or .Values.externalInterfaces (eq $host false) -}} -{{- print "false" -}} -{{- else -}} -{{- print "true" -}} -{{- end -}} -{{- end -}} - -{{/* Validate portal port */}} -{{- if .Values.enableUIPortal }} - {{- if and (not .Values.hostNetwork) (lt .Values.portalDetails.port 9000) }} - {{- fail (printf "Port (%d) is too low. Minimum allowed port is 9000." .Values.portalDetails.port) }} - {{- end }} -{{- end }} diff --git a/test/ix-chart/2212.0.1/templates/_volumes.tpl b/test/ix-chart/2212.0.1/templates/_volumes.tpl deleted file mode 100644 index 6e8aab21d6..0000000000 --- a/test/ix-chart/2212.0.1/templates/_volumes.tpl +++ /dev/null @@ -1,51 +0,0 @@ -{{/* -Volumes Configuration -*/}} -{{- define "volumeConfiguration" }} -{{- if or .Values.ixVolumes .Values.hostPathVolumes .Values.emptyDirVolumes }} -volumes: -{{ $host_p := list }} -{{- range $index, $hostPathConfiguration := .Values.hostPathVolumes }} - - name: ix-host-path-{{ $.Release.Name }}-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ $host_p = mustAppend $host_p $hostPathConfiguration.hostPath }} -{{- end }} -{{- range $index, $hostPathConfiguration := .Values.ixVolumes }} -{{ $dsName := base $hostPathConfiguration.hostPath }} - - name: ix-host-volume-{{ $.Release.Name }}-{{ $dsName }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ $host_p = mustAppend $host_p $hostPathConfiguration.hostPath }} -{{- end }} -{{ include "common.storage.hostPathsValidation" $host_p }} -{{- range $index, $emptyDirConfiguration := .Values.emptyDirVolumes }} - - name: ix-emptydir-volume-{{ $.Release.Name }}-{{ $index }} - emptyDir: - medium: Memory -{{- end }} -{{- end }} -{{- end }} - - -{{/* -Volume Mounts Configuration -*/}} -{{- define "volumeMountsConfiguration" }} -{{- if or .Values.hostPathVolumes .Values.ixVolumes .Values.emptyDirVolumes }} -volumeMounts: - {{- range $index, $hostPathConfiguration := .Values.hostPathVolumes }} - - mountPath: {{ $hostPathConfiguration.mountPath }} - name: ix-host-path-{{ $.Release.Name }}-{{ $index }} - readOnly: {{ $hostPathConfiguration.readOnly }} - {{- end }} - {{- range $index, $hostPathConfiguration := .Values.volumes }} - - mountPath: {{ $hostPathConfiguration.mountPath }} - name: ix-host-volume-{{ $.Release.Name }}-{{ $hostPathConfiguration.datasetName }} - {{- end }} - {{- range $index, $emptyDirConfiguration := .Values.emptyDirVolumes }} - - mountPath: {{ $emptyDirConfiguration.mountPath }} - name: ix-emptydir-volume-{{ $.Release.Name }}-{{ $index }} - {{- end }} -{{- end }} -{{- end }} diff --git a/test/ix-chart/2212.0.1/templates/_workload.tpl b/test/ix-chart/2212.0.1/templates/_workload.tpl deleted file mode 100644 index a561b81159..0000000000 --- a/test/ix-chart/2212.0.1/templates/_workload.tpl +++ /dev/null @@ -1,154 +0,0 @@ -{{/* -Check if workload type is a deployment -*/}} -{{- define "workloadIsDeployment" }} -{{- if eq .Values.workloadType "Deployment" }} -{{- true -}} -{{- else }} -{{- false -}} -{{- end }} -{{- end }} - -{{/* -Check if workload type is a cronjob -*/}} -{{- define "workloadIsCronJob" }} -{{- if eq .Values.workloadType "CronJob" }} -{{- true -}} -{{- else }} -{{- false -}} -{{- end }} -{{- end }} - -{{/* -Get API Version based on workload type -*/}} -{{- define "apiVersion" -}} -{{- if eq (include "workloadIsDeployment" .) "true" }} -{{- printf "apps/v1" }} -{{- else if eq (include "workloadIsCronJob" .) "true" }} -{{- printf "batch/v1beta1" }} -{{- else }} -{{- printf "batch/v1" }} -{{- end }} -{{- end }} - - -{{/* -Get Restart policy based on workload type -*/}} -{{- define "restartPolicy" -}} -{{- if eq (include "workloadIsDeployment" .) "true" }} -{{- print "Always" }} -{{- else }} -{{- printf "%s" .Values.jobRestartPolicy }} -{{- end }} -{{- end }} - - -{{/* -Pod specification -*/}} -{{- define "podSepc" }} -restartPolicy: {{ template "restartPolicy" . }} -hostNetwork: {{ template "hostNetworkingConfiguration" . }} -containers: -- name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 2 }} - {{- include "volumeMountsConfiguration" . | indent 2}} - tty: {{ .Values.tty }} - stdin: {{ .Values.stdin }} - securityContext: - privileged: {{ .Values.securityContext.privileged }} - {{ if .Values.securityContext.enableRunAsUser }} - runAsUser: {{ .Values.securityContext.runAsUser }} - runAsGroup: {{ .Values.securityContext.runAsGroup }} - {{ end }} - {{ if .Values.securityContext.capabilities }} - capabilities: - add: {{ toYaml .Values.securityContext.capabilities | nindent 8 }} - {{ end }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default "latest" }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- include "containerCommand" . | indent 2 }} - {{- include "containerArgs" . | indent 2 }} - {{- include "containerEnvVariables" . | indent 2 }} - {{- include "containerLivenssProbe" . | indent 2 }} - {{- include "containerPorts" . | indent 2 }} - {{- include "containerResourceConfiguration" . | indent 2 }} -{{- include "volumeConfiguration" . }} -{{- include "dnsConfiguration" . }} -{{- end }} - - -{{/* -Annotations for workload -*/}} -{{- define "workloadAnnotations" }} -rollme: {{ randAlphaNum 5 | quote }} -{{- if .Values.ixExternalInterfacesConfigurationNames }} -k8s.v1.cni.cncf.io/networks: {{ join ", " .Values.ixExternalInterfacesConfigurationNames }} -{{- end }} -{{- end }} - - -{{/* -Metadata for workload -*/}} -{{- define "commonMetadataWorkload" }} -labels: - {{- include "ix-chart.selectorLabels" . | nindent 2 }} -annotations: - {{- include "workloadAnnotations" . | nindent 2 }} -{{- end }} - -{{/* -Deployment Spec -*/}} -{{- define "deploymentSpec" }} -strategy: - {{- if and (eq .Values.updateStrategy "RollingUpdate") .Values.hostPortsList }} - {{- fail "RollingUpdate is not allowed when host ports are specified" }} - {{- else if and (eq .Values.updateStrategy "RollingUpdate") .Values.hostNetwork }} - {{- fail "RollingUpdate is not allowed when host network is enabled" }} - {{- end }} - type: {{ .Values.updateStrategy }} -selector: - matchLabels: - {{- include "ix-chart.selectorLabels" . | nindent 4 }} -template: - metadata: - {{ include "commonMetadataWorkload" . | nindent 4 }} - spec: - {{- include "podSepc" . | indent 4 }} -{{- end }} - - -{{/* -Job Spec Common -*/}} -{{- define "jobSpecCommon" }} -metadata: - {{ include "commonMetadataWorkload" . | nindent 4 }} -spec: - {{- include "podSepc" . | indent 2 }} -{{- end }} - - -{{/* -Job Spec -*/}} -{{- define "jobSpec" }} -template: -{{ include "jobSpecCommon" . | nindent 2 }} -{{- end }} - -{{/* -CronJob Spec -*/}} -{{- define "cronJobSpec" }} -schedule: {{ include "cronExpression" .Values.cronSchedule | quote }} -jobTemplate: - spec: - {{ include "jobSpec" . | nindent 4 }} -{{- end }} diff --git a/test/ix-chart/2212.0.1/templates/external-interfaces.yaml b/test/ix-chart/2212.0.1/templates/external-interfaces.yaml deleted file mode 100644 index f68c46f6b1..0000000000 --- a/test/ix-chart/2212.0.1/templates/external-interfaces.yaml +++ /dev/null @@ -1,9 +0,0 @@ -{{- range $index, $iface := .Values.ixExternalInterfacesConfiguration }} ---- -apiVersion: "k8s.cni.cncf.io/v1" -kind: NetworkAttachmentDefinition -metadata: - name: ix-{{ $.Release.Name }}-{{ $index }} -spec: - config: '{{ $iface }}' -{{- end }} diff --git a/test/ix-chart/2212.0.1/templates/service.yaml b/test/ix-chart/2212.0.1/templates/service.yaml deleted file mode 100644 index 4b0237d016..0000000000 --- a/test/ix-chart/2212.0.1/templates/service.yaml +++ /dev/null @@ -1,20 +0,0 @@ -{{- if and (.Values.portForwardingList) (eq (include "hostNetworkingConfiguration" .) "false") }} -apiVersion: v1 -kind: Service -metadata: - name: {{ include "ix-chart.fullname" . }} - labels: - {{- include "ix-chart.labels" . | nindent 4 }} -spec: - type: NodePort - ports: - {{- range $index, $config := .Values.portForwardingList }} - - port: {{ $config.containerPort }} - targetPort: {{ $config.containerPort }} - protocol: {{ $config.protocol }} - nodePort: {{ $config.nodePort }} - name: ix-{{ $.Release.Name }}-{{ $config.nodePort }}-{{ $index }} - {{- end }} - selector: - {{- include "ix-chart.selectorLabels" . | nindent 4 }} -{{- end }} diff --git a/test/ix-chart/2212.0.1/templates/tests/deployment-check.yaml b/test/ix-chart/2212.0.1/templates/tests/deployment-check.yaml deleted file mode 100644 index 465a2bd1fd..0000000000 --- a/test/ix-chart/2212.0.1/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-deployment-test" - annotations: - "helm.sh/hook": test -spec: - containers: - - name: {{ .Release.Name }}-deployment-test - image: "busybox" - command: - - nc - args: - - "-vz" - - "{{ include "ix-chart.fullname" . }}" - - "80" - restartPolicy: Never diff --git a/test/ix-chart/2212.0.1/templates/workload.yaml b/test/ix-chart/2212.0.1/templates/workload.yaml deleted file mode 100644 index 98df32b18a..0000000000 --- a/test/ix-chart/2212.0.1/templates/workload.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: {{ template "apiVersion" . }} -kind: {{ .Values.workloadType }} -metadata: - name: {{ include "ix-chart.fullname" . }} - labels: - {{- include "ix-chart.labels" . | nindent 4 }} -spec: - {{- if eq (include "workloadIsDeployment" .) "true" }} - {{ include "deploymentSpec" . | nindent 2 }} - {{- else if eq (include "workloadIsCronJob" .) "true" }} - {{ include "cronJobSpec" . | nindent 2 }} - {{- else }} - {{ include "jobSpec" . | nindent 2 }} - {{- end }} diff --git a/test/ix-chart/2212.0.1/test_values.yaml b/test/ix-chart/2212.0.1/test_values.yaml deleted file mode 100644 index 89bb16bc8c..0000000000 --- a/test/ix-chart/2212.0.1/test_values.yaml +++ /dev/null @@ -1,45 +0,0 @@ -# Default values for ix-chart. - -image: - repository: nginx - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: latest - -# Restart / Update policy -updateStrategy: RollingUpdate -jobRestartPolicy: OnFailure - -# Container CMD / entrypoint -containerCommand: [] -containerArgs: [] -containerEnvironmentVariables: [] - -# Network related configuration -externalInterfaces: [] -portForwardingList: [{"containerPort": 80, "nodePort": 32000}] -hostPortsList: [] -hostNetwork: false -dnsPolicy: Default -dnsConfig: - nameservers: [] - searches: [] - -# Storage related configuration -hostPathVolumes: [] -volumes: [] -emptyDirVolumes: [] - -# Probes -# Liveness Probe -livenessProbe: null - -# Workload type -workloadType: "Deployment" - -gpuConfiguration: {} -securityContext: - privileged: false - capabilities: [] -tty: true -stdin: true diff --git a/test/ix-chart/item.yaml b/test/ix-chart/item.yaml deleted file mode 100644 index 2a60e83cc4..0000000000 --- a/test/ix-chart/item.yaml +++ /dev/null @@ -1,2 +0,0 @@ -categories: - - generic diff --git a/test/machinaris/1.1.14/.helmignore b/test/machinaris/1.1.14/.helmignore deleted file mode 100644 index 46fd899656..0000000000 --- a/test/machinaris/1.1.14/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -# OWNERS file for Kubernetes -OWNERS diff --git a/test/machinaris/1.1.14/Chart.yaml b/test/machinaris/1.1.14/Chart.yaml deleted file mode 100644 index 9aaedb4837..0000000000 --- a/test/machinaris/1.1.14/Chart.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -appVersion: v0.8.5 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: Global, Versioned, peer-to-peer filesystem. -home: https://github.com/guydavis/machinaris -icon: https://raw.githubusercontent.com/guydavis/machinaris/main/web/static/favicon.ico -keywords: -- storage -- crypto -- blockchain -name: machinaris -sources: -- https://github.com/guydavis/machinaris -version: 1.1.14 diff --git a/test/machinaris/1.1.14/README.md b/test/machinaris/1.1.14/README.md deleted file mode 100644 index 5eaca51a69..0000000000 --- a/test/machinaris/1.1.14/README.md +++ /dev/null @@ -1,71 +0,0 @@ -Machinaris -===== - -[MACHINARIS](https://github.com/guydavis/machinaris) is an easy-to-use WebUI for Chia plotting and farming. This includes Chia, Plotman, MadMax, Chiadog under main node along with various coin-forks which can be enabled conditionally. - -Coins include Cactus, Chives, CrypoDoge, Flax, Flora, HDDCoin, Maize, NChain, StaiCoin, Stor, BTCGreen and Shibgreen. - -Introduction ------------- - -This chart bootstraps MACHINARIS deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. - -# Machinaris Defaults -This section contains information about the defaults of Machinaris application for visibility. - -## 1. Environment Variables -Following are the default environment variables for Machinaris main node and the coin forks. - -### Machinaris Node -Machinaris main node comes with following default environment variables: - -| Variable | Default Value | Description | -| ---------------- | ----------------------------------------------------- | --------------------- | -| TZ | Same as to User selected Timezone | Timezone information | -| worker_address | Same as to LAN IP address | Worker Address | -| blockchains | chia | Block Chain | -| plots_dir | Same as to User selected plots volume | Plots Directory | -| mode | fullnode | Machinaris Mode | - -These values can be overridden while configuring Machinaris application. - -### Coin Forks -Coin forks also come with a set of default environment variables: - -| Variable | Default Value | Description | -| ---------------- | ----------------------------------------------------- | --------------------- | -| TZ | Same as to User selected Timezone | Timezone information | -| worker_address | Same as to LAN IP address | Worker Address | -| blockchains | chia | BlockChain | -| plots_dir | Same as to User selected plots volume | Plots Directory | -| mode | fullnode | Machinaris Mode | -| controller_host| Same as to LAN IP address | Controller Host | -| worker_api_port| Coin's Workload REST API Port | Worker API Port | - -These defaults can be overridden for each coin fork when you enable them through Machinaris application configuration. - -## 2. Volumes - -Before getting to defaults, please take the following note: -> ->If Custom Host Path is not enabled for a Volume Configuration then, application will use ix-volumes and create datasets inside for Host Path by default. -> ->The path for ix-volumes has the following composition: ->``` ->/mnt//ix-applications/releases//volumes/ix-volumes/ ->``` ->And with the dataset inside, would be like: ->``` ->/mnt//ix-applications/releases//volumes/ix-volumes/> ->``` -> -Following are the Volume Configurations for Machinaris main node & the coin-forks by default: - -| Volume | hostPath (default value) | mountPath in container | Description | -| ---------------------- | ----------------------------------------------------- | ----------------------- | ----------------------------------------------- | -| `config` | `/config` | `/root/.chia` | Chia config for main node | -| `plots` | `/plots` | `/plots` | Plots volume for main node & coin forks | -| `plotting` | `/plotting` | `/plotting` | Plotting temp volume for main node & coin forks | -| `-config` | `/-config` | `/root/.chia` | Chia config for each of the coin-fork containers| - -Where `` is `/mnt//ix-applications/releases//volumes/ix_volumes/` and `` is one of the following: `[ cactus, chives, crypodoge, flax, flora, hddcoin, maize, nchain, staicoin, stor, btcgreen, shibgreen ]`. diff --git a/test/machinaris/1.1.14/app-readme.md b/test/machinaris/1.1.14/app-readme.md deleted file mode 100644 index e42a2ba7ac..0000000000 --- a/test/machinaris/1.1.14/app-readme.md +++ /dev/null @@ -1,66 +0,0 @@ -Machinaris -===== - -[MACHINARIS](https://github.com/guydavis/machinaris) is an easy-to-use WebUI for Chia plotting and farming. This includes Chia, Plotman, MadMax, Chiadog under main node along with various coin-forks which can be enabled conditionally. - -Coins include Cactus, Chives, CrypoDoge, Flax, Flora, HDDCoin, Maize, NChain, StaiCoin, Stor, BTCGreen and Shibgreen. - -# Machinaris Defaults -This section contains information about the defaults of Machinaris application for visibility. - -## 1. Environment Variables -Following are the default environment variables for Machinaris main node and the coin forks. - -### Machinaris Node -Machinaris main node comes with following default environment variables: - -| Variable | Default Value | Description | -| ---------------- | ----------------------------------------------------- | --------------------- | -| TZ | Same as to User selected Timezone | Timezone information | -| worker_address | Same as to LAN IP address | Worker Address | -| blockchains | chia | Block Chain | -| plots_dir | Same as to User selected plots volume | Plots Directory | -| mode | fullnode | Machinaris Mode | - -These values can be overridden while configuring Machinaris application. - -### Coin Forks -Coin forks also come with a set of default environment variables: - -| Variable | Default Value | Description | -| ---------------- | ----------------------------------------------------- | --------------------- | -| TZ | Same as to User selected Timezone | Timezone information | -| worker_address | Same as to LAN IP address | Worker Address | -| blockchains | chia | BlockChain | -| plots_dir | Same as to User selected plots volume | Plots Directory | -| mode | fullnode | Machinaris Mode | -| controller_host| Same as to LAN IP address | Controller Host | -| worker_api_port| Coin's Workload REST API Port | Worker API Port | - -These defaults can be overridden for each coin fork when you enable them through Machinaris application configuration. - -## 2. Volumes - -Before getting to defaults, please take the following note: -> ->If Custom Host Path is not enabled for a Volume Configuration then, application will use ix-volumes and create datasets inside for Host Path by default. -> ->The path for ix-volumes has the following composition: ->``` ->/mnt//ix-applications/releases//volumes/ix-volumes/ ->``` ->And with the dataset inside, would be like: ->``` ->/mnt//ix-applications/releases//volumes/ix-volumes/> ->``` -> -Following are the Volume Configurations for Machinaris main node & the coin-forks by default: - -| Volume | hostPath (default value) | mountPath in container | Description | -| ---------------------- | ----------------------------------------------------- | ----------------------- | ----------------------------------------------- | -| `config` | `/config` | `/root/.chia` | Chia config for main node | -| `plots` | `/plots` | `/plots` | Plots volume for main node & coin forks | -| `plotting` | `/plotting` | `/plotting` | Plotting temp volume for main node & coin forks | -| `-config` | `/-config` | `/root/.chia` | Chia config for each of the coin-fork containers| - -Where `` is `/mnt//ix-applications/releases//volumes/ix_volumes/` and `` is one of the following: `[ cactus, chives, crypodoge, flax, flora, hddcoin, maize, nchain, staicoin, stor, btcgreen, shibgreen ]`. diff --git a/test/machinaris/1.1.14/charts/common-2207.0.0.tgz b/test/machinaris/1.1.14/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/machinaris/1.1.14/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/machinaris/1.1.14/ix_values.yaml b/test/machinaris/1.1.14/ix_values.yaml deleted file mode 100644 index b81f32f414..0000000000 --- a/test/machinaris/1.1.14/ix_values.yaml +++ /dev/null @@ -1,195 +0,0 @@ -apiPort: 8927 -btcgreen: - apiPort: 8938 - farmerPort: 18655 - ports: - - containerPort: 8938 - name: api - protocol: TCP - - containerPort: 9282 - name: blockchain - protocol: TCP - - containerPort: 18655 - name: farming - protocol: TCP -cactus: - apiPort: 8936 - farmerPort: 11447 - ports: - - containerPort: 8936 - hostPort: 8936 - name: api - protocol: TCP - - containerPort: 11444 - hostPort: 11444 - name: blockchain - protocol: TCP - - containerPort: 11447 - hostPort: 11447 - name: farming - protocol: TCP -chives: - apiPort: 8931 - farmerPort: 9647 - ports: - - containerPort: 8931 - name: api - protocol: TCP - - containerPort: 9699 - name: blockchain - protocol: TCP - - containerPort: 9647 - name: farming - protocol: TCP -coins: -- cactus -- chives -- cryptodoge -- flax -- flora -- hddcoin -- maize -- nchain -- staicoin -- stor -- btcgreen -- shibgreen -cryptodoge: - apiPort: 8937 - farmerPort: 16895 - ports: - - containerPort: 8937 - name: api - protocol: TCP - - containerPort: 15994 - name: blockchain - protocol: TCP - - containerPort: 16895 - name: farming - protocol: TCP -farmerPort: 8447 -flax: - apiPort: 8928 - farmerPort: 6885 - ports: - - containerPort: 8928 - name: api - protocol: TCP - - containerPort: 6888 - name: blockchain - protocol: TCP - - containerPort: 6885 - name: farming - protocol: TCP -flora: - apiPort: 8932 - farmerPort: 18647 - ports: - - containerPort: 8932 - name: api - protocol: TCP - - containerPort: 18644 - name: blockchain - protocol: TCP - - containerPort: 18647 - name: farming - protocol: TCP -hddcoin: - apiPort: 8930 - farmerPort: 28447 - ports: - - containerPort: 8930 - name: api - protocol: TCP - - containerPort: 28444 - name: blockchain - protocol: TCP - - containerPort: 28447 - name: farming - protocol: TCP -image: - pullPolicy: IfNotPresent - repository: ghcr.io/guydavis/machinaris - tag: v0.8.5 -maize: - apiPort: 8933 - farmerPort: 8647 - ports: - - containerPort: 8933 - name: api - protocol: TCP - - containerPort: 8644 - name: blockchain - protocol: TCP - - containerPort: 8647 - name: farming - protocol: TCP -nchain: - apiPort: 8929 - farmerPort: 38447 - ports: - - containerPort: 8929 - name: api - protocol: TCP - - containerPort: 58445 - name: blockchain - protocol: TCP - - containerPort: 38447 - name: farming - protocol: TCP -ports: -- containerPort: 8444 - hostPort: 8444 - name: chia-network - protocol: TCP -- containerPort: 8926 - name: machinaris-ui - protocol: TCP -- containerPort: 8927 - hostPort: 8927 - name: machinaris-api - protocol: TCP -- containerPort: 8447 - hostPort: 8447 - name: farming - protocol: TCP -shibgreen: - apiPort: 8939 - farmerPort: 18974 - ports: - - containerPort: 8939 - name: api - protocol: TCP - - containerPort: 7442 - name: blockchain - protocol: TCP - - containerPort: 18974 - name: farming - protocol: TCP -staicoin: - apiPort: 8934 - farmerPort: 1692 - ports: - - containerPort: 8934 - name: api - protocol: TCP - - containerPort: 1999 - name: blockchain - protocol: TCP - - containerPort: 1692 - name: farming - protocol: TCP -stor: - apiPort: 8935 - farmerPort: 8337 - ports: - - containerPort: 8935 - name: api - protocol: TCP - - containerPort: 8668 - name: blockchain - protocol: TCP - - containerPort: 8337 - name: farming - protocol: TCP -updateStrategy: Recreate diff --git a/test/machinaris/1.1.14/questions.yaml b/test/machinaris/1.1.14/questions.yaml deleted file mode 100644 index d7e2965221..0000000000 --- a/test/machinaris/1.1.14/questions.yaml +++ /dev/null @@ -1,1753 +0,0 @@ -groups: - - name: "Networking" - description: "Configure Networking for Machinaris" - - name: "Machinaris Configuration" - description: "Machinaris configuration" - - name: "Storage" - description: "Configure Storage for Machinaris" - - name: "Machinaris Environment Variables" - description: "Set the environment that will be visible to the container" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - - name: "Configure Coins" - description: "Configure different coins" - -portals: - web_portal: - protocols: - - "http" - host: - - "$node_ip" - ports: - - "$variable-machinaris_ui_port" - -questions: - - variable: timezone - label: "Configure timezone" - group: "Machinaris Configuration" - description: "Configure timezone for machinaris" - schema: - type: string - $ref: - - "definitions/timezone" - - - variable: nodeIP - description: "LAN IP address of your TrueNAS server" - group: "Machinaris Configuration" - label: "Worker Address" - schema: - type: string - $ref: - - "definitions/nodeIP" - - - variable: machinaris_ui_port - label: "Machinaris Web UI" - group: "Networking" - description: "Web UI Port for Machinaris" - schema: - type: int - min: 9000 - max: 65535 - default: 9003 - - variable: machinarisApiPort - label: "Machinaris API port" - group: "Networking" - description: "API port for Machinaris" - schema: - editable: false - hidden: true - type: int - default: 8927 - - variable: appVolumeMounts - label: "Machinaris Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Machinaris Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Machinaris Configuration Volume" - schema: - type: hostpath - required: true - - variable: plots - label: "Plot Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Plots Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "plots" - editable: false - - variable: mountPath - label: "Plots Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/plots" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Machinaris Plots Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Machinaris Plots Volume" - schema: - type: hostpath - required: true - - variable: plotting - label: "Plotting Temp Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Plotting Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "plotting" - editable: false - - variable: mountPath - label: "Plotting Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/plotting" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Machinaris Plotting Temp Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Machinaris Plotting Volume" - schema: - type: hostpath - required: true - - - variable: extraAppVolumeMounts - label: "Machinaris Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Machinaris Host Path Volume" - description: "Add an extra host path volume for machinaris application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - - variable: environmentVariables - label: "Environment Variables for Machinaris" - group: "Machinaris Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" - - # Cactus Configurations - - variable: cactusEnabled - label: "Enable Cactus" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: cactus - label: "Configure Cactus" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "cactus-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # Chives Configurations - - variable: chivesEnabled - label: "Enable Chives" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: chives - label: "Configure Chives" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "chives-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # Cryptodoge Configurations - - variable: cryptodogeEnabled - label: "Enable Cryptodoge" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: cryptodoge - label: "Configure Cryptodoge" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "cryptodoge-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # Flax Configurations - - variable: flaxEnabled - label: "Enable Flax" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: flax - label: "Configure Flax" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "flax-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # Flora Configurations - - variable: floraEnabled - label: "Enable Flora" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: flora - label: "Configure Flora" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "flora-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # HDDCoin Configurations - - variable: hddcoinEnabled - label: "Enable HDDCoin" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hddcoin - label: "Configure HDDCoin" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "hddcoin-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # Maize Configurations - - variable: maizeEnabled - label: "Enable Maize" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: maize - label: "Configure Maize" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "maize-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # N-Chain Configurations - - variable: nchainEnabled - label: "Enable N-Chain" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: nchain - label: "Configure N-Chain" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "nchain-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - -# Staicoin Configurations - - variable: staicoinEnabled - label: "Enable Staicoin" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: staicoin - label: "Configure Staicoin" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "staicoin-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - # Stor Configurations - - variable: storEnabled - label: "Enable Stor" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: stor - label: "Configure Stor" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "stor-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - -# BTCGreen Configurations - - variable: btcgreenEnabled - label: "Enable BTCGreen" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: btcgreen - label: "Configure BTCGreen" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "btcgreen-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string -# Shibgreen Configurations - - variable: shibgreenEnabled - label: "Enable Shibgreen" - group: "Configure Coins" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: shibgreen - label: "Configure Shibgreen" - schema: - type: dict - additional_attrs: true - attrs: - - variable: volumeMounts - label: "Storage Configurations" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "shibgreen-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Configuration Volume" - schema: - type: hostpath - required: true - - variable: mnemonic - label: "Mnemonic Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Mnemonic Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "config" - editable: false - - variable: mountPath - label: "Mnemonic Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/root/.chia/mnemonic.txt" - - variable: subPath - label: "Subpath in the Dataset" - schema: - type: string - hidden: true - show_if: [["hostPathEnabled", "=", false]] - default: "mnemonic.txt" - editable: false - - variable: readOnly - label: "Mode" - description: "Mnemonic file mode" - schema: - type: boolean - hidden: true - editable: false - default: true - - variable: hostPathEnabled - label: "Enable Custom Host Path for Mnemonic Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Mnemonic Volume" - schema: - type: hostpath - required: true - - variable: environmentVariables - label: "Environment Variables" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string diff --git a/test/machinaris/1.1.14/requirements.lock b/test/machinaris/1.1.14/requirements.lock deleted file mode 100644 index 6e41de62f6..0000000000 --- a/test/machinaris/1.1.14/requirements.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:48.128962914+05:00" diff --git a/test/machinaris/1.1.14/templates/_helpers.tpl b/test/machinaris/1.1.14/templates/_helpers.tpl deleted file mode 100644 index 52c11e849b..0000000000 --- a/test/machinaris/1.1.14/templates/_helpers.tpl +++ /dev/null @@ -1,40 +0,0 @@ -{{/* -Init container for coin deployments -*/}} -{{- define "initContainers" -}} -{{- $values := . -}} -{{- $machinarisApiUrl := (printf "http://%v:%v/" $values.nodeIP $values.apiPort) -}} -initContainers: - - name: init-{{ $values.coinName }} - image: curlimages/curl:7.80.0 - command: ['sh', '-c', 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' {{ $machinarisApiUrl }})" != "200" ]]; do echo "Machinaris is offline. Retrying in 2 seconds.." && sleep 2; done'] -{{- end -}} - - -{{/* -Evironment variables (support for overrides) -*/}} -{{- define "allEnvironmentVariables" -}} -{{- $finalEnvironmentVariables := .defaultEnv -}} -{{- range $env := .environmentVariables -}} - {{- $_ := set $finalEnvironmentVariables $env.name $env.value -}} -{{- end -}} -env: -{{- range $envVariableName := keys $finalEnvironmentVariables }} - - name: {{ $envVariableName | quote }} - value: {{ (get $finalEnvironmentVariables $envVariableName) | quote }} -{{- end -}} -{{- end -}} - - -{{/* -Resource limits -*/}} -{{- define "resourceLimits" -}} -{{- if .Values.enableResourceLimits -}} -resources: - limits: - cpu: {{ .Values.cpuLimit }} - memory: {{ .Values.memLimit }} -{{- end -}} -{{- end -}} diff --git a/test/machinaris/1.1.14/templates/coins-deployment.yaml b/test/machinaris/1.1.14/templates/coins-deployment.yaml deleted file mode 100644 index 5419441d28..0000000000 --- a/test/machinaris/1.1.14/templates/coins-deployment.yaml +++ /dev/null @@ -1,46 +0,0 @@ -{{- $ref := . }} -{{- range $coinName := $ref.Values.coins }} -{{- $coinEnabled := get $ref.Values (printf "%vEnabled" $coinName) }} -{{- if $coinEnabled }} -{{- $coin := get $ref.Values $coinName }} -{{- $_ := set $ref "common" (dict "nameSuffix" $coinName) }} -{{- $_ := set $coin.volumeMounts "plots" $ref.Values.appVolumeMounts.plots }} -{{- $_ := set $coin.volumeMounts "plotting" $ref.Values.appVolumeMounts.plotting }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" $ref }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" $ref }} - labels: {{ include "common.labels" $ref | nindent 4 }} -spec: - strategy: - type: {{ $ref.Values.updateStrategy }} - selector: - matchLabels: {{ include "common.labels.selectorLabels" $ref | nindent 6 }} - template: - metadata: - name: {{ template "common.names.fullname" $ref }} - labels: {{ include "common.labels.selectorLabels" $ref | nindent 8 }} - spec: - hostNetwork: true - {{- include "initContainers" (dict "nodeIP" $ref.Values.nodeIP "apiPort" $ref.Values.machinarisApiPort "coinName" $coinName ) | nindent 6 }} - containers: - - name: {{ $ref.Chart.Name }} - {{- include "resourceLimits" $ref | nindent 10 }} - tty: true - {{ include "common.containers.imageConfig" (dict "repository" $ref.Values.image.repository "tag" $ref.Values.image.tag "pullPolicy" $ref.Values.image.pullPolicy "postfix" $ref.common.nameSuffix) | nindent 10 }} - {{ include "common.containers.configurePorts" $coin | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" (dict "appVolumeMounts" $coin.volumeMounts "ixVolumes" $ref.Values.ixVolumes) | nindent 12 }} - {{ range $index, $hostPathConfiguration := $ref.Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - {{ include "allEnvironmentVariables" (dict "defaultEnv" (dict "TZ" $ref.Values.timezone "worker_address" $ref.Values.nodeIP "worker_api_port" $coin.apiPort "controller_host" $ref.Values.nodeIP "controller_api_port" $ref.Values.apiPort "farmer_port" $coin.farmerPort "blockchains" $coinName "plots_dir" $ref.Values.appVolumeMounts.plots.mountPath "mode" "fullnode") "environmentVariables" $coin.environmentVariables) | nindent 10 }} - volumes: {{ include "common.storage.configureAppVolumes" (dict "appVolumeMounts" $coin.volumeMounts "ixVolumes" $ref.Values.ixVolumes) | nindent 8 }} - {{ range $index, $hostPathConfiguration := $ref.Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $coinName }}-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} ---- -{{- end }} -{{- end }} diff --git a/test/machinaris/1.1.14/templates/deployment.yaml b/test/machinaris/1.1.14/templates/deployment.yaml deleted file mode 100644 index 9425fc1045..0000000000 --- a/test/machinaris/1.1.14/templates/deployment.yaml +++ /dev/null @@ -1,39 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -{{- if hasKey . "common" }} -{{- $_ := unset .common "nameSuffix" }} -{{- end }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels" . | nindent 4 }} -spec: - strategy: - type: {{ .Values.updateStrategy }} - selector: - matchLabels: {{ include "common.labels.selectorLabels" . | nindent 6 }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels.selectorLabels" . | nindent 8 }} - spec: - # FIXME: Let's please remove hostnetwork when upstream hostport issue is sorted out with kube-router - hostNetwork: true - containers: - - name: {{ .Chart.Name }} - {{- include "resourceLimits" . | nindent 10 }} - tty: true - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - {{ include "common.containers.configurePorts" .Values | nindent 10 }} - {{ include "allEnvironmentVariables" (dict "defaultEnv" (dict "TZ" .Values.timezone "worker_address" .Values.nodeIP "worker_api_port" .Values.apiPort "controller_api_port" .Values.apiPort "farmer_port" .Values.farmerPort "blockchains" "chia" "plots_dir" .Values.appVolumeMounts.plots.mountPath "mode" "fullnode") "environmentVariables" .Values.environmentVariables) | nindent 10 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} diff --git a/test/machinaris/1.1.14/templates/service.yaml b/test/machinaris/1.1.14/templates/service.yaml deleted file mode 100644 index bc10f57869..0000000000 --- a/test/machinaris/1.1.14/templates/service.yaml +++ /dev/null @@ -1,6 +0,0 @@ -{{ $svc := .Values }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "pms" "port" $svc.machinaris_ui_port "nodePort" $svc.machinaris_ui_port "targetPort" "machinaris-ui") }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "ports" $ports "type" "NodePort" ) }} -{{ include "common.classes.service" $params }} diff --git a/test/machinaris/1.1.14/templates/tests/cactus-check.yaml b/test/machinaris/1.1.14/templates/tests/cactus-check.yaml deleted file mode 100644 index 775061f346..0000000000 --- a/test/machinaris/1.1.14/templates/tests/cactus-check.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-cactus-deployment-test" - annotations: - "helm.sh/hook": test -spec: - hostNetwork: true - restartPolicy: Never - containers: - - name: {{ .Release.Name }}-cactus-deployment-test - image: busybox - # Note: Adding sleep 15, as even when cactus pod status is ready, I've seen API - # taking a few seconds to be live and running. - command: ['sh', '-c', 'sleep 30 && nc -vz {{ .Values.nodeIP }} {{ .Values.cactus.apiPort }}'] diff --git a/test/machinaris/1.1.14/templates/tests/machinaris-check.yaml b/test/machinaris/1.1.14/templates/tests/machinaris-check.yaml deleted file mode 100644 index 29b612245e..0000000000 --- a/test/machinaris/1.1.14/templates/tests/machinaris-check.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-machinaris-deployment-test" - annotations: - "helm.sh/hook": test -spec: - hostNetwork: true - restartPolicy: Never - containers: - - name: {{ .Release.Name }}-machinaris-deployment-test - image: busybox - command: ['sh', '-c', 'nc -vz {{ .Values.nodeIP }} {{ .Values.machinarisApiPort }}'] diff --git a/test/machinaris/1.1.14/test_values.yaml b/test/machinaris/1.1.14/test_values.yaml deleted file mode 100644 index 6612b33824..0000000000 --- a/test/machinaris/1.1.14/test_values.yaml +++ /dev/null @@ -1,73 +0,0 @@ -apiPort: 8927 -appVolumeMounts: - config: - emptyDir: true - mountPath: /root/.chia - plots: - emptyDir: true - mountPath: /plots - plotting: - emptyDir: true - mountPath: /plotting -cactus: - apiPort: 8936 - environmentVariables: - - name: mode - value: plotter - farmerPort: 11447 - ports: - - containerPort: 8936 - hostPort: 8936 - name: api - protocol: TCP - - containerPort: 11444 - hostPort: 11444 - name: blockchain - protocol: TCP - - containerPort: 11447 - hostPort: 11447 - name: farming - protocol: TCP - volumeMounts: - cactus-config: - emptyDir: true - mountPath: /root/.chia - mnemonic: - emptyDir: true - mountPath: /root/.chia/mnemonic.txt - readOnly: true - subPath: mnemonic.txt -cactusEnabled: true -coins: -- cactus -cpuLimit: 0.5 -enableResourceLimits: true -environmentVariables: -- name: mode - value: fullnode -farmerPort: 8447 -image: - pullPolicy: IfNotPresent - repository: ghcr.io/guydavis/machinaris - tag: v0.8.1 -machinarisApiPort: 8927 -machinaris_ui_port: 31003 -memLimit: 1G -nodeIP: 127.0.0.1 -ports: -- containerPort: 8444 - hostPort: 8444 - name: chia-network - protocol: TCP -- containerPort: 8926 - name: machinaris-ui - protocol: TCP -- containerPort: 8927 - hostPort: 8927 - name: machinaris-api - protocol: TCP -- containerPort: 8447 - hostPort: 8447 - protocol: TCP -timezone: America/Edmonton -updateStrategy: Recreate diff --git a/test/machinaris/item.yaml b/test/machinaris/item.yaml deleted file mode 100644 index b6147ab399..0000000000 --- a/test/machinaris/item.yaml +++ /dev/null @@ -1,4 +0,0 @@ -categories: - - storage - - crypto -icon_url: https://raw.githubusercontent.com/guydavis/machinaris/main/web/static/machinaris.png diff --git a/test/machinaris/upgrade_info.json b/test/machinaris/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/test/machinaris/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/test/machinaris/upgrade_strategy_disable b/test/machinaris/upgrade_strategy_disable deleted file mode 100755 index 81ad1edb3b..0000000000 --- a/test/machinaris/upgrade_strategy_disable +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python3 -import json -import sys - -from catalog_update.upgrade_strategy import semantic_versioning - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - tags = {t.strip('v').replace('_', '.'): t for t in image_tags[key]} - version = semantic_versioning(image_tags[key]) - if not version: - return {} - - return { - 'tags': {key: tags[version]}, - 'app_version': tags[version], - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/minio/1.7.15/.helmignore b/test/minio/1.7.15/.helmignore deleted file mode 100644 index a9fe727881..0000000000 --- a/test/minio/1.7.15/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -# OWNERS file for Kubernetes -OWNERS \ No newline at end of file diff --git a/test/minio/1.7.15/CHANGELOG.md b/test/minio/1.7.15/CHANGELOG.md deleted file mode 100644 index a0f538acc7..0000000000 --- a/test/minio/1.7.15/CHANGELOG.md +++ /dev/null @@ -1,15 +0,0 @@ -# Change Log - -This contains all the notable changes to the MinIO application. - -## [1.5.0] - -1. On fresh installation, minIO data directory's ownership will be updated to minio:minio. -2. For existing installations that are exhibiting the upgrade, the minIO data directory's ownership will be migrated to minio:minio. - -## [1.6.2] - -1. Users with existing instances are advised to not update to the newer version. - MinIO released a major version change with no backwards compatibility. - In order to use newer versions of MinIO, a manual migration is needed. - For more information, visit https://min.io/docs/minio/linux/operations/install-deploy-manage/migrate-fs-gateway.html diff --git a/test/minio/1.7.15/Chart.yaml b/test/minio/1.7.15/Chart.yaml deleted file mode 100644 index 599e30dec2..0000000000 --- a/test/minio/1.7.15/Chart.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -appVersion: '2023-03-13' -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: High Performance, Kubernetes Native Object Storage -home: https://min.io -icon: https://min.io/resources/img/logo/MINIO_wordmark.png -keywords: -- storage -- object-storage -- S3 -name: minio -sources: -- https://github.com/minio/minio -- https://github.com/minio/charts -upstream_version: 8.0.5 -version: 1.7.15 diff --git a/test/minio/1.7.15/README.md b/test/minio/1.7.15/README.md deleted file mode 100755 index d21b8c0107..0000000000 --- a/test/minio/1.7.15/README.md +++ /dev/null @@ -1,52 +0,0 @@ -MinIO -===== - -[MinIO](https://min.io) is a High Performance Object Storage released under Apache License v2.0. It is API compatible with Amazon S3 cloud storage service. Use MinIO to build high performance infrastructure for machine learning, analytics and application data workloads. - -MinIO supports [distributed mode](https://docs.minio.io/docs/distributed-minio-quickstart-guide). In distributed mode, you can pool multiple drives (even on different machines) into a single object storage server. - -For more detailed documentation please visit [here](https://docs.minio.io/) - -Introduction ------------- - -This chart bootstraps MinIO deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. - - -Configuration -------------- - -The following table lists the configurable parameters of the MinIO chart and their default values. - -| Parameter | Description | Default | -|:-------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------| -| `image.repository` | Image repository | `minio/minio` | -| `image.tag` | MinIO image tag. Possible values listed [here](https://hub.docker.com/r/minio/minio/tags/). | `RELEASE.2020-11-06T23-17-07Z` | -| `image.pullPolicy` | Image pull policy | `IfNotPresent` | -| `extraArgs` | Additional command line arguments to pass to the MinIO server | `[]` | -| `accessKey` | Default access key (5 to 20 characters) | random 20 chars | -| `secretKey` | Default secret key (8 to 40 characters) | random 40 chars | -| `persistence.enabled` | Use persistent volume to store data | `true` | -| `persistence.size` | Size of persistent volume claim | `500Gi` | -| `persistence.existingClaim` | Use an existing PVC to persist data | `nil` | -| `persistence.storageClass` | Storage class name of PVC | `nil` | -| `persistence.accessMode` | ReadWriteOnce or ReadOnly | `ReadWriteOnce` | -| `persistence.subPath` | Mount a sub directory of the persistent volume if set | `""` | -| `environment` | Set MinIO server relevant environment variables in `values.yaml` file. MinIO containers will be passed these variables when they start. | `MINIO_STORAGE_CLASS_STANDARD: EC:4"` | - -Some parameters above map to the env variables defined in the [MinIO DockerHub image](https://hub.docker.com/r/minio/minio/). - -Pass environment variables to MinIO containers ----------------------------------------------- - -To pass environment variables to MinIO containers when deploying via Helm chart, use the below command line format - -```bash -$ helm install --set environment.MINIO_BROWSER=on,environment.MINIO_DOMAIN=domain-name minio/minio -``` - -You can add as many environment variables as required, using the above format. Just add `environment.=` under `set` flag. - -**NOTE** -- On fresh installation, minIO data directory's ownership will be updated to minio:minio. -- For existing installations that are exhibiting the upgrade to >=1.5.0, the minIO data directory's ownership will be migrated to minio:minio. diff --git a/test/minio/1.7.15/app-readme.md b/test/minio/1.7.15/app-readme.md deleted file mode 100644 index 648ed287e4..0000000000 --- a/test/minio/1.7.15/app-readme.md +++ /dev/null @@ -1,5 +0,0 @@ -[MinIO](https://min.io) is a High Performance Object Storage released under Apache License v2.0. It is API compatible with Amazon S3 cloud storage service. Use MinIO to build high performance infrastructure for machine learning, analytics and application data workloads. - -**NOTE** -- On installation, minIO data directory's ownership will be updated to minio:minio. -- For existing installations that are exhibiting the upgrade to >=1.5.0, the minIO data directory's ownership will be migrated to minio:minio. diff --git a/test/minio/1.7.15/charts/common-2207.0.0.tgz b/test/minio/1.7.15/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/minio/1.7.15/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/minio/1.7.15/ix_values.yaml b/test/minio/1.7.15/ix_values.yaml deleted file mode 100644 index 88563bc965..0000000000 --- a/test/minio/1.7.15/ix_values.yaml +++ /dev/null @@ -1,13 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: minio/minio - tag: RELEASE.2023-03-13T19-46-17Z -logSearchImage: - pullPolicy: IfNotPresent - repository: minio/operator - tag: v4.5.4 -logsearchapi: - diskCapacityGB: 5 - enabled: false -runAsGroup: 473 -runAsUser: 473 diff --git a/test/minio/1.7.15/migrations/migrate b/test/minio/1.7.15/migrations/migrate deleted file mode 100755 index 155c8ff372..0000000000 --- a/test/minio/1.7.15/migrations/migrate +++ /dev/null @@ -1,120 +0,0 @@ -#!/usr/bin/python3 -import json -import os -import sys -import subprocess -from pathlib import Path - -from middlewared.client import Client -from middlewared.service import ValidationErrors, CallError - - -def path_in_locked_datasets(path: str) -> bool: - with Client() as c: - return c.call('pool.dataset.path_in_locked_datasets', path) - - -def get_configured_user_group(path: str) -> dict: - with Client() as c: - return c.call('filesystem.stat', path) - - -def get_host_path_attachments(path: str) -> set: - with Client() as c: - return { - attachment['type'] - for attachment in c.call('pool.dataset.attachments_with_path', path) - if attachment['type'].lower() not in ['kubernetes', 'chart releases'] - } - - -def get_kubernetes_config() -> dict: - with Client() as c: - return c.call('kubernetes.config') - - -def validate_host_path(path: str, schema_name: str, verrors: ValidationErrors) -> None: - """ - These validations are taken from `FilesystemService._common_perm_path_validate`. - Including an additional validation that makes sure all the children under - a path are on same device. - """ - schema_name += ".migration.chown" - p = Path(path) - if not p.is_absolute(): - verrors.add(schema_name, f"Must be an absolute path: {path}") - - if p.is_file(): - verrors.add(schema_name, f"Recursive operations on a file are invalid: {path}") - - if not p.absolute().as_posix().startswith("/mnt/"): - verrors.add( - schema_name, - f"Changes to permissions on paths that are not beneath the directory /mnt are not permitted: {path}" - ) - elif len(p.resolve().parents) == 2: - verrors.add(schema_name, f"The specified path is a ZFS pool mountpoint: {path}") - - # Make sure that dataset is not locked - if path_in_locked_datasets(path): - verrors.add(schema_name, f"Dataset is locked at path: {path}.") - - # Validate attachments - if attachments := get_host_path_attachments(path): - verrors.add(schema_name, f"The path '{path}' is already attached to service(s): {', '.join(attachments)}.") - - # Make sure all the minio's data directory children are on same device. - device_id = os.stat(path).st_dev - for root, dirs, files in os.walk(path): - for child in dirs + files: - abs_path = os.path.join(root, child) - if os.stat(abs_path).st_dev != device_id: - verrors.add( - schema_name, - (f"All the children of MinIO data directory should be on " - f"same device as root: path={abs_path} device={os.stat(abs_path).st_dev}") - ) - break - - -def migrate(values: dict) -> dict: - # minio user / group ID - uid = gid = 473 - verrors = ValidationErrors() - k8s_config = get_kubernetes_config() - if values["appVolumeMounts"]["export"]["hostPathEnabled"]: - host_path = values["appVolumeMounts"]["export"]["hostPath"] - else: - app_dataset = values["appVolumeMounts"]["export"]["datasetName"] - host_path = os.path.join( - "/mnt", k8s_config['dataset'], "releases", values["release_name"], "volumes/ix_volumes", app_dataset - ) - - current_config = get_configured_user_group(host_path) - if current_config["uid"] == uid and current_config["gid"] == gid: - return values - - validate_host_path(host_path, values['release_name'], verrors) - verrors.check() - # chown the host path - acltool = subprocess.run([ - "/usr/bin/nfs4xdr_winacl", - "-a", "chown", - "-O", str(uid), "-G", str(gid), - "-r", - "-c", host_path, - "-p", host_path], check=False, capture_output=True - ) - if acltool.returncode != 0: - raise CallError(f"acltool [chown] on path {host_path} failed with error: [{acltool.stderr.decode().strip()}]") - - return values - - -if __name__ == "__main__": - if len(sys.argv) != 2: - exit(1) - - if os.path.exists(sys.argv[1]): - with open(sys.argv[1], "r") as f: - print(json.dumps(migrate(json.loads(f.read())))) diff --git a/test/minio/1.7.15/migrations/migrate_from_1.0.0 b/test/minio/1.7.15/migrations/migrate_from_1.0.0 deleted file mode 100755 index d9772faa1d..0000000000 --- a/test/minio/1.7.15/migrations/migrate_from_1.0.0 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/python3 -import json -import os -import sys - - -def migrate(values): - if values.get('appVolumeMounts'): - return values - - values.update({ - 'appVolumeMounts': { - 'export': { - 'hostPathEnabled': values['minioHostPathEnabled'], - **({'hostPath': values['minioHostPath']} if values.get('minioHostPath') else {}) - }, - }, - }) - return values - - -if __name__ == '__main__': - if len(sys.argv) != 2: - exit(1) - - if os.path.exists(sys.argv[1]): - with open(sys.argv[1], 'r') as f: - print(json.dumps(migrate(json.loads(f.read())))) diff --git a/test/minio/1.7.15/questions.yaml b/test/minio/1.7.15/questions.yaml deleted file mode 100644 index 4c6fb76d2d..0000000000 --- a/test/minio/1.7.15/questions.yaml +++ /dev/null @@ -1,378 +0,0 @@ -groups: - - name: "Container Images" - description: "Image to be used for container" - - name: "Workload Configuration" - description: "Configure workload deployment" - - name: "Minio Configuration" - description: "Configure Minio credentials" - - name: "Storage" - description: "Configure Storage for Nextcloud" - - name: "Advanced DNS Settings" - description: "Configure DNS settings" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - -portals: - web_portal: - protocols: - - "$kubernetes-resource_configmap_minio-config_protocol" - host: - - "$node_ip" - ports: - - "$variable-service.consolePort" - -questions: - - - variable: dnsConfig - label: "DNS Configuration" - group: "Advanced DNS Settings" - schema: - type: dict - attrs: - - variable: options - label: "DNS Options" - schema: - type: list - items: - - variable: optionsEntry - label: "Option Entry Configuration" - schema: - type: dict - attrs: - - variable: name - label: "Option Name" - schema: - type: string - required: true - - variable: value - label: "Option Value" - schema: - type: string - required: true - - - variable: updateStrategy - label: "Minio update strategy" - group: "Workload Configuration" - schema: - type: string - default: "RollingUpdate" - enum: - - value: "RollingUpdate" - description: "Create new pods and then kill old ones" - - value: "Recreate" - description: "Kill existing pods before creating new ones" - - - variable: distributedMode - label: "Enable Distributed Mode" - description: "Run Minio instance to connect to a distributed minio cluster" - group: "Minio Configuration" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: distributedIps - label: "Distributed Minio Instance URI(s)" - schema: - type: list - required: true - default: [] - items: - - variable: ip - label: "Distributed Minio Instance URI" - schema: - type: string - empty: false - - - - variable: extraArgs - label: "Minio Extra Arguments" - group: "Minio Configuration" - schema: - type: list - default: [] - items: - - variable: arg - label: "Argument" - schema: - type: string - - - variable: accessKey - label: "Root User" - group: "Minio Configuration" - description: "Enter the S3 Root User" - schema: - type: string - private: true - required: true - min_length: 5 - max_length: 20 - - - variable: secretKey - label: "Root Password" - group: "Minio Configuration" - description: "Enter the S3 Root Password" - schema: - type: string - private: true - required: true - min_length: 8 - max_length: 40 - - - variable: environmentVariables - label: "Minio image environment" - group: "Minio Configuration" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: service - description: "Minio Service Configuration" - label: "Minio Service Configuration" - group: "Minio Configuration" - schema: - type: dict - required: true - attrs: - - variable: nodePort - label: "Node Port to use for Minio API" - schema: - type: int - min: 9000 - max: 65535 - default: 9000 - required: true - - variable: consolePort - label: "Node Port to use for Minio UI Access" - schema: - type: int - min: 9000 - max: 65535 - default: 9002 - required: true - - - variable: minioDomain - label: "Minio Domain Name" - description: "This is only required if TLS is configured for Minio" - group: "Minio Configuration" - schema: - type: string - default: null - "null": true - show_if: [["certificate", "!=", null]] - - - variable: certificate - description: "Minio Certificate" - label: "Minio Certificate" - group: "Minio Configuration" - schema: - type: int - $ref: - - "definitions/certificate" - - - variable: logsearchapi - label: Log Search API Configuration - description: Log Search API Configuration - group: Minio Configuration - schema: - type: dict - attrs: - - variable: enabled - label: Enable Log Search API - description: Enables Log Search API and configures MinIO to use it. It also deploys a postgres DB for it. - schema: - type: boolean - default: false - - variable: diskCapacityGB - label: Disk Capacity in GB - description: Capacity in GB that logs are allowed to occupy. - schema: - type: int - show_if: [["enabled", "=", true]] - default: 5 - - - variable: appVolumeMounts - label: "Minio Storage" - group: "Storage" - schema: - type: dict - show_if: [["distributedMode", "=", false]] - attrs: - - variable: export - label: "Data Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Minio Data Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-minio" - editable: false - - variable: mountPath - label: "Minio Data Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - default: "/export" - immutable: true - - variable: hostPathEnabled - label: "Enable Host Path for Minio Data Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Minio Data Volume" - schema: - type: hostpath - required: true - immutable: true - - - variable: extraAppVolumeMounts - label: "Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Host Path Volume" - description: "Add an extra host path volume for Minio application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - - variable: postgresAppVolumeMounts - label: Postgres Storage - group: Storage - schema: - type: dict - attrs: - - variable: postgres-data - label: Postgres Data Volume - schema: - type: dict - attrs: - - variable: datasetName - label: Postgres Data Volume Name - schema: - type: string - hidden: true - $ref: - - normalize/ixVolume - default: ix-postgres_data - show_if: [["hostPathEnabled", "=", false]] - editable: false - - variable: mountPath - label: Postgresql Data Mount Path - description: Path where the volume will be mounted inside the pod - schema: - type: path - hidden: true - editable: false - default: /var/lib/postgresql/data - - variable: hostPathEnabled - label: Enable Host Path for Postgres Data Volume - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: Host Path for Postgres Data Volume - schema: - type: hostpath - required: true - immutable: true - - - variable: postgres-backup - label: Postgres Backup Volume - schema: - type: dict - attrs: - - variable: datasetName - label: Postgres Backup Volume Name - schema: - type: string - hidden: true - $ref: - - normalize/ixVolume - default: ix-postgres_backups - show_if: [["hostPathEnabled", "=", false]] - editable: false - - variable: mountPath - label: Postgresql Backup Mount Path - description: Path where the volume will be mounted inside the pod - schema: - type: path - hidden: true - editable: false - default: /postgres_backups - - variable: hostPathEnabled - label: Enable Host Path for Postgres Backup Volume - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: Host Path for Postgres Backup Volume - schema: - type: hostpath - required: true - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limresource limitsit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/test/minio/1.7.15/requirements.lock b/test/minio/1.7.15/requirements.lock deleted file mode 100644 index b787c28a7b..0000000000 --- a/test/minio/1.7.15/requirements.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:47.987169596+05:00" diff --git a/test/minio/1.7.15/templates/NOTES.txt b/test/minio/1.7.15/templates/NOTES.txt deleted file mode 100644 index 88e8e93ef8..0000000000 --- a/test/minio/1.7.15/templates/NOTES.txt +++ /dev/null @@ -1,2 +0,0 @@ -Minio can be accessed from the following URL: -http://$node_ip:{{ .Values.service.nodePort }}/ diff --git a/test/minio/1.7.15/templates/_cert.tpl b/test/minio/1.7.15/templates/_cert.tpl deleted file mode 100644 index f34777f65a..0000000000 --- a/test/minio/1.7.15/templates/_cert.tpl +++ /dev/null @@ -1,33 +0,0 @@ -{{/* -Formats volumeMount for Minio tls keys and trusted certs -*/}} -{{- define "minio.tlsKeysVolumeMount" -}} -{{- if eq (include "minio.certAvailable" .) "true" -}} -- name: cert-secret-volume - mountPath: "/etc/minio/certs" -- name: trusted-cert-secret-volume - mountPath: "/etc/minio/certs/CAs" -{{- end }} -{{- end -}} - -{{/* -Formats volume for Minio tls keys and trusted certs -*/}} -{{- define "minio.tlsKeysVolume" -}} -{{- if eq (include "minio.certAvailable" .) "true" -}} -- name: cert-secret-volume - secret: - secretName: {{ include "minio.secretName" . }} - items: - - key: certPublicKey - path: public.crt - - key: certPrivateKey - path: private.key -- name: trusted-cert-secret-volume - secret: - secretName: {{ include "minio.secretName" . }} - items: - - key: certPublicKey - path: public.crt -{{- end }} -{{- end -}} diff --git a/test/minio/1.7.15/templates/_helpers.tpl b/test/minio/1.7.15/templates/_helpers.tpl deleted file mode 100644 index 4dcb8c5dd9..0000000000 --- a/test/minio/1.7.15/templates/_helpers.tpl +++ /dev/null @@ -1,77 +0,0 @@ -{{/* -Determine secret name. -*/}} -{{- define "minio.secretName" -}} -{{- include "common.names.fullname" . -}} -{{- end -}} - - -{{/* -Retrieve true/false if minio certificate is configured -*/}} -{{- define "minio.certAvailable" -}} -{{- if .Values.certificate -}} -{{- $values := (. | mustDeepCopy) -}} -{{- $_ := set $values "commonCertOptions" (dict "certKeyName" $values.Values.certificate) -}} -{{- template "common.resources.cert_present" $values -}} -{{- else -}} -{{- false -}} -{{- end -}} -{{- end -}} - - -{{/* -Retrieve public key of minio certificate -*/}} -{{- define "minio.cert.publicKey" -}} -{{- $values := (. | mustDeepCopy) -}} -{{- $_ := set $values "commonCertOptions" (dict "certKeyName" $values.Values.certificate "publicKey" true) -}} -{{ include "common.resources.cert" $values }} -{{- end -}} - - -{{/* -Retrieve private key of minio certificate -*/}} -{{- define "minio.cert.privateKey" -}} -{{- $values := (. | mustDeepCopy) -}} -{{- $_ := set $values "commonCertOptions" (dict "certKeyName" $values.Values.certificate) -}} -{{ include "common.resources.cert" $values }} -{{- end -}} - - -{{/* -Retrieve scheme/protocol for minio -*/}} -{{- define "minio.scheme" -}} -{{- if eq (include "minio.certAvailable" .) "true" -}} -{{- print "https" -}} -{{- else -}} -{{- print "http" -}} -{{- end -}} -{{- end -}} - - -{{/* -Retrieve command for minio application -*/}} -{{- define "minio.commandArgs" -}} -{{- $arg := (printf "/usr/bin/docker-entrypoint.sh minio -S /etc/minio/certs server --console-address=':%d'" (.Values.service.consolePort | int)) -}} -{{- if .Values.distributedMode -}} -{{- cat $arg (join " " (concat (.Values.distributedIps | default list) (.Values.extraArgs | default list))) -}} -{{- else -}} -{{- cat $arg ((concat (list (printf "--address ':%d'" (.Values.service.nodePort | int))) (list (printf "%s" .Values.appVolumeMounts.export.mountPath)) (.Values.extraArgs | default list)) | join " ") -}} -{{- end -}} -{{- end -}} - - -{{/* -Enable host networking -*/}} -{{- define "minio.hostNetworking" -}} -{{- if .Values.distributedMode -}} -{{- print "true" -}} -{{- else -}} -{{- print "false" -}} -{{- end -}} -{{- end -}} diff --git a/test/minio/1.7.15/templates/_logsearchapi.tpl b/test/minio/1.7.15/templates/_logsearchapi.tpl deleted file mode 100644 index 7ca162d970..0000000000 --- a/test/minio/1.7.15/templates/_logsearchapi.tpl +++ /dev/null @@ -1,34 +0,0 @@ -{{- define "logsearchapi.imageName" -}} -{{- printf "%s:%s" .Values.logSearchImage.repository .Values.logSearchImage.tag -}} -{{- end -}} - -{{- define "logsearchapi.nameSuffix" -}} -{{- print "logsearchapi" -}} -{{- end -}} - -{{- define "logsearchapi.command" -}} -{{- print "/logsearchapi" -}} -{{- end -}} - -{{- define "logsearchapi.secretName" -}} -{{- print "logsearchapi-details" -}} -{{- end -}} - -{{- define "logsearchapi.envVariableConfiguration" -}} -{{- $envList := list -}} -{{- $secretName := (include "logsearchapi.secretName" .) -}} -{{- $postgresSecretName := (include "postgres.secretName" .) -}} -{{- $envList = mustAppend $envList (dict "name" "MINIO_LOG_QUERY_AUTH_TOKEN" "valueFromSecret" true "secretName" $secretName "secretKey" "queryToken") -}} -{{- $envList = mustAppend $envList (dict "name" "LOGSEARCH_AUDIT_AUTH_TOKEN" "valueFromSecret" true "secretName" $secretName "secretKey" "auditToken") -}} -{{- $envList = mustAppend $envList (dict "name" "LOGSEARCH_PG_CONN_STR" "valueFromSecret" true "secretName" $postgresSecretName "secretKey" "postgresURL") -}} -{{- $envList = mustAppend $envList (dict "name" "LOGSEARCH_DISK_CAPACITY_GB" "value" .Values.logsearchapi.diskCapacityGB) -}} -{{- include "common.containers.environmentVariables" (dict "environmentVariables" $envList) -}} -{{- end -}} - -{{/* Used in the minio init container (checks that logsearchapi is available) */}} -{{- define "logsearchapiInit.envVariableConfiguration" -}} -{{- $envList := list -}} -{{- $secretName := (include "logsearchapi.secretName" .) -}} -{{- $envList = mustAppend $envList (dict "name" "apiURL" "valueFromSecret" true "secretName" $secretName "secretKey" "logQueryURL") -}} -{{- include "common.containers.environmentVariables" (dict "environmentVariables" $envList) -}} -{{- end -}} diff --git a/test/minio/1.7.15/templates/_postgres.tpl b/test/minio/1.7.15/templates/_postgres.tpl deleted file mode 100644 index 63b577ee1c..0000000000 --- a/test/minio/1.7.15/templates/_postgres.tpl +++ /dev/null @@ -1,71 +0,0 @@ -{{- define "postgres.imageName" -}} -{{- print "postgres:14.5" -}} -{{- end -}} - -{{- define "postgres.nameSuffix" -}} -{{- print "postgres" -}} -{{- end -}} - -{{- define "postgres.secretName" -}} -{{- print "postgres-details" -}} -{{- end -}} - -{{- define "postgres.dbName" -}} -{{- print "logsearchapi" -}} -{{- end -}} - -{{- define "postgres.dbUser" -}} -{{- print "logsearchapi" -}} -{{- end -}} - -{{/* -Retrieve postgres backup name -This will return a unique name based on revision and chart numbers specified. -*/}} -{{- define "postgres.backupName" -}} -{{- $upgradeDict := .Values.ixChartContext.upgradeMetadata -}} -{{- printf "postgres-backup-from-%s-to-%s-revision-%d" $upgradeDict.oldChartVersion $upgradeDict.newChartVersion (int64 $upgradeDict.preUpgradeRevision) -}} -{{- end -}} - -{{- define "postgres.envVariableConfiguration" -}} -{{- $envList := list -}} -{{- $secretName := (include "postgres.secretName" .) -}} -{{- $envList = mustAppend $envList (dict "name" "POSTGRES_USER" "valueFromSecret" true "secretName" $secretName "secretKey" "db_user") -}} -{{- $envList = mustAppend $envList (dict "name" "POSTGRES_DB" "valueFromSecret" true "secretName" $secretName "secretKey" "db_name") -}} -{{- $envList = mustAppend $envList (dict "name" "POSTGRES_PASSWORD" "valueFromSecret" true "secretName" $secretName "secretKey" "db_password") -}} -{{- include "common.containers.environmentVariables" (dict "environmentVariables" $envList) -}} -{{- end -}} - -{{- define "postgresBackup.envVariableConfiguration" -}} -{{- $envList := list -}} -{{- $secretName := (include "postgres.secretName" .) -}} -{{- $envList = mustAppend $envList (dict "name" "POSTGRES_USER" "valueFromSecret" true "secretName" $secretName "secretKey" "db_user") -}} -{{- $envList = mustAppend $envList (dict "name" "POSTGRES_DB" "valueFromSecret" true "secretName" $secretName "secretKey" "db_name") -}} -{{/* PGPASSWORD is used by pg_dump */}} -{{- $envList = mustAppend $envList (dict "name" "PGPASSWORD" "valueFromSecret" true "secretName" $secretName "secretKey" "db_password") -}} -{{- $envList = mustAppend $envList (dict "name" "pgHost" "valueFromSecret" true "secretName" $secretName "secretKey" "postgresHost") -}} -{{- include "common.containers.environmentVariables" (dict "environmentVariables" $envList) -}} -{{- end -}} - -{{/* Used in the logsearchapi init container (checks that postgres is available) */}} -{{- define "postgresInit.envVariableConfiguration" -}} -{{- $envList := list -}} -{{- $secretName := (include "postgres.secretName" .) -}} -{{- $envList = mustAppend $envList (dict "name" "pgHost" "valueFromSecret" true "secretName" $secretName "secretKey" "postgresHost") -}} -{{- $envList = mustAppend $envList (dict "name" "pguser" "valueFromSecret" true "secretName" $secretName "secretKey" "db_user") -}} -{{- include "common.containers.environmentVariables" (dict "environmentVariables" $envList) -}} -{{- end -}} - -{{/* -Retrieve postgres volume configuration -*/}} -{{- define "postgres.volumeConfiguration" -}} -{{ include "common.storage.configureAppVolumes" (dict "appVolumeMounts" .Values.postgresAppVolumeMounts "emptyDirVolumes" .Values.emptyDirVolumes "ixVolumes" .Values.ixVolumes) | nindent 0 }} -{{- end -}} - -{{/* -Retrieve postgres volume mounts configuration -*/}} -{{- define "postgres.volumeMountsConfiguration" -}} -{{ include "common.storage.configureAppVolumeMountsInContainer" (dict "appVolumeMounts" .Values.postgresAppVolumeMounts ) | nindent 0 }} -{{- end -}} diff --git a/test/minio/1.7.15/templates/backup-postgres-config.yaml b/test/minio/1.7.15/templates/backup-postgres-config.yaml deleted file mode 100644 index e5892b8222..0000000000 --- a/test/minio/1.7.15/templates/backup-postgres-config.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: postgres-backup-hook-config-map - annotations: - rollme: {{ randAlphaNum 5 | quote }} -data: - entrypoint.sh: |- - #!/bin/sh - cmd="/docker-entrypoint.sh postgres" - eval "${cmd}" & disown; - until pg_isready -U "$POSTGRES_USER" -h "$pgHost"; do - sleep 5; - done; - pg_dump -U "$POSTGRES_USER" -d "$POSTGRES_DB" -h "$pgHost" -f /postgres_backups/$BACKUP_NAME.sql; diff --git a/test/minio/1.7.15/templates/backup-postgres-hook.yaml b/test/minio/1.7.15/templates/backup-postgres-hook.yaml deleted file mode 100644 index 5a576900b3..0000000000 --- a/test/minio/1.7.15/templates/backup-postgres-hook.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if .Values.logsearchapi.enabled -}} -{{- if .Values.ixChartContext.isUpgrade -}} -{{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" (include "postgres.nameSuffix" .)) }} -apiVersion: batch/v1 -kind: Job -metadata: - name: pre-upgrade-hook - annotations: - "helm.sh/hook": pre-upgrade - "helm.sh/hook-weight": "1" - "helm.sh/hook-delete-policy": hook-succeeded - rollme: {{ randAlphaNum 5 | quote }} -spec: - template: - metadata: - name: pre-upgrade-hook - spec: - restartPolicy: Never - containers: - - name: {{ .Chart.Name }}-postgres-backup - image: {{ include "postgres.imageName" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - env: {{ include "postgresBackup.envVariableConfiguration" $values | nindent 10 }} - - name: BACKUP_NAME - value: {{ include "postgres.backupName" . }} - volumeMounts: {{ include "postgres.volumeMountsConfiguration" $values | nindent 10 }} - - name: backup-script-configmap - mountPath: /bin/backup_entrypoint.sh - readOnly: true - subPath: entrypoint.sh - command: - - /bin/backup_entrypoint.sh - volumes: {{ include "postgres.volumeConfiguration" $values | nindent 8 }} - - name: backup-script-configmap - configMap: - defaultMode: 0700 - name: postgres-backup-hook-config-map -{{- end -}} -{{- end -}} diff --git a/test/minio/1.7.15/templates/configmap.yaml b/test/minio/1.7.15/templates/configmap.yaml deleted file mode 100644 index 98a62a3890..0000000000 --- a/test/minio/1.7.15/templates/configmap.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: minio-config -data: - protocol: {{ include "minio.scheme" . }} diff --git a/test/minio/1.7.15/templates/deployment.yaml b/test/minio/1.7.15/templates/deployment.yaml deleted file mode 100644 index f952770526..0000000000 --- a/test/minio/1.7.15/templates/deployment.yaml +++ /dev/null @@ -1,96 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -{{ $logsearchValues := (. | mustDeepCopy) }} -{{ $_ := set $logsearchValues "common" (dict "nameSuffix" (include "logsearchapi.nameSuffix" .)) }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - chart: {{ template "common.names.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} - annotations: - rollme: {{ randAlphaNum 5 | quote }} -spec: - replicas: {{ (default 1 .Values.replicas) }} - strategy: - type: {{ (default "Recreate" .Values.updateStrategy ) }} - selector: - matchLabels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - {{- include "common.labels.selectorLabels" . | nindent 8 }} - annotations: {{ include "common.annotations" . | nindent 8 }} - spec: - securityContext: - runAsUser: {{ .Values.runAsUser }} - runAsGroup: {{ .Values.runAsGroup }} - serviceAccountName: {{ include "common.names.serviceAccountName" . | quote }} - hostNetwork: {{ include "minio.hostNetworking" . }} - {{ if .Values.logsearchapi.enabled }} - initContainers: - - name: {{ .Chart.Name }}-waitapi - image: alpine/curl - imagePullPolicy: {{ .Values.image.pullPolicy }} - env: {{ include "logsearchapiInit.envVariableConfiguration" $logsearchValues | nindent 10 }} - command: - - sh - - -c - - "until curl $apiURL/status; do sleep 2; done" - {{ end }} - containers: - - name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 10 }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - {{- include "minio.tlsKeysVolumeMount" . | nindent 12 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - command: - - "/bin/sh" - - "-ce" - - {{ include "minio.commandArgs" . }} - ports: - - name: api - containerPort: {{ .Values.service.nodePort | int }} - - name: console - containerPort: {{ .Values.service.consolePort | int }} - env: - {{ $secretName := (include "minio.secretName" .) }} - {{ $envList := (default list .Values.environmentVariables) }} - {{ if and (eq (include "minio.certAvailable" .) "true") .Values.minioDomain }} - {{ $envList = mustAppend $envList (dict "name" "MINIO_BROWSER_REDIRECT_URL" "value" (printf "%s://%s:%d" (include "minio.scheme" .) .Values.minioDomain (.Values.service.consolePort | int))) }} - {{ $envList = mustAppend $envList (dict "name" "MINIO_SERVER_URL" "value" (printf "%s://%s:%d" (include "minio.scheme" .) .Values.minioDomain (.Values.service.nodePort | int))) }} - {{ end }} - {{ $envList = mustAppend $envList (dict "name" "MINIO_ROOT_USER" "valueFromSecret" true "secretName" $secretName "secretKey" "accesskey") }} - {{ $envList = mustAppend $envList (dict "name" "MINIO_ROOT_PASSWORD" "valueFromSecret" true "secretName" $secretName "secretKey" "secretkey") }} - {{ if .Values.logsearchapi.enabled }} - {{/* - We can put any ID we want here. Just make sure it's unique - It can be rolled on each startup without problems, or se can set a static one. - */}} - {{ $webhookID := (printf "ix-%v" (randAlphaNum 5)) }} - {{ $logsearchSecretName := (include "logsearchapi.secretName" .) }} - {{ $envList = mustAppend $envList (dict "name" "MINIO_LOG_QUERY_AUTH_TOKEN" "valueFromSecret" true "secretName" $logsearchSecretName "secretKey" "queryToken") }} - {{ $envList = mustAppend $envList (dict "name" "MINIO_LOG_QUERY_URL" "valueFromSecret" true "secretName" $logsearchSecretName "secretKey" "logQueryURL") }} - {{ $envList = mustAppend $envList (dict "name" (printf "MINIO_AUDIT_WEBHOOK_ENDPOINT_%v" $webhookID) "valueFromSecret" true "secretName" $logsearchSecretName "secretKey" "webhookURL") }} - {{ $envList = mustAppend $envList (dict "name" (printf "MINIO_AUDIT_WEBHOOK_ENABLE_%v" $webhookID) "value" "on") }} - {{ end }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} -{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - {{- include "minio.tlsKeysVolume" . | nindent 8 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} diff --git a/test/minio/1.7.15/templates/logsearchapi-deployment.yaml b/test/minio/1.7.15/templates/logsearchapi-deployment.yaml deleted file mode 100644 index 9a88dd46b3..0000000000 --- a/test/minio/1.7.15/templates/logsearchapi-deployment.yaml +++ /dev/null @@ -1,51 +0,0 @@ -{{ if .Values.logsearchapi.enabled }} -{{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" (include "logsearchapi.nameSuffix" .)) }} -{{ $pg_values := (. | mustDeepCopy) }} -{{ $_ := set $pg_values "common" (dict "nameSuffix" (include "postgres.nameSuffix" .)) }} -{{ include "common.deployment.common_config" $values | nindent 0 }} -spec: {{ include "common.deployment.common_spec" $values | nindent 2 }} - template: {{ include "common.deployment.pod.metadata" $values | nindent 4 }} - spec: - initContainers: - - name: {{ .Chart.Name }}-{{ include "logsearchapi.nameSuffix" . }}-waitdb - image: {{ include "postgres.imageName" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - env: {{ include "postgresInit.envVariableConfiguration" $pg_values | nindent 10 }} - command: - - sh - - -c - - 'until pg_isready -U "$pgUser" -h "$pgHost"; do sleep 2; done' - containers: - - name: {{ .Chart.Name }}-{{ include "logsearchapi.nameSuffix" . }} - image: {{ include "logsearchapi.imageName" . }} - imagePullPolicy: {{ .Values.logSearchImage.pullPolicy }} - env: {{ include "logsearchapi.envVariableConfiguration" $values | nindent 10 }} - command: - - {{ include "logsearchapi.command" . }} - ports: - - name: logsearchapi - containerPort: 8080 - protocol: TCP - readinessProbe: - httpGet: - path: /status - port: 8080 - failureThreshold: 5 - periodSeconds: 15 - initialDelaySeconds: 15 - livenessProbe: - httpGet: - path: /status - port: 8080 - failureThreshold: 5 - periodSeconds: 15 - initialDelaySeconds: 15 - startupProbe: - httpGet: - path: /status - port: 8080 - failureThreshold: 5 - periodSeconds: 15 - initialDelaySeconds: 15 -{{ end }} diff --git a/test/minio/1.7.15/templates/logsearchapi-secret.yaml b/test/minio/1.7.15/templates/logsearchapi-secret.yaml deleted file mode 100644 index a8a233d7e7..0000000000 --- a/test/minio/1.7.15/templates/logsearchapi-secret.yaml +++ /dev/null @@ -1,25 +0,0 @@ -{{ if .Values.logsearchapi.enabled }} -{{ $logSearchValues := (. | mustDeepCopy) }} -{{ $_ := set $logSearchValues "common" (dict "nameSuffix" (include "logsearchapi.nameSuffix" .)) }} - -{{ $auditToken := randAlphaNum 32 | b64enc }} -{{ $queryToken := randAlphaNum 32 | b64enc }} - -apiVersion: v1 -kind: Secret -metadata: - name: {{ include "logsearchapi.secretName" . }} -data: - {{ with (lookup "v1" "Secret" .Release.Namespace (include "logsearchapi.secretName" .)) }} - {{ $auditToken = (index .data "auditToken") }} - {{ end }} - auditToken: {{ $auditToken }} - - {{ with (lookup "v1" "Secret" .Release.Namespace (include "logsearchapi.secretName" .)) }} - {{ $queryToken = (index .data "queryToken") }} - {{ end }} - queryToken: {{ $queryToken }} - - logQueryURL: {{ (printf "http://%v:8080" (include "common.names.fullname" $logSearchValues)) | b64enc }} - webhookURL: {{ (printf "http://%v:8080/api/ingest?token=%v" (include "common.names.fullname" $logSearchValues) ($auditToken | b64dec)) | b64enc }} -{{ end }} diff --git a/test/minio/1.7.15/templates/logsearchapi-service.yaml b/test/minio/1.7.15/templates/logsearchapi-service.yaml deleted file mode 100644 index f9db1a86cf..0000000000 --- a/test/minio/1.7.15/templates/logsearchapi-service.yaml +++ /dev/null @@ -1,6 +0,0 @@ -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "logsearchapi-tcp" "port" 8080 "targetPort" 8080) }} -{{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" (include "logsearchapi.nameSuffix" .)) }} -{{ $_1 := set $values "commonService" (dict "type" "ClusterIP" "ports" $ports ) }} -{{ include "common.classes.service" $values }} diff --git a/test/minio/1.7.15/templates/postgres-deployment.yaml b/test/minio/1.7.15/templates/postgres-deployment.yaml deleted file mode 100644 index 521fd7b152..0000000000 --- a/test/minio/1.7.15/templates/postgres-deployment.yaml +++ /dev/null @@ -1,56 +0,0 @@ -{{ if .Values.logsearchapi.enabled }} -{{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" (include "postgres.nameSuffix" .)) }} -{{ include "common.deployment.common_config" $values | nindent 0 }} -spec: - replicas: {{ (default 1 .Values.replicas) }} - strategy: - type: Recreate - selector: - matchLabels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - template: {{ include "common.deployment.pod.metadata" $values | nindent 4 }} - spec: - containers: - - name: {{ .Chart.Name }}-{{ include "postgres.nameSuffix" .}} - image: {{ template "postgres.imageName" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - env: {{ include "postgres.envVariableConfiguration" $values | nindent 10 }} - volumeMounts: {{ include "postgres.volumeMountsConfiguration" $values | nindent 10 }} - ports: - - name: postgres-tcp - containerPort: 5432 - protocol: TCP - readinessProbe: - exec: - command: - - sh - - -c - - "until pg_isready -U${POSTGRES_USER} -h localhost; do sleep 2; done" - initialDelaySeconds: 15 - failureThreshold: 5 - periodSeconds: 15 - timeoutSeconds: 2 - livenessProbe: - exec: - command: - - sh - - -c - - "until pg_isready -U${POSTGRES_USER} -h localhost; do sleep 2; done" - initialDelaySeconds: 15 - failureThreshold: 5 - periodSeconds: 15 - timeoutSeconds: 2 - startupProbe: - exec: - command: - - sh - - -c - - "until pg_isready -U${POSTGRES_USER} -h localhost; do sleep 2; done" - initialDelaySeconds: 15 - failureThreshold: 20 - periodSeconds: 15 - timeoutSeconds: 2 - volumes: {{ include "postgres.volumeConfiguration" $values | nindent 8 }} -{{ end }} diff --git a/test/minio/1.7.15/templates/postgres-secret.yaml b/test/minio/1.7.15/templates/postgres-secret.yaml deleted file mode 100644 index 563c2b2d15..0000000000 --- a/test/minio/1.7.15/templates/postgres-secret.yaml +++ /dev/null @@ -1,22 +0,0 @@ -{{ if .Values.logsearchapi.enabled }} -{{ $pgValues := (. | mustDeepCopy) }} -{{ $_ := set $pgValues "common" (dict "nameSuffix" (include "postgres.nameSuffix" .)) }} - -{{ $dbPass := randAlphaNum 32 | b64enc }} - -apiVersion: v1 -kind: Secret -metadata: - name: {{ include "postgres.secretName" . }} -data: - {{ with (lookup "v1" "Secret" .Release.Namespace (include "postgres.secretName" .)) }} - {{ $dbPass = (index .data "db_password") }} - {{ end }} - db_password: {{ $dbPass }} - - db_user: {{ include "postgres.dbUser" . | b64enc }} - db_name: {{ include "postgres.dbName" . | b64enc }} - - postgresURL: {{ printf "postgres://%v:%v@%v:5432/%v?sslmode=disable" (include "postgres.dbUser" .) ($dbPass | b64dec) (include "common.names.fullname" $pgValues) (include "postgres.dbName" .) | b64enc }} - postgresHost: {{ printf "%v" (include "common.names.fullname" $pgValues) | b64enc }} -{{ end }} diff --git a/test/minio/1.7.15/templates/postgres-service.yaml b/test/minio/1.7.15/templates/postgres-service.yaml deleted file mode 100644 index 2bdb1e8a97..0000000000 --- a/test/minio/1.7.15/templates/postgres-service.yaml +++ /dev/null @@ -1,6 +0,0 @@ -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "postgres-tcp" "port" 5432 "targetPort" 5432) }} -{{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" (include "postgres.nameSuffix" .)) }} -{{ $_1 := set $values "commonService" (dict "type" "ClusterIP" "ports" $ports ) }} -{{ include "common.classes.service" $values }} diff --git a/test/minio/1.7.15/templates/pre-install-job.yaml b/test/minio/1.7.15/templates/pre-install-job.yaml deleted file mode 100644 index 26a6212c47..0000000000 --- a/test/minio/1.7.15/templates/pre-install-job.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-job" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - helm.sh/chart: {{ template "common.names.chart" . }} - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-delete-policy": hook-succeeded -spec: - template: - metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-hook" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - helm.sh/chart: {{ template "common.names.chart" . }} - spec: - restartPolicy: Never - containers: - - name: pre-install-job - image: "alpine:latest" - command: ["chown", "-R", "{{ .Values.runAsUser }}:{{ .Values.runAsGroup }}", "{{ .Values.appVolumeMounts.export.mountPath }}"] - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} diff --git a/test/minio/1.7.15/templates/secrets.yaml b/test/minio/1.7.15/templates/secrets.yaml deleted file mode 100644 index 4085fd585b..0000000000 --- a/test/minio/1.7.15/templates/secrets.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: {{ template "minio.secretName" . }} - labels: {{ include "common.labels" . | nindent 4 }} -type: Opaque -data: - accesskey: {{ if .Values.accessKey }}{{ .Values.accessKey | toString | b64enc | quote }}{{ else }}{{ randAlphaNum 20 | b64enc | quote }}{{ end }} - secretkey: {{ if .Values.secretKey }}{{ .Values.secretKey | toString | b64enc | quote }}{{ else }}{{ randAlphaNum 40 | b64enc | quote }}{{ end }} - {{ if eq (include "minio.certAvailable" .) "true" }} - certPublicKey: {{ (include "minio.cert.publicKey" .) | toString | b64enc | quote }} - certPrivateKey: {{ (include "minio.cert.privateKey" .) | toString | b64enc | quote }} - {{ end }} diff --git a/test/minio/1.7.15/templates/service.yaml b/test/minio/1.7.15/templates/service.yaml deleted file mode 100644 index cbb4afc3dc..0000000000 --- a/test/minio/1.7.15/templates/service.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{{ if eq (include "minio.hostNetworking" .) "false" }} -{{ $svc := .Values.service }} -{{ $selectors := list }} -{{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }} -{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "api" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" (.Values.service.nodePort | int)) }} -{{ $ports = mustAppend $ports (dict "name" "console" "port" $svc.consolePort "nodePort" $svc.consolePort "targetPort" (.Values.service.consolePort | int)) }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{ $_1 := set .Values "extraSelectorLabels" $selectors }} -{{ include "common.classes.service" $params }} -{{ end }} diff --git a/test/minio/1.7.15/templates/serviceaccount.yaml b/test/minio/1.7.15/templates/serviceaccount.yaml deleted file mode 100644 index 12bd3f4a39..0000000000 --- a/test/minio/1.7.15/templates/serviceaccount.yaml +++ /dev/null @@ -1 +0,0 @@ -{{ include "common.serviceaccount" . }} diff --git a/test/minio/1.7.15/templates/tests/deployment-check.yaml b/test/minio/1.7.15/templates/tests/deployment-check.yaml deleted file mode 100644 index af842d4690..0000000000 --- a/test/minio/1.7.15/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-minio-test" - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}:{{ .Values.service.consolePort }}/ - restartPolicy: Never diff --git a/test/minio/1.7.15/test_values.yaml b/test/minio/1.7.15/test_values.yaml deleted file mode 100644 index a16c1b8cf0..0000000000 --- a/test/minio/1.7.15/test_values.yaml +++ /dev/null @@ -1,45 +0,0 @@ -appVolumeMounts: - export: - emptyDir: true - mountPath: /export -distributedIps: [] -distributedMode: false -dnsConfig: - options: [] -emptyDirVolumes: true -environmentVariables: [] -extraAppVolumeMounts: [] -extraArgs: [] -image: - pullPolicy: IfNotPresent - repository: minio/minio - tag: RELEASE.2023-03-13T19-46-17Z -ixChartContext: {} -logSearchImage: - pullPolicy: IfNotPresent - repository: minio/operator - tag: v4.5.4 -logsearchapi: - diskCapacityGB: 5 - enabled: true -minioDomain: null -postgresAppVolumeMounts: - postgres-backup: - emptyDir: true - mountPath: /postgres_backups - postgres-data: - emptyDir: true - mountPath: /var/lib/postgresql/data -postgresql: - backupVolume: - datasetName: ix-postgres_backups - mountPath: /postgres_backups - dataVolume: - datasetName: ix-postgres_data - mountPath: /var/lib/postgresql/data -runAsGroup: 473 -runAsUser: 473 -service: - consolePort: 32325 - nodePort: 32324 -updateStrategy: RollingUpdate diff --git a/test/minio/item.yaml b/test/minio/item.yaml deleted file mode 100644 index 4f175acf54..0000000000 --- a/test/minio/item.yaml +++ /dev/null @@ -1,4 +0,0 @@ -categories: - - storage - - S3 -icon_url: https://min.io/resources/img/logo/MINIO_wordmark.png diff --git a/test/minio/upgrade_info.json b/test/minio/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/test/minio/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/test/minio/upgrade_strategy b/test/minio/upgrade_strategy deleted file mode 100755 index 1d3be0fbdf..0000000000 --- a/test/minio/upgrade_strategy +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python3 -import json -import sys - -from catalog_update.upgrade_strategy import datetime_versioning - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - tags = {t.strip('RELEASE.'): t for t in image_tags[key] if t.startswith('RELEASE.') and t.endswith('Z')} - version = datetime_versioning(list(tags), '%Y-%m-%dT%H-%M-%SZ') - if not version: - return {} - - return { - 'tags': {key: tags[version]}, - 'app_version': version.split('T')[0], - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/netdata/1.0.15/.helmignore b/test/netdata/1.0.15/.helmignore deleted file mode 100644 index a9fe727881..0000000000 --- a/test/netdata/1.0.15/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -# OWNERS file for Kubernetes -OWNERS \ No newline at end of file diff --git a/test/netdata/1.0.15/Chart.yaml b/test/netdata/1.0.15/Chart.yaml deleted file mode 100644 index fdf50c90ff..0000000000 --- a/test/netdata/1.0.15/Chart.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -appVersion: v1.38.1 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: Real-time performance monitoring, done right! -home: https://www.netdata.cloud/ -icon: https://netdata.github.io/helmchart/logo.png -keywords: -- alerting -- metric -- monitoring -name: netdata -sources: -- https://github.com/netdata/helmchart -- https://github.com/netdata/netdata -upstream_version: 3.7.12 -version: 1.0.15 diff --git a/test/netdata/1.0.15/README.md b/test/netdata/1.0.15/README.md deleted file mode 100755 index 236b8a4f8b..0000000000 --- a/test/netdata/1.0.15/README.md +++ /dev/null @@ -1,10 +0,0 @@ -Netdata -===== - -[Netdata](https://www.netdata.cloud/) is a fast, easy monitoring and troubleshooting system. - - -Introduction ------------- - -This chart bootstraps Netdata deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. diff --git a/test/netdata/1.0.15/app-readme.md b/test/netdata/1.0.15/app-readme.md deleted file mode 100644 index 09f11cfa63..0000000000 --- a/test/netdata/1.0.15/app-readme.md +++ /dev/null @@ -1 +0,0 @@ -[Netdata](https://www.netdata.cloud/) is a fast, easy monitoring and troubleshooting system. diff --git a/test/netdata/1.0.15/charts/common-2207.0.0.tgz b/test/netdata/1.0.15/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/netdata/1.0.15/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/netdata/1.0.15/ix_values.yaml b/test/netdata/1.0.15/ix_values.yaml deleted file mode 100644 index 416ffa0adb..0000000000 --- a/test/netdata/1.0.15/ix_values.yaml +++ /dev/null @@ -1,6 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: netdata/netdata - tag: v1.38.1 -runAsGroup: 201 -runAsUser: 201 diff --git a/test/netdata/1.0.15/questions.yaml b/test/netdata/1.0.15/questions.yaml deleted file mode 100644 index 1e1b727e69..0000000000 --- a/test/netdata/1.0.15/questions.yaml +++ /dev/null @@ -1,253 +0,0 @@ -groups: - - name: "Container Images" - description: "Image to be used for container" - - name: "Workload Configuration" - description: "Configure workload deployment" - - name: "Netdata Configuration" - description: "Configure Netdata credentials" - - name: "Storage" - description: "Configure Storage for Netdata" - - name: "Advanced DNS Settings" - description: "Configure DNS settings" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - -portals: - web_portal: - protocols: - - "http" - host: - - "$node_ip" - ports: - - "$variable-service.nodePort" - -questions: - - variable: dnsConfig - label: "DNS Configuration" - group: "Advanced DNS Settings" - schema: - type: dict - attrs: - - variable: options - label: "DNS Options" - schema: - type: list - items: - - variable: optionsEntry - label: "Option Entry Configuration" - schema: - type: dict - attrs: - - variable: name - label: "Option Name" - schema: - type: string - required: true - - variable: value - label: "Option Value" - schema: - type: string - required: true - - - variable: environmentVariables - label: "Netdata image environment" - group: "Netdata Configuration" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: service - description: "Netdata Service Configuration" - label: "Netdata Service Configuration" - group: "Netdata Configuration" - schema: - type: dict - required: true - attrs: - - variable: nodePort - label: "Node Port to use for Netdata UI" - schema: - type: int - min: 9000 - max: 65535 - default: 20489 - required: true - - - variable: appVolumeMounts - label: "Netdata Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: netdataconfig - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [ [ "hostPathEnabled", "=", false ] ] - default: "ix-config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/etc/netdata" - - variable: hostPathEnabled - label: "Enable Host Path for Netdata Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Netdata Configuration Volume" - schema: - type: hostpath - required: true - immutable: true - - variable: netdatacache - label: "Cache Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Cache Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-cache" - editable: false - - variable: mountPath - label: "Cache Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/var/cache/netdata" - - variable: hostPathEnabled - label: "Enable Host Path for Netdata Cache Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Netdata Cache Volume" - schema: - type: hostpath - required: true - immutable: true - - variable: netdatalib - label: "Netdata Library Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Netdata Library Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [ [ "hostPathEnabled", "=", false ] ] - default: "ix-lib" - editable: false - - variable: mountPath - label: "Netdata Library Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/var/lib/netdata" - - variable: hostPathEnabled - label: "Enable Host Path for Netdata Library Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Netdata Library Volume" - schema: - type: hostpath - required: true - immutable: true - - - variable: extraAppVolumeMounts - label: "Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Host Path Volume" - description: "Add an extra host path volume for Netdata application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limresource limitsit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/test/netdata/1.0.15/requirements.lock b/test/netdata/1.0.15/requirements.lock deleted file mode 100644 index f4e963b14b..0000000000 --- a/test/netdata/1.0.15/requirements.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:48.220631642+05:00" diff --git a/test/netdata/1.0.15/templates/_helpers.tpl b/test/netdata/1.0.15/templates/_helpers.tpl deleted file mode 100644 index 0b76aed34a..0000000000 --- a/test/netdata/1.0.15/templates/_helpers.tpl +++ /dev/null @@ -1,32 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "netdata.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} -{{- end -}} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "netdata.fullname" -}} -{{- if .Values.fullnameOverride -}} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- $name := default .Chart.Name .Values.nameOverride -}} -{{- if contains $name .Release.Name -}} -{{- .Release.Name | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} -{{- end -}} -{{- end -}} -{{- end -}} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "netdata.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}} diff --git a/test/netdata/1.0.15/templates/clusterrole.yaml b/test/netdata/1.0.15/templates/clusterrole.yaml deleted file mode 100644 index cd1862784c..0000000000 --- a/test/netdata/1.0.15/templates/clusterrole.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: {{ template "netdata.fullname" . }} - labels: - app: {{ template "netdata.name" . }} - chart: {{ template "netdata.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -rules: - - apiGroups: [""] - resources: - - "pods" # used by sd, netdata (cgroup-name.sh, get-kubernetes-labels.sh) - - "services" # used by sd - - "configmaps" # used by sd - - "secrets" # used by sd - verbs: - - "get" - - "list" - - "watch" - - apiGroups: [""] - resources: - - "namespaces" # used by netdata (cgroup-name.sh, get-kubernetes-labels.sh) - verbs: - - "get" diff --git a/test/netdata/1.0.15/templates/clusterrolebinding.yaml b/test/netdata/1.0.15/templates/clusterrolebinding.yaml deleted file mode 100644 index 27152168c3..0000000000 --- a/test/netdata/1.0.15/templates/clusterrolebinding.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: {{ template "netdata.fullname" . }} - labels: - app: {{ template "netdata.name" . }} - chart: {{ template "netdata.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: {{ template "netdata.fullname" . }} -subjects: -- kind: ServiceAccount - name: {{ .Release.Name }} - namespace: {{ .Release.Namespace }} diff --git a/test/netdata/1.0.15/templates/deployment.yaml b/test/netdata/1.0.15/templates/deployment.yaml deleted file mode 100644 index f453fa05ad..0000000000 --- a/test/netdata/1.0.15/templates/deployment.yaml +++ /dev/null @@ -1,92 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ template "netdata.name" . }} - labels: - app: {{ template "netdata.name" . }} - chart: {{ template "netdata.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} - role: parent -spec: - replicas: 1 - strategy: - type: Recreate - selector: - matchLabels: {{ include "common.labels.selectorLabels" . | nindent 6 }} - template: - metadata: - labels: {{ include "common.labels.selectorLabels" . | nindent 8 }} - annotations: - rollme: {{ randAlphaNum 5 | quote }} - spec: - securityContext: - fsGroup: 201 - serviceAccountName: {{ .Release.Name }} - containers: - - name: {{ .Chart.Name }} - image: "{{ .Values.image.repository }}:{{ tpl .Values.image.tag . }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{ include "common.resources.limitation" . | nindent 10 }} - env: - {{ $envList := (default list .Values.environmentVariables) }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} - ports: - - name: http - containerPort: 19999 - protocol: TCP - livenessProbe: - httpGet: - path: /api/v1/info - port: http - failureThreshold: 3 - periodSeconds: 30 - successThreshold: 1 - timeoutSeconds: 1 - readinessProbe: - httpGet: - path: /api/v1/info - port: http - failureThreshold: 3 - periodSeconds: 30 - successThreshold: 1 - timeoutSeconds: 1 - volumeMounts:{{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - - name: os-release - mountPath: /host/etc/os-release - readOnly: true - - name: sys - mountPath: /host/sys - readOnly: true - - name: proc - mountPath: /host/proc - readOnly: true - - name: user - mountPath: /host/etc/passwd - readOnly: true - - name: group - mountPath: /host/etc/group - readOnly: true - securityContext: - capabilities: - add: - - SYS_PTRACE - terminationGracePeriodSeconds: 60 - {{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} - volumes:{{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - - name: os-release - hostPath: - path: /etc/os-release - - name: proc - hostPath: - path: /proc - - name: sys - hostPath: - path: /sys - - name: user - hostPath: - path: /etc/passwd - - name: group - hostPath: - path: /etc/group diff --git a/test/netdata/1.0.15/templates/pre-install-job.yaml b/test/netdata/1.0.15/templates/pre-install-job.yaml deleted file mode 100644 index 64505b23e5..0000000000 --- a/test/netdata/1.0.15/templates/pre-install-job.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-job" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - helm.sh/chart: {{ template "common.names.chart" . }} - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-delete-policy": hook-succeeded -spec: - template: - metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-hook" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - helm.sh/chart: {{ template "common.names.chart" . }} - spec: - restartPolicy: Never - containers: - - name: pre-install-job - image: "alpine:latest" - command: - - chown - - -R - - {{ .Values.runAsUser }}:{{ .Values.runAsGroup }} - - {{ .Values.appVolumeMounts.netdatacache.mountPath }} - - {{ .Values.appVolumeMounts.netdatalib.mountPath }} - - {{ .Values.appVolumeMounts.netdataconfig.mountPath }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} diff --git a/test/netdata/1.0.15/templates/service.yaml b/test/netdata/1.0.15/templates/service.yaml deleted file mode 100644 index 81c478b423..0000000000 --- a/test/netdata/1.0.15/templates/service.yaml +++ /dev/null @@ -1,6 +0,0 @@ -{{ $svc := .Values.service }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "ui" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" 19999) }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{ include "common.classes.service" $params }} diff --git a/test/netdata/1.0.15/templates/serviceaccount.yaml b/test/netdata/1.0.15/templates/serviceaccount.yaml deleted file mode 100644 index 6338f0c7f0..0000000000 --- a/test/netdata/1.0.15/templates/serviceaccount.yaml +++ /dev/null @@ -1,9 +0,0 @@ -kind: ServiceAccount -apiVersion: v1 -metadata: - labels: - app: {{ template "netdata.name" . }} - chart: {{ template "netdata.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} - name: {{ .Release.Name }} diff --git a/test/netdata/1.0.15/templates/tests/deployment-check.yaml b/test/netdata/1.0.15/templates/tests/deployment-check.yaml deleted file mode 100644 index 8c21a4324e..0000000000 --- a/test/netdata/1.0.15/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-netdata-test" - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}:{{ .Values.service.nodePort }}/ - restartPolicy: Never diff --git a/test/netdata/1.0.15/test_values.yaml b/test/netdata/1.0.15/test_values.yaml deleted file mode 100644 index 774b9890d6..0000000000 --- a/test/netdata/1.0.15/test_values.yaml +++ /dev/null @@ -1,42 +0,0 @@ -appVolumeMounts: - netdatacache: - emptyDir: true - mountPath: /var/cache/netdata - netdataconfig: - emptyDir: true - mountPath: /etc/netdata - netdatalib: - emptyDir: true - mountPath: /var/lib/netdata -dnsConfig: - options: [] -environmentVariables: [] -extraAppVolumeMounts: [] -global: - ixChartContext: - isInstall: true - isUpdate: false - isUpgrade: false - operation: INSTALL - storageClassName: ix-storage-class-netdata - upgradeMetadata: {} -image: - pullPolicy: IfNotPresent - repository: netdata/netdata - tag: v1.38.1 -ixCertificateAuthorities: {} -ixCertificates: {} -ixChartContext: - isInstall: true - isUpdate: false - isUpgrade: false - operation: INSTALL - storageClassName: ix-storage-class-netdata - upgradeMetadata: {} -ixExternalInterfacesConfiguration: [] -ixExternalInterfacesConfigurationNames: [] -ixVolumes: [] -runAsGroup: 201 -runAsUser: 201 -service: - nodePort: 32189 diff --git a/test/netdata/item.yaml b/test/netdata/item.yaml deleted file mode 100644 index ac61888330..0000000000 --- a/test/netdata/item.yaml +++ /dev/null @@ -1,3 +0,0 @@ -categories: - - reporting -icon_url: https://netdata.github.io/helmchart/logo.png diff --git a/test/netdata/upgrade_info.json b/test/netdata/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/test/netdata/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/test/netdata/upgrade_strategy b/test/netdata/upgrade_strategy deleted file mode 100755 index fee6131e03..0000000000 --- a/test/netdata/upgrade_strategy +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python3 -import json -import sys - -from catalog_update.upgrade_strategy import semantic_versioning - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - tags = {t.strip('v').replace('_', '.'): t for t in image_tags[key]} - version = semantic_versioning(tags) - if not version: - return {} - - return { - 'tags': {key: tags[version]}, - 'app_version': tags[version], - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/nextcloud/1.6.18/.helmignore b/test/nextcloud/1.6.18/.helmignore deleted file mode 100644 index f0c1319444..0000000000 --- a/test/nextcloud/1.6.18/.helmignore +++ /dev/null @@ -1,21 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj diff --git a/test/nextcloud/1.6.18/Chart.lock b/test/nextcloud/1.6.18/Chart.lock deleted file mode 100644 index 265acc741b..0000000000 --- a/test/nextcloud/1.6.18/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-28T22:31:02.992776385+05:00" diff --git a/test/nextcloud/1.6.18/Chart.yaml b/test/nextcloud/1.6.18/Chart.yaml deleted file mode 100644 index 1b35ccfe1b..0000000000 --- a/test/nextcloud/1.6.18/Chart.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: v2 -appVersion: 25.0.4 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: A file sharing server that puts the control and security of your own - data back into your hands. -home: https://nextcloud.com/ -icon: https://cdn.rawgit.com/docker-library/docs/defa5ffc7123177acd60ddef6e16bddf694cc35f/nextcloud/logo.svg -keywords: -- nextcloud -- storage -- http -- web -- php -name: nextcloud -sources: -- https://github.com/nextcloud/docker -- https://github.com/nextcloud/helm -upstream_version: 2.3.2 -version: 1.6.18 diff --git a/test/nextcloud/1.6.18/README.md b/test/nextcloud/1.6.18/README.md deleted file mode 100644 index 28f3c66405..0000000000 --- a/test/nextcloud/1.6.18/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# nextcloud - -[nextcloud](https://nextcloud.com/) is a file sharing server that puts the control and security of your own data back into your hands. - -## Introduction - -This chart bootstraps an [nextcloud](https://hub.docker.com/_/nextcloud/) deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. - -## Configuration - -Please refer to questions.yaml for a detailed overview on supported configurable values. diff --git a/test/nextcloud/1.6.18/app-readme.md b/test/nextcloud/1.6.18/app-readme.md deleted file mode 100644 index f2e78c31f9..0000000000 --- a/test/nextcloud/1.6.18/app-readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# nextcloud - -[nextcloud](https://nextcloud.com/) is a file sharing server that puts the control and security of your own data back into your hands. diff --git a/test/nextcloud/1.6.18/charts/common-2207.0.0.tgz b/test/nextcloud/1.6.18/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/nextcloud/1.6.18/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/nextcloud/1.6.18/ix_values.yaml b/test/nextcloud/1.6.18/ix_values.yaml deleted file mode 100644 index f6a5d51e75..0000000000 --- a/test/nextcloud/1.6.18/ix_values.yaml +++ /dev/null @@ -1,10 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: nextcloud - tag: 25.0.4 -nginx: - image: - pullPolicy: IfNotPresent - repository: nginx - tag: 1.23.3 -useServiceNameForHost: false diff --git a/test/nextcloud/1.6.18/migrations/migrate_from_1.1.0 b/test/nextcloud/1.6.18/migrations/migrate_from_1.1.0 deleted file mode 100755 index 1977bf3806..0000000000 --- a/test/nextcloud/1.6.18/migrations/migrate_from_1.1.0 +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/python3 -import json -import os -import sys - - -def migrate(values): - values.update({ - 'appVolumeMounts': { - 'nextcloud-data': { - 'hostPathEnabled': values['nextcloudDataHostPathEnabled'], - **({'hostPath': values['nextcloudHostPath']} if values.get('nextcloudHostPath') else {}) - }, - }, - 'updateStrategy': values.get('nextcloud').get('strategy', 'Recreate'), - }) - return values - - -if __name__ == '__main__': - if len(sys.argv) != 2: - exit(1) - - if os.path.exists(sys.argv[1]): - with open(sys.argv[1], 'r') as f: - print(json.dumps(migrate(json.loads(f.read())))) diff --git a/test/nextcloud/1.6.18/questions.yaml b/test/nextcloud/1.6.18/questions.yaml deleted file mode 100644 index 923794df22..0000000000 --- a/test/nextcloud/1.6.18/questions.yaml +++ /dev/null @@ -1,356 +0,0 @@ -groups: - - name: "Container Images" - description: "Image to be used for container" - - name: "Nextcloud Configuration" - description: "Configuration details for Nextcloud workload" - - name: "Storage" - description: "Configure Storage for Nextcloud" - - name: "Container Configuration" - description: "Configure nextcloud container parameters" - - name: "Postgresql Configuration" - description: "Configure Postgresql for nextcloud" - - name: "CronJob configuration" - description: "Configure CronJob for nextcloud" - - name: "Scaling/Upgrade Policy" - description: "Configure how pods are replaced when configuration is upgraded" - - name: "Advanced DNS Settings" - description: "Configure DNS settings" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - - -portals: - web_portal: - protocols: - - "$kubernetes-resource_configmap_nginx-configuration_protocol" - host: - - "$variable-nextcloud.host" - ports: - - "$variable-service.nodePort" - -questions: - - - variable: dnsConfig - label: "DNS Configuration" - group: "Advanced DNS Settings" - schema: - type: dict - attrs: - - variable: options - label: "DNS Options" - schema: - type: list - items: - - variable: optionsEntry - label: "Option Entry Configuration" - schema: - type: dict - attrs: - - variable: name - label: "Option Name" - schema: - type: string - required: true - - variable: value - label: "Option Value" - schema: - type: string - required: true - - - variable: certificate - description: "Configure Certificate for Nextcloud" - label: "Certificate Configuration" - group: "Nextcloud Configuration" - schema: - type: int - $ref: - - "definitions/certificate" - - - variable: nextcloud - description: "Nextcloud configuration details" - label: "Nextcloud Configuration" - group: "Nextcloud Configuration" - schema: - type: dict - required: true - additional_attrs: true - attrs: - - variable: host - description: "Nextcloud host to create application URLs" - label: "Nextcloud host" - schema: - type: string - $ref: - - "definitions/nodeIP" - - variable: username - label: "Username" - description: "Name of the Nextcloud admin user" - schema: - type: string - default: "admin" - required: true - - variable: password - label: "Password" - description: "Password for the Nextcloud admin user" - schema: - type: string - private: true - default: "changeme" - required: true - - variable: datadir - label: "Nextcloud data directory" - description: "Configures the data directory where nextcloud stores all files from the users" - schema: - type: path - default: "/var/www/html/data" - required: true - - variable: install_ffmpeg - label: "Install ffmpeg" - description: "Automatically Install ffmpeg when the container starts" - schema: - type: boolean - default: false - - - variable: cronjob - description: "Setup cronjob for nextcloud" - label: "Setup cronjob for nextcloud" - group: "CronJob configuration" - schema: - type: dict - attrs: - - variable: enabled - label: "Enable cronjobs for nextcloud" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: schedule - label: Schedule - schema: - type: string - default: "1 */24 * * *" - empty: false - - # Update strategy - - variable: updateStrategy - description: "Upgrade Policy" - label: "Update Strategy" - group: "Scaling/Upgrade Policy" - schema: - type: string - default: "Recreate" - enum: - - value: "RollingUpdate" - description: "Create new pods and then kill old ones" - - value: "Recreate" - description: "Kill existing pods before creating new ones" - - - variable: service - description: "Nextcloud Service Configuration" - label: "Nextcloud Service Configuration" - group: "Nextcloud Configuration" - schema: - type: dict - required: true - attrs: - - variable: nodePort - label: "Node Port to use for Nextcloud" - schema: - type: int - min: 9000 - max: 65535 - default: 9001 - required: true - - - variable: appVolumeMounts - label: "Nextcloud Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: nextcloud-data - label: "Nextcloud Data Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Nextcloud Data Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-nextcloud_data" - editable: false - - variable: mountPath - label: "Nextcloud Data Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/var/www" - - variable: hostPathEnabled - label: "Enable Host Path for Nextcloud Data Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Nextcloud Data Volume" - schema: - type: hostpath - required: true - - - variable: extraAppVolumeMounts - label: "Nextcloud Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Nextcloud Host Path Volume" - description: "Add an extra host path volume for nextcloud application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - - variable: postgresAppVolumeMounts - label: "Postgres Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: postgres-data - label: "Postgres Data Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Postgres Data Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - default: "ix-postgres_data" - show_if: [["hostPathEnabled", "=", false]] - editable: false - - - variable: mountPath - label: "Postgresql Data Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/var/lib/postgresql/data" - - variable: hostPathEnabled - label: "Enable Host Path for Postgres Data Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Postgres Data Volume" - schema: - type: hostpath - required: true - - - variable: postgres-backup - label: "Postgres Backup Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Postgres Backup Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - default: "ix-postgres_backups" - show_if: [["hostPathEnabled", "=", false]] - editable: false - - variable: mountPath - label: "Postgresql Backup Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/postgres_backups" - - variable: hostPathEnabled - label: "Enable Host Path for Postgres Backup Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Postgres Backup Volume" - schema: - type: hostpath - required: true - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limresource limitsit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" - - - variable: environmentVariables - label: "Nextcloud environment" - group: "Nextcloud Configuration" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string diff --git a/test/nextcloud/1.6.18/requirements.lock b/test/nextcloud/1.6.18/requirements.lock deleted file mode 100644 index 3ead4ef6e6..0000000000 --- a/test/nextcloud/1.6.18/requirements.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:11522ab36487826700d7ad0f86f713a4bb5d35248014bcef690fe94acbc09ef6 -generated: "2021-05-10T13:07:35.423192+05:00" diff --git a/test/nextcloud/1.6.18/templates/NOTES.txt b/test/nextcloud/1.6.18/templates/NOTES.txt deleted file mode 100644 index 9b2f7cd2d1..0000000000 --- a/test/nextcloud/1.6.18/templates/NOTES.txt +++ /dev/null @@ -1,3 +0,0 @@ -1. Get the nextcloud URL by running: - - echo http://{{ .Values.nextcloud.host }}:{{ .Values.service.nodePort }}/ diff --git a/test/nextcloud/1.6.18/templates/_nginx.tpl b/test/nextcloud/1.6.18/templates/_nginx.tpl deleted file mode 100644 index 8adb9d9429..0000000000 --- a/test/nextcloud/1.6.18/templates/_nginx.tpl +++ /dev/null @@ -1,79 +0,0 @@ -{{/* -Retrieve true/false if certificate is configured -*/}} -{{- define "nginx.certAvailable" -}} -{{- if .Values.certificate -}} -{{- $values := (. | mustDeepCopy) -}} -{{- $_ := set $values "commonCertOptions" (dict "certKeyName" $values.Values.certificate) -}} -{{- template "common.resources.cert_present" $values -}} -{{- else -}} -{{- false -}} -{{- end -}} -{{- end -}} - - -{{/* -Retrieve public key of certificate -*/}} -{{- define "nginx.cert.publicKey" -}} -{{- $values := (. | mustDeepCopy) -}} -{{- $_ := set $values "commonCertOptions" (dict "certKeyName" $values.Values.certificate "publicKey" true) -}} -{{ include "common.resources.cert" $values }} -{{- end -}} - - -{{/* -Retrieve private key of certificate -*/}} -{{- define "nginx.cert.privateKey" -}} -{{- $values := (. | mustDeepCopy) -}} -{{- $_ := set $values "commonCertOptions" (dict "certKeyName" $values.Values.certificate) -}} -{{ include "common.resources.cert" $values }} -{{- end -}} - - -{{/* -Retrieve configured protocol scheme for nextcloud -*/}} -{{- define "nginx.scheme" -}} -{{- if eq (include "nginx.certAvailable" .) "true" -}} -{{- print "https" -}} -{{- else -}} -{{- print "http" -}} -{{- end -}} -{{- end -}} - - -{{/* -Retrieve nginx certificate secret name -*/}} -{{- define "nginx.secretName" -}} -{{- print "nginx-secret" -}} -{{- end -}} - - -{{/* -Formats volumeMount for tls keys and trusted certs -*/}} -{{- define "nginx.tlsKeysVolumeMount" -}} -{{- if eq (include "nginx.certAvailable" .) "true" -}} -- name: cert-secret-volume - mountPath: "/etc/nginx-certs" -{{- end -}} -{{- end -}} - -{{/* -Formats volume for tls keys and trusted certs -*/}} -{{- define "nginx.tlsKeysVolume" -}} -{{- if eq (include "nginx.certAvailable" .) "true" -}} -- name: cert-secret-volume - secret: - secretName: {{ include "nginx.secretName" . }} - items: - - key: certPublicKey - path: public.crt - - key: certPrivateKey - path: private.key -{{- end -}} -{{- end -}} diff --git a/test/nextcloud/1.6.18/templates/_postgres.tpl b/test/nextcloud/1.6.18/templates/_postgres.tpl deleted file mode 100644 index 0cdfc8b015..0000000000 --- a/test/nextcloud/1.6.18/templates/_postgres.tpl +++ /dev/null @@ -1,49 +0,0 @@ -{{/* -Get Nextloud Postgres Database Name -*/}} -{{- define "postgres.DatabaseName" -}} -{{- print "nextcloud" -}} -{{- end -}} - - -{{- define "postgres.imageName" -}} -{{- print "postgres:13.1" -}} -{{- end -}} - - -{{/* -Retrieve postgres backup name -This will return a unique name based on revision and chart numbers specified. -*/}} -{{- define "postgres.backupName" -}} -{{- $upgradeDict := .Values.ixChartContext.upgradeMetadata -}} -{{- printf "postgres-backup-from-%s-to-%s-revision-%d" $upgradeDict.oldChartVersion $upgradeDict.newChartVersion (int64 $upgradeDict.preUpgradeRevision) -}} -{{- end }} - - -{{/* -Retrieve postgres credentials for environment variables configuration -*/}} -{{- define "postgres.envVariableConfiguration" -}} -{{ $envList := list }} -{{ $envList = mustAppend $envList (dict "name" "POSTGRES_USER" "valueFromSecret" true "secretName" "db-details" "secretKey" "db-user") }} -{{ $envList = mustAppend $envList (dict "name" "POSTGRES_PASSWORD" "valueFromSecret" true "secretName" "db-details" "secretKey" "db-password") }} -{{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) }} -{{- end -}} - - -{{/* -Retrieve postgres volume configuration -*/}} -{{- define "postgres.volumeConfiguration" -}} -{{ include "common.storage.configureAppVolumes" (dict "appVolumeMounts" .Values.postgresAppVolumeMounts "emptyDirVolumes" .Values.emptyDirVolumes "ixVolumes" .Values.ixVolumes) | nindent 0 }} -{{- end -}} - - -{{/* -Retrieve postgres volume mounts configuration -*/}} -{{- define "postgres.volumeMountsConfiguration" -}} -{{ include "common.storage.configureAppVolumeMountsInContainer" (dict "appVolumeMounts" .Values.postgresAppVolumeMounts ) | nindent 0 }} -{{- end -}} - diff --git a/test/nextcloud/1.6.18/templates/backup-postgres-config.yaml b/test/nextcloud/1.6.18/templates/backup-postgres-config.yaml deleted file mode 100644 index c9ccf66dba..0000000000 --- a/test/nextcloud/1.6.18/templates/backup-postgres-config.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: "postgres-backup-hook-config-map" - annotations: - rollme: {{ randAlphaNum 5 | quote }} -data: - entrypoint.sh: |- - #!/bin/sh - cmd="/docker-entrypoint.sh postgres" - eval "${cmd}" & disown; - until pg_isready; do - sleep 5; - done; - pg_dump -U $POSTGRES_USER -d {{ template "postgres.DatabaseName" . }} > /postgres_backups/$BACKUP_NAME; diff --git a/test/nextcloud/1.6.18/templates/backup-postgres-hook.yaml b/test/nextcloud/1.6.18/templates/backup-postgres-hook.yaml deleted file mode 100644 index 175b0f2617..0000000000 --- a/test/nextcloud/1.6.18/templates/backup-postgres-hook.yaml +++ /dev/null @@ -1,39 +0,0 @@ -{{- if .Values.ixChartContext.isUpgrade -}} -{{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }} -apiVersion: batch/v1 -kind: Job -metadata: - name: "pre-upgrade-hook2" - annotations: - "helm.sh/hook": pre-upgrade - "helm.sh/hook-weight": "1" - "helm.sh/hook-delete-policy": hook-succeeded - rollme: {{ randAlphaNum 5 | quote }} -spec: - template: - metadata: - name: "pre-upgrade-hook2" - spec: - restartPolicy: Never - serviceAccountName: "{{ template "common.names.serviceAccountName" . }}" - containers: - - name: {{ .Chart.Name }}-postgres-backup - image: {{ template "postgres.imageName" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - env: {{ include "postgres.envVariableConfiguration" $values | nindent 10 }} - - name: BACKUP_NAME - value: {{ template "postgres.backupName" . }} - volumeMounts: {{ include "postgres.volumeMountsConfiguration" $values | nindent 10 }} - - name: backup-script-configmap - mountPath: /bin/backup_entrypoint.sh - readOnly: true - subPath: entrypoint.sh - command: - - "/bin/backup_entrypoint.sh" - volumes: {{ include "postgres.volumeConfiguration" $values | nindent 8 }} - - name: backup-script-configmap - configMap: - defaultMode: 0700 - name: "postgres-backup-hook-config-map" -{{- end -}} diff --git a/test/nextcloud/1.6.18/templates/cronjob.yaml b/test/nextcloud/1.6.18/templates/cronjob.yaml deleted file mode 100644 index 2d3b650700..0000000000 --- a/test/nextcloud/1.6.18/templates/cronjob.yaml +++ /dev/null @@ -1,49 +0,0 @@ -{{ $cronjob_values := (. | mustDeepCopy) }} -{{ $_ := set $cronjob_values "common" (dict "nameSuffix" "cronjob") }} - -{{ $hostName := .Values.nextcloud.host }} -{{ if .Values.useServiceNameForHost }} -{{ $hostName = (include "common.names.fullname" .) }} -{{ end }} - -{{if .Values.cronjob.enabled }} -apiVersion: batch/v1 -kind: CronJob -metadata: - name: {{ template "common.names.fullname" $cronjob_values }} - labels: - app: {{ template "common.names.name" $cronjob_values }} - chart: {{ template "common.names.chart" $cronjob_values }} - release: {{ .Release.Name }} - annotations: - rollme: {{ randAlphaNum 5 | quote }} -spec: - schedule: "{{ .Values.cronjob.schedule }}" - concurrencyPolicy: Forbid - failedJobsHistoryLimit: 2 - successfulJobsHistoryLimit: 1 - jobTemplate: - metadata: - labels: - app: {{ template "common.names.name" $cronjob_values }} - release: {{ .Release.Name }} - {{- include "common.labels.selectorLabels" $cronjob_values | nindent 8 }} - spec: - template: - metadata: - labels: - app: {{ template "common.names.name" $cronjob_values }} - release: {{ .Release.Name }} - {{- include "common.labels.selectorLabels" $cronjob_values | nindent 12 }} - spec: - restartPolicy: Never - containers: - - name: {{ .Chart.Name }}-cronjob - image: "{{.Values.image.repository }}:{{.Values.image.tag }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} - {{- if .Values.certificate }} - command: [ "curl" ,"-k" , "https://{{ $hostName }}:{{.Values.service.nodePort}}/cron.php"] - {{- else }} - command: [ "curl" , "http://{{ $hostName }}:{{.Values.service.nodePort}}/cron.php"] - {{- end }} -{{ end }} diff --git a/test/nextcloud/1.6.18/templates/deployment.yaml b/test/nextcloud/1.6.18/templates/deployment.yaml deleted file mode 100644 index 7c8ee1ad3b..0000000000 --- a/test/nextcloud/1.6.18/templates/deployment.yaml +++ /dev/null @@ -1,158 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -{{ $postgres_values := (. | mustDeepCopy) }} -{{ $_ := set $postgres_values "common" (dict "nameSuffix" "postgres") }} -{{ include "common.deployment.common_config" . | nindent 0 }} -spec: {{ include "common.deployment.common_spec" . | nindent 2 }} - template: {{ include "common.deployment.pod.metadata" . | nindent 4 }} - spec: - initContainers: - - name: init-postgresdb - image: {{ template "postgres.imageName" . }} - command: ['sh', '-c', "until pg_isready -U $POSTGRES_USER -d {{ include "postgres.DatabaseName" .Values }} -h {{ template "common.names.fullname" $postgres_values }}; do echo waiting for postgres; sleep 2; done"] - imagePullPolicy: {{ .Values.image.pullPolicy }} - env: {{ include "postgres.envVariableConfiguration" $postgres_values | nindent 10 }} - - containers: - {{ if eq (include "nginx.certAvailable" .) "true" }} - - name: nginx - {{ include "common.containers.imageConfig" .Values.nginx.image | nindent 8 }} - volumeMounts: - - name: nginx-configuration - mountPath: /etc/nginx/nginx.conf - subPath: nginx.conf - {{ include "nginx.tlsKeysVolumeMount" . | nindent 10 }} - ports: - - name: nginx-http - containerPort: 8000 - protocol: TCP - - name: nginx-https - containerPort: 443 - protocol: TCP - {{ end }} - - name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 8 }} - {{ include "common.containers.imageConfig" .Values.image | nindent 8 }} - env: {{ include "postgres.envVariableConfiguration" $postgres_values | nindent 10 }} - {{ $secretName := (include "common.names.fullname" .) }} - {{ $envList := (default list .Values.environmentVariables) }} - {{ $envList = mustAppend $envList (dict "name" "POSTGRES_HOST" "value" (printf "%s:5432" (include "common.names.fullname" $postgres_values))) }} - {{ $envList = mustAppend $envList (dict "name" "POSTGRES_DB" "value" (include "postgres.DatabaseName" .)) }} - {{ $envList = mustAppend $envList (dict "name" "NEXTCLOUD_DATA_DIR" "value" .Values.nextcloud.datadir) }} - {{ if eq (include "nginx.certAvailable" .) "true" }} - {{ $envList = mustAppend $envList (dict "name" "APACHE_DISABLE_REWRITE_IP" "value" "1") }} - {{ $envList = mustAppend $envList (dict "name" "OVERWRITEHOST" "value" (printf "%v:%v" .Values.nextcloud.host .Values.service.nodePort)) }} - {{ $envList = mustAppend $envList (dict "name" "OVERWRITEPROTOCOL" "value" "https") }} - {{ $envList = mustAppend $envList (dict "name" "TRUSTED_PROXIES" "value" "127.0.0.1") }} - {{ end }} - {{ $hostName := .Values.nextcloud.host }} - {{ if .Values.useServiceNameForHost }} - {{ $hostName = (include "common.names.fullname" .) }} - {{ end }} - {{ $envList = mustAppend $envList (dict "name" "NEXTCLOUD_TRUSTED_DOMAINS" "value" $hostName) }} - {{ $envList = mustAppend $envList (dict "name" "NEXTCLOUD_ADMIN_USER" "valueFromSecret" true "secretName" $secretName "secretKey" "nextcloud-username") }} - {{ $envList = mustAppend $envList (dict "name" "NEXTCLOUD_ADMIN_PASSWORD" "valueFromSecret" true "secretName" $secretName "secretKey" "nextcloud-password") }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 10 }} - ports: - - name: http - containerPort: 80 - protocol: TCP - livenessProbe: - httpGet: - path: /status.php - port: http - httpHeaders: - - name: Host - value: localhost - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - failureThreshold: 5 - readinessProbe: - httpGet: - path: /status.php - port: http - httpHeaders: - - name: Host - value: localhost - initialDelaySeconds: 30 - periodSeconds: 10 - timeoutSeconds: 5 - failureThreshold: 5 - startupProbe: - {{- if .Values.nextcloud.install_ffmpeg }} - exec: - command: - - /bin/sh - - -c - - | - command -v ffmpeg /dev/null 2>&1 || exit 1 - {{- else }} - httpGet: - path: /status.php - port: http - httpHeaders: - - name: Host - value: localhost - {{- end }} - initialDelaySeconds: 60 - periodSeconds: 10 - timeoutSeconds: 5 - failureThreshold: 60 - volumeMounts: - - name: nextcloud-data - mountPath: /var/www/ - subPath: "root" - - name: nextcloud-data - mountPath: /var/www/html - subPath: "html" - - name: nextcloud-data - mountPath: {{ .Values.nextcloud.datadir }} - subPath: "data" - - name: nextcloud-data - mountPath: /var/www/html/config - subPath: "config" - - name: nextcloud-data - mountPath: /var/www/html/custom_apps - subPath: "custom_apps" - - name: nextcloud-data - mountPath: /var/www/tmp - subPath: "tmp" - - name: nextcloud-data - mountPath: /var/www/html/themes - subPath: "themes" - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - {{- if .Values.nextcloud.install_ffmpeg }} - lifecycle: - postStart: - exec: - command: - - /bin/sh - - -c - - | - echo "Installing ffmpeg..." - apt update && \ - apt install -y --no-install-recommends \ - ffmpeg || echo "Failed to install ffmpeg" - echo "Finished." - {{- end }} -{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} - volumes: - - name: nginx-configuration - configMap: - defaultMode: 0700 - name: "nginx-configuration" -{{ include "nginx.tlsKeysVolume" . | nindent 8 }} -{{ if .Values.appVolumeMounts }} -{{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} -{{ end }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} - # Will mount configuration files as www-data (id: 33) for nextcloud - securityContext: - fsGroup: 33 diff --git a/test/nextcloud/1.6.18/templates/nginx-configmap.yaml b/test/nextcloud/1.6.18/templates/nginx-configmap.yaml deleted file mode 100644 index a10f4bde6d..0000000000 --- a/test/nextcloud/1.6.18/templates/nginx-configmap.yaml +++ /dev/null @@ -1,67 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: "nginx-configuration" -data: - protocol: {{ include "nginx.scheme" . }} - nginx.conf: |- - events {} - http { - # redirects all http requests to https requests - server { - listen 8000 default_server; - listen [::]:8000 default_server; - return 301 https://$host$request_uri; - } - - server { - server_name localhost; - - listen 443 ssl http2; - listen [::]:433 ssl http2; - - ssl_certificate '/etc/nginx-certs/public.crt'; - ssl_certificate_key '/etc/nginx-certs/private.key'; - - # maximum 3GB Upload File; change to fit your needs - client_max_body_size 3G; - - add_header Strict-Transport-Security "max-age=15552000; includeSubDomains; preload" always; - - location = /robots.txt { - allow all; - log_not_found off; - access_log off; - } - - location = /.well-known/carddav { - return 301 $scheme://$host/remote.php/dav; - } - - location = /.well-known/caldav { - return 301 $scheme://$host/remote.php/dav; - } - - location / { - proxy_pass http://localhost; - proxy_http_version 1.1; - proxy_cache_bypass $http_upgrade; - proxy_request_buffering off; - - # Proxy headers - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_set_header Host $http_host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto https; - proxy_set_header X-Forwarded-Host $host; - proxy_set_header X-Forwarded-Port $server_port; - - # Proxy timeouts - proxy_connect_timeout 60s; - proxy_send_timeout 60s; - proxy_read_timeout 60s; - } - } - } diff --git a/test/nextcloud/1.6.18/templates/nginx-secret.yaml b/test/nextcloud/1.6.18/templates/nginx-secret.yaml deleted file mode 100644 index 978441509f..0000000000 --- a/test/nextcloud/1.6.18/templates/nginx-secret.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: {{ include "nginx.secretName" . }} -type: Opaque -data: - {{ if eq (include "nginx.certAvailable" .) "true" }} - certPublicKey: {{ (include "nginx.cert.publicKey" .) | toString | b64enc | quote }} - certPrivateKey: {{ (include "nginx.cert.privateKey" .) | toString | b64enc | quote }} - {{ end }} diff --git a/test/nextcloud/1.6.18/templates/nuke-deployments-hook.yaml b/test/nextcloud/1.6.18/templates/nuke-deployments-hook.yaml deleted file mode 100644 index 218ea00220..0000000000 --- a/test/nextcloud/1.6.18/templates/nuke-deployments-hook.yaml +++ /dev/null @@ -1,24 +0,0 @@ -{{- if .Values.ixChartContext.isUpgrade -}} -{{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }} -apiVersion: batch/v1 -kind: Job -metadata: - name: "pre-upgrade-hook1" - annotations: - "helm.sh/hook": pre-upgrade - "helm.sh/hook-weight": "-1" - "helm.sh/hook-delete-policy": hook-succeeded - rollme: {{ randAlphaNum 5 | quote }} -spec: - template: - metadata: - name: "pre-upgrade-hook1" - spec: - restartPolicy: Never - serviceAccountName: "{{ template "common.names.serviceAccountName" . }}" - containers: - - name: kubectl - image: "bitnami/kubectl:1.19" - command: ["kubectl", "delete" , "deployment", "{{ template "common.names.fullname" . }}", "{{ template "common.names.fullname" $values }}"] -{{- end -}} diff --git a/test/nextcloud/1.6.18/templates/postgres-deployment.yaml b/test/nextcloud/1.6.18/templates/postgres-deployment.yaml deleted file mode 100644 index c325ee8ced..0000000000 --- a/test/nextcloud/1.6.18/templates/postgres-deployment.yaml +++ /dev/null @@ -1,17 +0,0 @@ -{{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }} -{{ include "common.deployment.common_config" $values | nindent 0 }} -spec: {{ include "common.deployment.common_spec" $values | nindent 2 }} - template: {{ include "common.deployment.pod.metadata" $values | nindent 4 }} - spec: - containers: - - name: {{ .Chart.Name }}-postgres - image: {{ template "postgres.imageName" . }} - imagePullPolicy: {{ .Values.image.pullPolicy }} - env: {{ include "postgres.envVariableConfiguration" $values | nindent 10 }} - volumeMounts: {{ include "postgres.volumeMountsConfiguration" $values | nindent 10 }} - ports: - - name: postgres-tcp - containerPort: 5432 - protocol: TCP - volumes: {{ include "postgres.volumeConfiguration" $values | nindent 8 }} diff --git a/test/nextcloud/1.6.18/templates/postgres-secret.yaml b/test/nextcloud/1.6.18/templates/postgres-secret.yaml deleted file mode 100644 index 2ebc8b9b17..0000000000 --- a/test/nextcloud/1.6.18/templates/postgres-secret.yaml +++ /dev/null @@ -1,22 +0,0 @@ -{{- $secretName := "db-details" }} -apiVersion: v1 -kind: Secret -metadata: - name: {{ $secretName }} -data: - {{/* - Lookup for the user shouldn't be needed in normal circumstances - But there was a typo before that resulted to a db-user with weird - characters. So to keep that user for existing installations we retrieve - it from the existing secret. - */}} - {{ with (lookup "v1" "Secret" .Release.Namespace $secretName)}} - db-user: {{ index .data "db-user" }} - {{ else }} - db-user: {{ (include "postgres.DatabaseName" .Values ) | b64enc }} - {{ end }} - {{ with (lookup "v1" "Secret" .Release.Namespace $secretName) }} - db-password: {{ index .data "db-password" }} - {{ else }} - db-password: {{ randAlphaNum 15 | b64enc }} - {{ end }} diff --git a/test/nextcloud/1.6.18/templates/postgres-service.yaml b/test/nextcloud/1.6.18/templates/postgres-service.yaml deleted file mode 100644 index c6603fd62b..0000000000 --- a/test/nextcloud/1.6.18/templates/postgres-service.yaml +++ /dev/null @@ -1,6 +0,0 @@ -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "postgres-tcp" "port" 5432 "targetPort" 5432) }} -{{ $values := (. | mustDeepCopy) }} -{{ $_ := set $values "common" (dict "nameSuffix" "postgres") }} -{{ $_1 := set $values "commonService" (dict "type" "ClusterIP" "ports" $ports ) }} -{{ include "common.classes.service" $values }} diff --git a/test/nextcloud/1.6.18/templates/secrets.yaml b/test/nextcloud/1.6.18/templates/secrets.yaml deleted file mode 100644 index eb992940b3..0000000000 --- a/test/nextcloud/1.6.18/templates/secrets.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels" . | nindent 4 }} -type: Opaque -data: - nextcloud-username: {{ .Values.nextcloud.username | b64enc | quote }} - {{ if .Values.nextcloud.password }} - nextcloud-password: {{ .Values.nextcloud.password | b64enc | quote }} - {{ else }} - nextcloud-password: {{ randAlphaNum 10 | b64enc | quote }} - {{ end }} diff --git a/test/nextcloud/1.6.18/templates/service.yaml b/test/nextcloud/1.6.18/templates/service.yaml deleted file mode 100644 index 14c751eada..0000000000 --- a/test/nextcloud/1.6.18/templates/service.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{{ $svc := .Values.service }} -{{ $ports := list }} -{{ if eq (include "nginx.certAvailable" .) "true" }} -{{ $ports = mustAppend $ports (dict "name" "nginx-https" "targetPort" 443 "port" 443 "nodePort" $svc.nodePort) }} -{{ else }} -{{ $ports = mustAppend $ports (dict "name" "http" "port" 80 "nodePort" $svc.nodePort) }} -{{ end }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{ include "common.classes.service" $params }} diff --git a/test/nextcloud/1.6.18/templates/serviceaccount.yaml b/test/nextcloud/1.6.18/templates/serviceaccount.yaml deleted file mode 100644 index 48213465b0..0000000000 --- a/test/nextcloud/1.6.18/templates/serviceaccount.yaml +++ /dev/null @@ -1,35 +0,0 @@ -{{ include "common.serviceaccount" . | nindent 0 }} - ---- - -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: "{{ .Release.Name }}-service-account-role-binding" -subjects: -- kind: ServiceAccount - name: "{{ template "common.names.serviceAccountName" . }}" - namespace: {{ .Release.Namespace }} -roleRef: - kind: Role - name: "{{ .Release.Name }}-service-account-role" - apiGroup: rbac.authorization.k8s.io - ---- - -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: "{{ .Release.Name }}-service-account-role" - namespace: {{ .Release.Namespace }} -rules: - - apiGroups: - - "" - - "apps" - resources: - - pods - - deployments - verbs: - - delete - - get - - list diff --git a/test/nextcloud/1.6.18/templates/tests/deployment-check.yaml b/test/nextcloud/1.6.18/templates/tests/deployment-check.yaml deleted file mode 100644 index 7a511a5786..0000000000 --- a/test/nextcloud/1.6.18/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-nextcloud-test" - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}/login - restartPolicy: Never diff --git a/test/nextcloud/1.6.18/test_values.yaml b/test/nextcloud/1.6.18/test_values.yaml deleted file mode 100644 index 099bc378dd..0000000000 --- a/test/nextcloud/1.6.18/test_values.yaml +++ /dev/null @@ -1,45 +0,0 @@ -appVolumeMounts: - nextcloud-data: - emptyDir: true - mountPath: /var/www -cronjob: - enabled: false - schedule: 1 */24 * * * -dnsConfig: - options: [] -emptyDirVolumes: true -environmentVariables: [] -image: - pullPolicy: IfNotPresent - repository: nextcloud - tag: 25.0.4 -ixChartContext: {} -nextcloud: - datadir: /var/www/html/data - host: nextcloud.kube.home - install_ffmpeg: true - password: changeme - username: admin -nginx: - image: - pullPolicy: IfNotPresent - repository: nginx - tag: 1.23.3 -postgresAppVolumeMounts: - postgres-backup: - emptyDir: true - mountPath: /postgres_backups - postgres-data: - emptyDir: true - mountPath: /var/lib/postgresql/data -postgresql: - backupVolume: - datasetName: ix-postgres_backups - mountPath: /postgres_backups - dataVolume: - datasetName: ix-postgres_data - mountPath: /var/lib/postgresql/data -service: - nodePort: 31000 -updateStrategy: Recreate -useServiceNameForHost: true diff --git a/test/nextcloud/item.yaml b/test/nextcloud/item.yaml deleted file mode 100644 index 14b174550d..0000000000 --- a/test/nextcloud/item.yaml +++ /dev/null @@ -1,3 +0,0 @@ -categories: - - productivity -icon_url: https://cdn.rawgit.com/docker-library/docs/defa5ffc7123177acd60ddef6e16bddf694cc35f/nextcloud/logo.svg diff --git a/test/nextcloud/upgrade_info.json b/test/nextcloud/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/test/nextcloud/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/test/nextcloud/upgrade_strategy b/test/nextcloud/upgrade_strategy deleted file mode 100755 index 02fe284868..0000000000 --- a/test/nextcloud/upgrade_strategy +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python3 -import json -import sys - -from catalog_update.upgrade_strategy import semantic_versioning - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - # 21.1 is greater then 21.1.0 so we reverse sort bfeore doing semantic versioning - version = semantic_versioning(sorted(image_tags[key], reverse=True)) - if not version: - return {} - - return { - 'tags': {key: version}, - 'app_version': version, - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/photoprism/.helmignore b/test/photoprism/.helmignore deleted file mode 100644 index c1347c2c27..0000000000 --- a/test/photoprism/.helmignore +++ /dev/null @@ -1,2 +0,0 @@ -# Patterns to ignore when building packages. -*.png diff --git a/test/photoprism/1.0.12/Chart.lock b/test/photoprism/1.0.12/Chart.lock deleted file mode 100644 index 7b54f57ea6..0000000000 --- a/test/photoprism/1.0.12/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:47.96354528+05:00" diff --git a/test/photoprism/1.0.12/Chart.yaml b/test/photoprism/1.0.12/Chart.yaml deleted file mode 100644 index 409f58e125..0000000000 --- a/test/photoprism/1.0.12/Chart.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v2 -appVersion: '221118' -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: AI-powered app for browsing, organizing & sharing your photo collection. -home: https://photoprism.app/ -icon: https://photoprism.app/static/icons/logo.svg -keywords: -- media -name: photoprism -version: 1.0.12 diff --git a/test/photoprism/1.0.12/README.md b/test/photoprism/1.0.12/README.md deleted file mode 100644 index ed190c02d6..0000000000 --- a/test/photoprism/1.0.12/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Photo Prism - -PhotoPrism is a server-based application for browsing, organizing and sharing your personal photo collection. diff --git a/test/photoprism/1.0.12/app-readme.md b/test/photoprism/1.0.12/app-readme.md deleted file mode 100644 index ed190c02d6..0000000000 --- a/test/photoprism/1.0.12/app-readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# Photo Prism - -PhotoPrism is a server-based application for browsing, organizing and sharing your personal photo collection. diff --git a/test/photoprism/1.0.12/charts/common-2207.0.0.tgz b/test/photoprism/1.0.12/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/photoprism/1.0.12/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/photoprism/1.0.12/ix_values.yaml b/test/photoprism/1.0.12/ix_values.yaml deleted file mode 100644 index 1db525e10e..0000000000 --- a/test/photoprism/1.0.12/ix_values.yaml +++ /dev/null @@ -1,4 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: photoprism/photoprism - tag: 221118-jammy diff --git a/test/photoprism/1.0.12/questions.yaml b/test/photoprism/1.0.12/questions.yaml deleted file mode 100644 index 979ddde2a8..0000000000 --- a/test/photoprism/1.0.12/questions.yaml +++ /dev/null @@ -1,294 +0,0 @@ -groups: - - name: "Configuration" - description: "Photo Prism application configuration" - - name: "Storage" - description: "Configure storage for photo prism" - - name: "Networking" - description: "Networking Configuration for photo prism" - - name: "Advanced DNS Settings" - description: "Configure DNS settings" - - name: "Resource Reservation" - description: "Specify resources to be allocated to workload" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - -portals: - web_portal: - protocols: - - "http" - host: - - "$node_ip" - ports: - - "$variable-web_port" - path: "/" - -questions: - - variable: web_port - label: "Web Port for photo prism" - group: Networking - schema: - type: int - min: 8000 - max: 65535 - default: 20800 - required: true - - - variable: dnsConfig - label: "DNS Configuration" - group: "Advanced DNS Settings" - schema: - type: dict - attrs: - - variable: options - label: "DNS Options" - schema: - type: list - items: - - variable: optionsEntry - label: "Option Entry Configuration" - schema: - type: dict - attrs: - - variable: name - label: "Option Name" - schema: - type: string - required: true - - variable: value - label: "Option Value" - schema: - type: string - required: true - - - variable: ownerUID - label: "Storage User ID" - description: "User ID of the storage volume being used (application will chown the storage volume path with specified UID)" - group: Configuration - schema: - type: int - default: 568 - min: 1 - max: 65535 - - - variable: ownerGID - label: "Storage Group ID" - description: "Group ID of the storage volume being used (application will chown the storage volume path with specified GID)" - group: Configuration - schema: - type: int - default: 568 - min: 1 - max: 65535 - - - variable: password - label: "Password" - group: "Configuration" - schema: - type: string - private: true - required: true - empty: false - immutable: true - default: "admin123" - show_if: [["public", "=", false]] - - - variable: public - label: "Enable Public Access" - description: "Disable password authentication, WebDAV, and the advanced settings page" - group: "Configuration" - schema: - type: boolean - default: false - - - variable: environmentVariables - label: "Photo Prism environment" - group: "Configuration" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: appVolumeMounts - label: "Photo Prism Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: original - label: "Storage Volume for Original Media" - schema: - type: dict - attrs: - - variable: datasetName - label: "Original Storage Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-photoprism_original" - editable: false - - variable: mountPath - label: "Original Storage Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/photoprism/originals" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Photo Prism Original Storage Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Photo Prism Original Storage Volume" - schema: - type: hostpath - required: true - - variable: storage - label: "Storage Volume for sidecar/cache/database" - schema: - type: dict - attrs: - - variable: datasetName - label: "Storage Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-photoprism_storage" - editable: false - - variable: mountPath - label: "Storage Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/photoprism/storage" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Photo Prism Storage Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Photo Prism Storage Volume" - schema: - type: hostpath - required: true - - variable: import - label: "Storage Volume for imports" - schema: - type: dict - attrs: - - variable: datasetName - label: "Import Storage Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-photoprism_import" - editable: false - - variable: mountPath - label: "Storage Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/photoprism/import" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Photo Prism Import Storage Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Photo Prism Import Storage Volume" - schema: - type: hostpath - required: true - - - variable: extraAppVolumeMounts - label: "Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Host Path Volume" - description: "Add an extra host path volume for Photo Prism application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - # Specify GPU configuration - - variable: gpuConfiguration - label: "GPU Configuration" - group: "Resource Reservation" - schema: - type: dict - $ref: - - "definitions/gpuConfiguration" - attrs: [] - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limresource limitsit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/test/photoprism/1.0.12/templates/deployment.yaml b/test/photoprism/1.0.12/templates/deployment.yaml deleted file mode 100644 index c59277be0a..0000000000 --- a/test/photoprism/1.0.12/templates/deployment.yaml +++ /dev/null @@ -1,57 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - chart: {{ template "common.names.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} - annotations: - rollme: {{ randAlphaNum 5 | quote }} -spec: - replicas: {{ (default 1 .Values.replicas) }} - strategy: - type: "Recreate" - selector: - matchLabels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - {{- include "common.labels.selectorLabels" . | nindent 8 }} - annotations: {{ include "common.annotations" . | nindent 8 }} - spec: - hostNetwork: false - containers: - - name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 10 }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - ports: - - name: web - containerPort: 2342 - env: - {{ $secretName := (include "common.names.fullname" .) }} - {{ $envList := (default list .Values.environmentVariables) }} - {{ $envList = mustAppend $envList (dict "name" "PHOTOPRISM_ADMIN_PASSWORD" "valueFromSecret" true "secretName" $secretName "secretKey" "password") }} - {{ if .Values.public }} - {{ $envList = mustAppend $envList (dict "name" "PHOTOPRISM_PUBLIC" "value" "true") }} - {{ end }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} -{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} diff --git a/test/photoprism/1.0.12/templates/pre-install-job.yaml b/test/photoprism/1.0.12/templates/pre-install-job.yaml deleted file mode 100644 index 0a7b6b8625..0000000000 --- a/test/photoprism/1.0.12/templates/pre-install-job.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-job" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} - helm.sh/chart: {{ template "common.names.chart" . }} - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-delete-policy": hook-succeeded -spec: - template: - metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-hook" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - helm.sh/chart: {{ template "common.names.chart" . }} - spec: - restartPolicy: Never - containers: - - name: pre-install-job - image: "alpine:latest" - command: - - "chown" - - "-R" - - "{{ .Values.ownerUID }}:{{ .Values.ownerGID }}" - - "{{ .Values.appVolumeMounts.storage.mountPath }}" - - "{{ .Values.appVolumeMounts.original.mountPath }}" - - "{{ .Values.appVolumeMounts.import.mountPath }}" - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} diff --git a/test/photoprism/1.0.12/templates/secret.yaml b/test/photoprism/1.0.12/templates/secret.yaml deleted file mode 100644 index e531b6015e..0000000000 --- a/test/photoprism/1.0.12/templates/secret.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels" . | nindent 4 }} -type: Opaque -data: - password: {{ .Values.password | b64enc | quote }} diff --git a/test/photoprism/1.0.12/templates/service.yaml b/test/photoprism/1.0.12/templates/service.yaml deleted file mode 100644 index 6f9eafad6d..0000000000 --- a/test/photoprism/1.0.12/templates/service.yaml +++ /dev/null @@ -1,9 +0,0 @@ -{{ $selectors := list }} -{{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }} -{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "web" "port" .Values.web_port "nodePort" .Values.web_port "targetPort" 2342) }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{ $_1 := set .Values "extraSelectorLabels" $selectors }} -{{ include "common.classes.service" $params }} diff --git a/test/photoprism/1.0.12/templates/tests/deployment-check.yaml b/test/photoprism/1.0.12/templates/tests/deployment-check.yaml deleted file mode 100644 index da2a65ed8d..0000000000 --- a/test/photoprism/1.0.12/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: {{ .Release.Name }}-photoprism - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}:{{.Values.web_port}}/ - restartPolicy: Never diff --git a/test/photoprism/1.0.12/test_values.yaml b/test/photoprism/1.0.12/test_values.yaml deleted file mode 100644 index 634839e56d..0000000000 --- a/test/photoprism/1.0.12/test_values.yaml +++ /dev/null @@ -1,24 +0,0 @@ -appVolumeMounts: - import: - emptyDir: true - mountPath: /photoprism/import - original: - emptyDir: true - mountPath: /photoprism/originals - storage: - emptyDir: true - mountPath: /photoprism/storage -dnsConfig: - options: [] -emptyDirVolumes: true -environmentVariables: [] -extraAppVolumeMounts: [] -image: - pullPolicy: IfNotPresent - repository: photoprism/photoprism - tag: 221118-jammy -ownerGID: 568 -ownerUID: 568 -password: admin123 -public: false -web_port: 32000 diff --git a/test/photoprism/item.yaml b/test/photoprism/item.yaml deleted file mode 100644 index 12161318a0..0000000000 --- a/test/photoprism/item.yaml +++ /dev/null @@ -1,3 +0,0 @@ -icon_url: https://photoprism.app/static/icons/logo.svg -categories: -- media diff --git a/test/photoprism/upgrade_info.json b/test/photoprism/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/test/photoprism/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/test/photoprism/upgrade_strategy b/test/photoprism/upgrade_strategy deleted file mode 100755 index 146fdc4d3a..0000000000 --- a/test/photoprism/upgrade_strategy +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/python3 -import json -import sys -import re - -from catalog_update.upgrade_strategy import datetime_versioning - - -VERSION_REG = r'2[2-9][0-1][0-9][0-3][0-9]-jammy' - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - tags = [] - for tag in image_tags[key]: - match = re.fullmatch(VERSION_REG, tag) - if match: - tags.append(tag.split('-')[0]) - - version = datetime_versioning(list(tags), '%y%m%d') - if not version: - return {} - - return { - 'tags': {key: f'{version}-jammy'}, - 'app_version': version, - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/pihole/.helmignore b/test/pihole/.helmignore deleted file mode 100644 index c1347c2c27..0000000000 --- a/test/pihole/.helmignore +++ /dev/null @@ -1,2 +0,0 @@ -# Patterns to ignore when building packages. -*.png diff --git a/test/pihole/1.0.12/Chart.lock b/test/pihole/1.0.12/Chart.lock deleted file mode 100644 index 9d78dd0ba2..0000000000 --- a/test/pihole/1.0.12/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:48.289564886+05:00" diff --git a/test/pihole/1.0.12/Chart.yaml b/test/pihole/1.0.12/Chart.yaml deleted file mode 100644 index 5fcd136e25..0000000000 --- a/test/pihole/1.0.12/Chart.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v2 -appVersion: 2022.12.1 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: DNS and Ad-filtering for your network. -home: https://pi-hole.net/ -icon: https://github.com/pi-hole/graphics/raw/master/Vortex/Vortex_Vertical_wordmark_lightmode.png?raw=true) -keywords: -- networking -- dns -name: pihole -version: 1.0.12 diff --git a/test/pihole/1.0.12/README.md b/test/pihole/1.0.12/README.md deleted file mode 100644 index 98d1bcdb3b..0000000000 --- a/test/pihole/1.0.12/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Pihole - -DNS and Ad-filtering for your network. diff --git a/test/pihole/1.0.12/app-readme.md b/test/pihole/1.0.12/app-readme.md deleted file mode 100644 index 98d1bcdb3b..0000000000 --- a/test/pihole/1.0.12/app-readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# Pihole - -DNS and Ad-filtering for your network. diff --git a/test/pihole/1.0.12/charts/common-2207.0.0.tgz b/test/pihole/1.0.12/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/pihole/1.0.12/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/pihole/1.0.12/ix_values.yaml b/test/pihole/1.0.12/ix_values.yaml deleted file mode 100644 index b0713af98e..0000000000 --- a/test/pihole/1.0.12/ix_values.yaml +++ /dev/null @@ -1,4 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: pihole/pihole - tag: 2022.12.1 diff --git a/test/pihole/1.0.12/questions.yaml b/test/pihole/1.0.12/questions.yaml deleted file mode 100644 index 3c7c2e6795..0000000000 --- a/test/pihole/1.0.12/questions.yaml +++ /dev/null @@ -1,288 +0,0 @@ -groups: - - name: "Configuration" - description: "Pihole application configuration" - - name: "Storage" - description: "Configure storage for pihole" - - name: "Networking" - description: "Networking Configuration for pihole" - - name: "Advanced DNS Settings" - description: "Configure DNS settings" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - - -portals: - web_portal: - protocols: - - "http" - host: - - "$node_ip" - ports: - - "$variable-web_port" - path: "/admin/" - -questions: - - variable: web_port - label: "Web Port for pihole" - group: Networking - schema: - type: int - min: 8000 - max: 65535 - default: 20720 - required: true - - variable: dns_tcp_port - label: "DNS TCP Port for pihole" - group: Networking - schema: - type: int - min: 8000 - max: 65535 - default: 20721 - required: true - - variable: dns_udp_port - label: "DNS UDP Port for pihole" - group: Networking - schema: - type: int - min: 8000 - max: 65535 - default: 20721 - required: true - - variable: dhcp - label: "Enable DHCP" - group: "Networking" - schema: - type: boolean - default: false - - variable: dhcp_port - label: "DHCP Port for pihole" - group: Networking - schema: - type: int - min: 8000 - max: 65535 - default: 20722 - required: true - show_if: [["dhcp", "=", true]] - - - variable: dnsConfig - label: "DNS Configuration" - group: "Advanced DNS Settings" - schema: - type: dict - attrs: - - variable: options - label: "DNS Options" - schema: - type: list - items: - - variable: optionsEntry - label: "Option Entry Configuration" - schema: - type: dict - attrs: - - variable: name - label: "Option Name" - schema: - type: string - required: true - - variable: value - label: "Option Value" - schema: - type: string - required: true - - - variable: ownerUID - label: "Storage User ID" - description: "User ID of the dnsmasq volume being used (application will chown the volume path with specified UID)" - group: Configuration - schema: - type: int - default: 568 - min: 1 - max: 65535 - - - variable: ownerGID - label: "Storage Group ID" - description: "Group ID of the dnsmasq volume being used (application will chown the volume path with specified GID)" - group: Configuration - schema: - type: int - default: 568 - min: 1 - max: 65535 - - - variable: password - label: "Admin password" - group: "Configuration" - schema: - type: string - private: true - required: true - empty: false - immutable: true - - - variable: timezone - label: "Configure timezone" - group: "Configuration" - description: "Configure timezone for pihole" - schema: - type: string - $ref: - - "definitions/timezone" - - - variable: hostNetwork - label: "Enable Host Network" - group: "Networking" - schema: - type: boolean - default: false - - - variable: environmentVariables - label: "Pihole environment" - group: "Configuration" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: appVolumeMounts - label: "Pihole Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-pihole_config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/etc/pihole" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Pihole Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Pihole Configuration Volume" - schema: - type: hostpath - required: true - - variable: dnsmasq - label: "DNSMASQ Volume for pihole" - schema: - type: dict - attrs: - - variable: datasetName - label: "DNSMASQ Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-pihole_dnsmasq" - editable: false - - variable: mountPath - label: "DNSMASQ Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/etc/dnsmasq.d" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Pihole DNSMASQ Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Pihole DNSMASQ Volume" - schema: - type: hostpath - required: true - - - variable: extraAppVolumeMounts - label: "Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Host Path Volume" - description: "Add an extra host path volume for Pihole application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limresource limitsit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/test/pihole/1.0.12/templates/deployment.yaml b/test/pihole/1.0.12/templates/deployment.yaml deleted file mode 100644 index eb404f4835..0000000000 --- a/test/pihole/1.0.12/templates/deployment.yaml +++ /dev/null @@ -1,69 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - chart: {{ template "common.names.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} - annotations: - rollme: {{ randAlphaNum 5 | quote }} -spec: - replicas: {{ (default 1 .Values.replicas) }} - strategy: - type: "Recreate" - selector: - matchLabels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - {{- include "common.labels.selectorLabels" . | nindent 8 }} - annotations: {{ include "common.annotations" . | nindent 8 }} - spec: - hostNetwork: {{ .Values.hostNetwork }} - containers: - - name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 10 }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - ports: - - name: web - containerPort: 80 - - name: dns-tcp - containerPort: 53 - protocol: TCP - - name: dns-udp - containerPort: 53 - protocol: UDP - {{ if .Values.dhcp }} - - name: dhcp - containerPort: 67 - protocol: UDP - {{ end }} - env: - {{ $secretName := (include "common.names.fullname" .) }} - {{ $envList := (default list .Values.environmentVariables) }} - {{ $envList = mustAppend $envList (dict "name" "WEBPASSWORD" "valueFromSecret" true "secretName" $secretName "secretKey" "password") }} - {{ $envList = mustAppend $envList (dict "name" "TZ" "value" (printf "%s" .Values.timezone)) }} - {{ if .Values.dhcp }} - {{ $envList = mustAppend $envList (dict "name" "DHCP_ACTIVE" "value" "true") }} - {{ end }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} -{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} diff --git a/test/pihole/1.0.12/templates/pre-install-job.yaml b/test/pihole/1.0.12/templates/pre-install-job.yaml deleted file mode 100644 index 8ef9ea0f26..0000000000 --- a/test/pihole/1.0.12/templates/pre-install-job.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-job" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} - helm.sh/chart: {{ template "common.names.chart" . }} - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-delete-policy": hook-succeeded -spec: - template: - metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-hook" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - helm.sh/chart: {{ template "common.names.chart" . }} - spec: - restartPolicy: Never - containers: - - name: pre-install-job - image: "alpine:latest" - command: - - "chown" - - "-R" - - "{{ .Values.ownerUID }}:{{ .Values.ownerGID }}" - - "{{ .Values.appVolumeMounts.dnsmasq.mountPath }}" - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} diff --git a/test/pihole/1.0.12/templates/secret.yaml b/test/pihole/1.0.12/templates/secret.yaml deleted file mode 100644 index e531b6015e..0000000000 --- a/test/pihole/1.0.12/templates/secret.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: {{ template "common.names.fullname" . }} - labels: {{ include "common.labels" . | nindent 4 }} -type: Opaque -data: - password: {{ .Values.password | b64enc | quote }} diff --git a/test/pihole/1.0.12/templates/service.yaml b/test/pihole/1.0.12/templates/service.yaml deleted file mode 100644 index 566328dbc1..0000000000 --- a/test/pihole/1.0.12/templates/service.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{{ $selectors := list }} -{{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }} -{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "web" "port" .Values.web_port "nodePort" .Values.web_port "targetPort" 80) }} -{{ $ports = mustAppend $ports (dict "name" "dns-tcp" "port" .Values.dns_tcp_port "nodePort" .Values.dns_tcp_port "targetPort" 53) }} -{{ $ports = mustAppend $ports (dict "name" "dns-udp" "port" .Values.dns_udp_port "nodePort" .Values.dns_udp_port "targetPort" 53 "protocol" "UDP") }} -{{ if .Values.dhcp }} -{{ $ports = mustAppend $ports (dict "name" "dhcp" "port" .Values.dhcp_port "nodePort" .Values.dhcp_port "targetPort" 67 "protocol" "UDP") }} -{{ end }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{ $_1 := set .Values "extraSelectorLabels" $selectors }} -{{ include "common.classes.service" $params }} diff --git a/test/pihole/1.0.12/templates/tests/deployment-check.yaml b/test/pihole/1.0.12/templates/tests/deployment-check.yaml deleted file mode 100644 index ca148e6b40..0000000000 --- a/test/pihole/1.0.12/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: {{ .Release.Name }}-test-pod - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}:{{.Values.web_port}}/admin/login.php - restartPolicy: Never diff --git a/test/pihole/1.0.12/test_values.yaml b/test/pihole/1.0.12/test_values.yaml deleted file mode 100644 index 36caf64883..0000000000 --- a/test/pihole/1.0.12/test_values.yaml +++ /dev/null @@ -1,26 +0,0 @@ -appVolumeMounts: - config: - emptyDir: true - mountPath: /etc/pihole - dnsmasq: - emptyDir: true - mountPath: /etc/dnsmasq.d -dhcp: false -dhcp_port: 32003 -dnsConfig: - options: [] -dns_tcp_port: 32001 -dns_udp_port: 32002 -emptyDirVolumes: true -environmentVariables: [] -extraAppVolumeMounts: [] -hostNetwork: false -image: - pullPolicy: IfNotPresent - repository: pihole/pihole - tag: 2022.12.1 -ownerGID: 568 -ownerUID: 568 -password: admin123 -timezone: America/Los_Angeles -web_port: 32000 diff --git a/test/pihole/item.yaml b/test/pihole/item.yaml deleted file mode 100644 index 9cf8a7620d..0000000000 --- a/test/pihole/item.yaml +++ /dev/null @@ -1,4 +0,0 @@ -icon_url: https://github.com/pi-hole/graphics/raw/master/Vortex/Vortex_Vertical_wordmark_lightmode.png?raw=true) -categories: -- networking -- dns diff --git a/test/pihole/upgrade_info.json b/test/pihole/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/test/pihole/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/test/pihole/upgrade_strategy b/test/pihole/upgrade_strategy deleted file mode 100755 index 39bb56546a..0000000000 --- a/test/pihole/upgrade_strategy +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python3 -import json -import sys - -from catalog_update.upgrade_strategy import semantic_versioning - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - tags = {t: t for t in image_tags[key]} - version = semantic_versioning(list(tags)) - if not version: - return {} - - return { - 'tags': {key: tags[version]}, - 'app_version': version, - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/plex/1.7.32/.helmignore b/test/plex/1.7.32/.helmignore deleted file mode 100644 index e559de0a01..0000000000 --- a/test/plex/1.7.32/.helmignore +++ /dev/null @@ -1,24 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ -# OWNERS file for Kubernetes -OWNERS diff --git a/test/plex/1.7.32/Chart.lock b/test/plex/1.7.32/Chart.lock deleted file mode 100644 index ed178dfc29..0000000000 --- a/test/plex/1.7.32/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:48.105219554+05:00" diff --git a/test/plex/1.7.32/Chart.yaml b/test/plex/1.7.32/Chart.yaml deleted file mode 100644 index b70dca3262..0000000000 --- a/test/plex/1.7.32/Chart.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v2 -appVersion: 1.31.2.6810 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: Plex Media Server -home: https://plex.tv/ -icon: https://www.plex.tv/wp-content/uploads/2018/01/pmp-icon-1.png -keywords: -- plex -name: plex -sources: -- https://hub.docker.com/r/plexinc/pms-docker/ -- https://github.com/k8s-at-home/charts/tree/master/charts/plex -upstream_version: 2.1.0 -version: 1.7.32 diff --git a/test/plex/1.7.32/README.md b/test/plex/1.7.32/README.md deleted file mode 100644 index 7a3bb510dc..0000000000 --- a/test/plex/1.7.32/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Plex Media Server helm chart - -## Configuration - -Please refer to questions.yaml for a detailed overview on supported configurable items. diff --git a/test/plex/1.7.32/app-readme.md b/test/plex/1.7.32/app-readme.md deleted file mode 100644 index cb657a2f0e..0000000000 --- a/test/plex/1.7.32/app-readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# Plex - -Plex chart is a chart designed to deploy plex in a TrueNAS SCALE kubernetes cluster. diff --git a/test/plex/1.7.32/charts/common-2207.0.0.tgz b/test/plex/1.7.32/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/plex/1.7.32/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/plex/1.7.32/default_values.yaml b/test/plex/1.7.32/default_values.yaml deleted file mode 100644 index 12b8b12cc6..0000000000 --- a/test/plex/1.7.32/default_values.yaml +++ /dev/null @@ -1,84 +0,0 @@ -# Default values -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -# The Image to use for PLEX - -image: - repository: plexinc/pms-docker - tag: 1.20.2.3402-0fec14d92 - pullPolicy: IfNotPresent - -##### START --> Official PLEX container environment variables -# Override this with the plex claim token from plex.tv/claim -claimToken: "" - -# Set the timezone of the plex server -timezone: "Etc/UTC" - -# add your pod network subnet to the `List of IP addresses and networks that are allowed without auth` -# This will override the manual settings, so only use this if you will not need to change it manually. -# This list will be automatically converted to a command seperated string when passed to the container. -# You would specify this when using helm CLI with --set allowedNetworks="{127.0.0.1,10.54.2.0/24}" -# allowedNetworks: -# - 127.0.0.1 -# - 10.54.2.0/24 - -# Instruct the Plex Media Server Container to Change the Configuration Directory Ownership -# Default is true, you would only need to set this if you want to disable it. -# changeConfigDirOwnership: true - -# advertiseIp This variable defines the additional IPs on which the server may be be found. -# For example: http://10.1.1.23:32400. -# This adds to the list where the server advertises that it can be found. -# See https://hub.docker.com/r/plexinc/pms-docker/ for details -# advertiseIp: "http://10.1.1.23:32400" - -# Set The user id of the plex user created inside the container. -# See https://hub.docker.com/r/plexinc/pms-docker/ for details -# plexUid: 1000 - -# Set The group id of the plex group created inside the container -# See https://hub.docker.com/r/plexinc/pms-docker/ for details -# plexGid: 1000 - -##### END --> Official PLEX container environment variables - -# You can add as many Additional ENV variables here -# The following is the same as --set extraEnv.TMPDIR="/transcode" -# extraEnv: -# TMPDIR: /transcode - -# upgrade strategy type (e.g. Recreate or RollingUpdate) -updateStrategy: Recreate - -plexServiceTCP: - port: 32400 - -hostNetwork: false - -proxy: - # This allows to set a proxy environment variable, which PMS uses to fetch the token and assets like movie cover - enabled: false - # http: "http://proxy:8080" - # https: "https://proxy:8080" - # noproxy: "localhost,127.0.0.1,10.96.0.0/12,10.244.0.0/12" - -gpuConfiguration: {} - -appVolumeMounts: - transcode: - emptyDir: true - mountPath: "/transcode" - data: - emptyDir: true - mountPath: "/data" - config: - emptyDir: true - mountPath: "/config" - shared: - emptyDir: true - mountPath: "shared" - shared-logs: - emptyDir: true - mountPath: "/config/Library/Application Support/Plex Media Server/Logs" diff --git a/test/plex/1.7.32/ix_values.yaml b/test/plex/1.7.32/ix_values.yaml deleted file mode 100644 index ae9aa90581..0000000000 --- a/test/plex/1.7.32/ix_values.yaml +++ /dev/null @@ -1,8 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: plexinc/pms-docker - tag: 1.31.2.6810-a607d384f -plexpassImage: - pullPolicy: IfNotPresent - repository: plexinc/pms-docker - tag: plexpass diff --git a/test/plex/1.7.32/migrations/migrate_from_1.0.0 b/test/plex/1.7.32/migrations/migrate_from_1.0.0 deleted file mode 100755 index a93c1d9f47..0000000000 --- a/test/plex/1.7.32/migrations/migrate_from_1.0.0 +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/python3 -import json -import os -import sys - - -def migrate(values): - values.update({ - 'appVolumeMounts': { - 'transcode': { - 'hostPathEnabled': values['transcodeHostPathEnabled'], - **({'hostPath': values['transcodeHostPath']} if values.get('transcodeHostPath') else {}) - }, - 'config': { - 'hostPathEnabled': values['configHostPathEnabled'], - **({'hostPath': values['configHostPath']} if values.get('configHostPath') else {}) - }, - 'data': { - 'hostPathEnabled': values['dataHostPathEnabled'], - **({'hostPath': values['dataHostPath']} if values.get('dataHostPath') else {}) - }, - }, - 'updateStrategy': values.get('strategyType', 'Recreate'), - }) - return values - - -if __name__ == '__main__': - if len(sys.argv) != 2: - exit(1) - - if os.path.exists(sys.argv[1]): - with open(sys.argv[1], 'r') as f: - print(json.dumps(migrate(json.loads(f.read())))) diff --git a/test/plex/1.7.32/questions.yaml b/test/plex/1.7.32/questions.yaml deleted file mode 100644 index ef84008462..0000000000 --- a/test/plex/1.7.32/questions.yaml +++ /dev/null @@ -1,361 +0,0 @@ -groups: - - name: "Plex Configuration" - description: "Configure plex deployment" - - name: "Networking" - description: "Configure networking for container" - - name: "Storage" - description: "Persist and share data that is separate from the lifecycle of the container" - - name: "Workload Details" - description: "Configure how workload should be deployed" - - name: "Scaling/Upgrade Policy" - description: "Configure how pods are replaced when configuration is upgraded" - - name: "Restart Policy" - description: "Configure when pod should be restarted in case of failure" - - name: "Resource Reservation" - description: "Specify resources to be allocated to workload" - - name: "Advanced DNS Settings" - description: "Configure DNS settings" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - -portals: - web_portal: - protocols: - - "http" - host: - - "$node_ip" - ports: - - "$variable-plexServiceTCP.port" - path: "/web" - -questions: - - variable: enablePlexPass - label: "Use PlexPass" - group: "Plex Configuration" - schema: - type: boolean - default: false - - variable: dnsConfig - label: "DNS Configuration" - group: "Advanced DNS Settings" - schema: - type: dict - attrs: - - variable: options - label: "DNS Options" - schema: - type: list - items: - - variable: optionsEntry - label: "Option Entry Configuration" - schema: - type: dict - attrs: - - variable: name - label: "Option Name" - schema: - type: string - required: true - - variable: value - label: "Option Value" - schema: - type: string - required: true - - - variable: claimToken - label: "Plex Claim Token" - group: "Plex Configuration" - description: "The claim token for the server to obtain a real server token. If not provided, server is will not be automatically logged in. If server is already logged in, this parameter is ignored. You can obtain a claim token to login your server to your plex account by visiting https://www.plex.tv/claim." - schema: - type: string - default: "" - - - variable: hostNetwork - label: "Configure Host Network" - group: "Networking" - schema: - type: boolean - default: false - - - variable: environmentVariables - label: "Environment Variables for Plex" - group: "Plex Configuration" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: timezone - label: "Plex container timezone" - group: "Plex Configuration" - schema: - type: string - default: "Etc/UTC" - $ref: - - "definitions/timezone" - - # Update strategy - - variable: updateStrategy - description: "Upgrade Policy" - label: "Update Strategy" - group: "Scaling/Upgrade Policy" - schema: - type: string - default: "Recreate" - enum: - - value: "RollingUpdate" - description: "Create new pods and then kill old ones" - - value: "Recreate" - description: "Kill existing pods before creating new ones" - - # Port configuration - - variable: plexServiceTCP - label: "Configure Plex TCP Service" - group: "Networking" - schema: - type: dict - attrs: - - variable: port - label: "Port to expose for Plex UI" - schema: - type: int - min: 9000 - max: 65535 - default: 32400 - - # Specify GPU configuration - - variable: gpuConfiguration - label: "GPU Configuration" - group: "Resource Reservation" - schema: - type: dict - $ref: - - "definitions/gpuConfiguration" - attrs: [] - - - variable: appVolumeMounts - label: "Plex Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: transcode - label: "Transcode Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Plex Transcode Volume Name" - schema: - type: string - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-plex_transcode" - hidden: true - editable: false - - variable: mountPath - label: "Plex Transcode Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/transcode" - - variable: hostPathEnabled - label: "Enable Host Path for Plex Transcode Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Plex Transcode Volume" - schema: - type: hostpath - required: true - $ref: - - "validations/lockedHostPath" - - variable: data - label: "Data Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Plex Data Volume Name" - schema: - type: string - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-plex_data" - editable: false - hidden: true - - variable: mountPath - label: "Plex Data Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/data" - - variable: hostPathEnabled - label: "Enable Host Path for Plex Data Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Plex Data Volume" - schema: - type: hostpath - required: true - $ref: - - "validations/lockedHostPath" - - variable: config - label: "Config Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Plex Config Volume Name" - schema: - type: string - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-plex_config" - editable: false - hidden: true - - variable: mountPath - label: "Plex Config Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - editable: false - hidden: true - default: "/config" - - variable: hostPathEnabled - label: "Enable Host Path for Plex Config Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Plex Config Volume" - schema: - type: hostpath - required: true - $ref: - - "validations/lockedHostPath" - - variable: shared - label: "Shared Volume" - schema: - type: dict - hidden: true - attrs: - - variable: emptyDir - label: "Temporary Volume" - schema: - type: boolean - default: true - editable: false - - variable: mountPath - label: "Plex Shared Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - editable: false - default: "/shared" - - variable: shared-logs - label: "Shared Logs Volume" - schema: - type: dict - hidden: true - attrs: - - variable: emptyDir - label: "Temporary Volume" - schema: - type: boolean - default: true - editable: false - - variable: mountPath - label: "Plex Shared Logs Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - editable: false - default: "/config/Library/Application Support/Plex Media Server/Logs" - - - variable: extraAppVolumeMounts - label: "Plex Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Plex Host Path Volume" - description: "Add an extra host path volume for plex application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - $ref: - - "validations/lockedHostPath" - - variable: readOnly - label: "Read Only" - description: "Mount hostpath in read-only mode" - schema: - type: boolean - default: false - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limresource limitsit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/test/plex/1.7.32/templates/NOTES.txt b/test/plex/1.7.32/templates/NOTES.txt deleted file mode 100644 index f3d1e07cb1..0000000000 --- a/test/plex/1.7.32/templates/NOTES.txt +++ /dev/null @@ -1,3 +0,0 @@ -1. Get the application URL by running these commands: - -http://$node_ip:{{ .Values.plexServiceTCP.port }}/ diff --git a/test/plex/1.7.32/templates/deployment.yaml b/test/plex/1.7.32/templates/deployment.yaml deleted file mode 100644 index 49044bf38d..0000000000 --- a/test/plex/1.7.32/templates/deployment.yaml +++ /dev/null @@ -1,103 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -{{ include "common.deployment.common_config" . | nindent 0 }} -spec: {{ include "common.deployment.common_spec" . | nindent 2 }} - template: {{ include "common.deployment.pod.metadata" . | nindent 4 }} - spec: - hostNetwork: {{ .Values.hostNetwork }} - {{- if .Values.hostNetwork }} - dnsPolicy: ClusterFirstWithHostNet - {{- end }} - hostname: {{ template "common.names.fullname" . }} - containers: - - name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 10 }} - {{ if .Values.enablePlexPass }} - {{ include "common.containers.imageConfig" .Values.plexpassImage | nindent 10 }} - {{ else }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - {{ end }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - - name: plex-probe-check - mountPath: /bin/plex_probe_check.sh - readOnly: true - subPath: entrypoint.sh - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ if $hostPathConfiguration.readOnly }} - readOnly: {{ $hostPathConfiguration.readOnly }} - {{ end }} - {{ end }} - ports: - - name: pms - protocol: TCP - containerPort: 32400 - {{- if .Values.hostNetwork }} - hostPort: {{ .Values.plexServiceTCP.port }} - {{- end }} - - name: plex-dlna - protocol: TCP - containerPort: 32469 - - name: plex-dlna-udp - protocol: UDP - containerPort: 1900 - - name: plex-gdm1 - protocol: UDP - containerPort: 32410 - - name: plex-gdm2 - protocol: UDP - containerPort: 32412 - - name: plex-gdm3 - protocol: UDP - containerPort: 32413 - - name: plex-gdm4 - protocol: UDP - containerPort: 32414 - env: - - name: KUBE_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: POD_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - {{ $envList := (default list .Values.environmentVariables) }} - {{ if and .Values.gpuConfiguration (hasKey .Values.gpuConfiguration "nvidia.com/gpu") (gt (get .Values.gpuConfiguration "nvidia.com/gpu" | toDecimal) 0) }} - {{ $envList = mustAppend $envList (dict "name" "NVIDIA_DRIVER_CAPABILITIES" "value" "all") }} - {{ end }} - {{ $envList = mustAppend $envList (dict "name" "TZ" "value" .Values.timezone) }} - {{ $envList = mustAppend $envList (dict "name" "PLEX_CLAIM" "value" .Values.claimToken) }} - {{ $envList = mustAppend $envList (dict "name" "PMS_INTERNAL_ADDRESS" "value" (printf "http://%s:32400" (include "common.names.fullname" .))) }} - {{ $envList = mustAppend $envList (dict "name" "PMS_IMAGE" "value" (printf "%s:%s" .Values.image.repository .Values.image.tag))}} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} - readinessProbe: - exec: - command: - - /bin/plex_probe_check.sh - failureThreshold: 5 - periodSeconds: 15 - livenessProbe: - exec: - command: - - /bin/plex_probe_check.sh - failureThreshold: 5 - periodSeconds: 15 - startupProbe: - exec: - command: - - /bin/plex_probe_check.sh - initialDelaySeconds: 5 - failureThreshold: 20 - periodSeconds: 15 - {{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - - name: plex-probe-check - configMap: - defaultMode: 0700 - name: "plex-probe-check" - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} diff --git a/test/plex/1.7.32/templates/probe_config.yaml b/test/plex/1.7.32/templates/probe_config.yaml deleted file mode 100644 index 736ee8cf47..0000000000 --- a/test/plex/1.7.32/templates/probe_config.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: "plex-probe-check" -data: - entrypoint.sh: |- - #!/bin/sh - curl -ksf http://$POD_IP:32400/identity -o /dev/null || curl -ksf https://$POD_IP:32400/identity -o /dev/null diff --git a/test/plex/1.7.32/templates/service-tcp.yaml b/test/plex/1.7.32/templates/service-tcp.yaml deleted file mode 100644 index 4fec88260b..0000000000 --- a/test/plex/1.7.32/templates/service-tcp.yaml +++ /dev/null @@ -1,16 +0,0 @@ -{{ $svc := .Values.plexServiceTCP }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "pms" "port" $svc.port "nodePort" $svc.port "targetPort" "pms") }} -{{ $ports = mustAppend $ports (dict "name" "http" "port" 80 "targetPort" "pms") }} -{{ $ports = mustAppend $ports (dict "name" "https" "port" 443 "targetPort" "pms") }} -{{ $ports = mustAppend $ports (dict "name" "plex-dlna" "port" 1900 "targetPort" "plex-dlna") }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "ports" $ports ) }} -{{ if .Values.hostNetwork }} -{{ $_ := set $params.commonService "nameSuffix" "tcp-cluster-ip" }} -{{ $_1 := set $params.commonService "type" "ClusterIP" }} -{{ else }} -{{ $_ := set $params.commonService "nameSuffix" "tcp" }} -{{ $_1 := set $params.commonService "type" "NodePort" }} -{{ end }} -{{ include "common.classes.service" $params }} diff --git a/test/plex/1.7.32/templates/service-udp.yaml b/test/plex/1.7.32/templates/service-udp.yaml deleted file mode 100644 index 5a84addc99..0000000000 --- a/test/plex/1.7.32/templates/service-udp.yaml +++ /dev/null @@ -1,9 +0,0 @@ -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "plex-dlna-udp" "port" 1900 "protocol" "UDP" "targetPort" "plex-dlna-udp") }} -{{ $ports = mustAppend $ports (dict "name" "plex-gdm1" "port" 32410 "protocol" "UDP" "targetPort" "plex-gdm1") }} -{{ $ports = mustAppend $ports (dict "name" "plex-gdm2" "port" 32412 "protocol" "UDP" "targetPort" "plex-gdm2") }} -{{ $ports = mustAppend $ports (dict "name" "plex-gdm3" "port" 32413 "protocol" "UDP" "targetPort" "plex-gdm3") }} -{{ $ports = mustAppend $ports (dict "name" "plex-gdm4" "port" 32414 "protocol" "UDP" "targetPort" "plex-gdm4") }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "ClusterIP" "ports" $ports "nameSuffix" "udp" ) }} -{{ include "common.classes.service" $params }} diff --git a/test/plex/1.7.32/templates/tests/deployment-check.yaml b/test/plex/1.7.32/templates/tests/deployment-check.yaml deleted file mode 100644 index 8e223fe348..0000000000 --- a/test/plex/1.7.32/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-plex-test" - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}-tcp:32400/identity - restartPolicy: Never diff --git a/test/plex/1.7.32/test_values.yaml b/test/plex/1.7.32/test_values.yaml deleted file mode 100644 index a5c06ad9b1..0000000000 --- a/test/plex/1.7.32/test_values.yaml +++ /dev/null @@ -1,36 +0,0 @@ -appVolumeMounts: - config: - emptyDir: true - mountPath: /config - data: - emptyDir: true - mountPath: /data - shared: - emptyDir: true - mountPath: shared - shared-logs: - emptyDir: true - mountPath: /config/Library/Application Support/Plex Media Server/Logs - transcode: - emptyDir: true - mountPath: /transcode -claimToken: '' -dnsConfig: - options: [] -emptyDirVolumes: true -enablePlexPass: false -environmentVariables: [] -extraAppVolumeMounts: -- hostPath: /mnt/extras/hello - mountPath: /mnt/extras - readOnly: true -gpuConfiguration: {} -hostNetwork: false -image: - pullPolicy: IfNotPresent - repository: plexinc/pms-docker - tag: 1.31.2.6810-a607d384f -plexServiceTCP: - port: 32400 -timezone: Etc/UTC -updateStrategy: Recreate diff --git a/test/plex/item.yaml b/test/plex/item.yaml deleted file mode 100644 index 8d014b680d..0000000000 --- a/test/plex/item.yaml +++ /dev/null @@ -1,3 +0,0 @@ -categories: - - entertainment -icon_url: https://www.plex.tv/wp-content/uploads/2018/01/pmp-icon-1.png diff --git a/test/plex/upgrade_info.json b/test/plex/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/test/plex/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/test/plex/upgrade_strategy b/test/plex/upgrade_strategy deleted file mode 100755 index 10b871eede..0000000000 --- a/test/plex/upgrade_strategy +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python3 -import json -import sys - -from catalog_update.upgrade_strategy import semantic_versioning - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - tags = {t.rsplit('-', 1)[0]: t for t in image_tags[key]} - version = semantic_versioning(list(tags)) - if not version: - return {} - - return { - 'tags': {key: tags[version]}, - 'app_version': version, - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/qbittorent/.helmignore b/test/qbittorent/.helmignore deleted file mode 100644 index c1347c2c27..0000000000 --- a/test/qbittorent/.helmignore +++ /dev/null @@ -1,2 +0,0 @@ -# Patterns to ignore when building packages. -*.png diff --git a/test/qbittorent/1.0.11/Chart.lock b/test/qbittorent/1.0.11/Chart.lock deleted file mode 100644 index 8790eff19e..0000000000 --- a/test/qbittorent/1.0.11/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:48.056303531+05:00" diff --git a/test/qbittorent/1.0.11/Chart.yaml b/test/qbittorent/1.0.11/Chart.yaml deleted file mode 100644 index 210f51ffa4..0000000000 --- a/test/qbittorent/1.0.11/Chart.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v2 -appVersion: 4.5.2 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: Download data from qbittorent. -home: https://www.qbittorrent.org/ -icon: https://github.com/linuxserver/docker-templates/raw/master/linuxserver.io/img/qbittorrent-icon.png -keywords: -- storage -- torrent -name: qbittorent -version: 1.0.11 diff --git a/test/qbittorent/1.0.11/README.md b/test/qbittorent/1.0.11/README.md deleted file mode 100644 index 011967bbd7..0000000000 --- a/test/qbittorent/1.0.11/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# qbittorent - -[qbittorent](https://qbittorrent.com/) is a utorrent downloading client \ No newline at end of file diff --git a/test/qbittorent/1.0.11/app-readme.md b/test/qbittorent/1.0.11/app-readme.md deleted file mode 100644 index ada89a9bda..0000000000 --- a/test/qbittorent/1.0.11/app-readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# Qbittorent - -[qbittorent](https://qbittorrent.com/) is a utorrent downloading client. diff --git a/test/qbittorent/1.0.11/charts/common-2207.0.0.tgz b/test/qbittorent/1.0.11/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/qbittorent/1.0.11/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/qbittorent/1.0.11/ix_values.yaml b/test/qbittorent/1.0.11/ix_values.yaml deleted file mode 100644 index d9d1173f7a..0000000000 --- a/test/qbittorent/1.0.11/ix_values.yaml +++ /dev/null @@ -1,4 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: linuxserver/qbittorrent - tag: 4.5.2 diff --git a/test/qbittorent/1.0.11/questions.yaml b/test/qbittorent/1.0.11/questions.yaml deleted file mode 100644 index 317ccb1c22..0000000000 --- a/test/qbittorent/1.0.11/questions.yaml +++ /dev/null @@ -1,251 +0,0 @@ -groups: - - name: "Configuration" - description: "Qbittorent application configuration" - - name: "Storage" - description: "Configure storage for qbittorent" - - name: "Networking" - description: "Networking Configuration for qbittorent" - - name: "Advanced DNS Settings" - description: "Configure DNS settings" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - -portals: - web_portal: - protocols: - - "http" - host: - - "$node_ip" - ports: - - "$variable-web_port" - path: "/" - -questions: - - variable: web_port - label: "Web Port for qbittorent" - group: Networking - schema: - type: int - min: 8000 - max: 65535 - default: 20909 - required: true - - variable: tcp_port - label: "TCP Port for qbittorent" - group: Networking - schema: - type: int - min: 8000 - max: 65535 - default: 20988 - required: true - - variable: udp_port - label: "UDP Port for qbittorent" - group: Networking - schema: - type: int - min: 8000 - max: 65535 - default: 20989 - required: true - - - variable: dnsConfig - label: "DNS Configuration" - group: "Advanced DNS Settings" - schema: - type: dict - attrs: - - variable: options - label: "DNS Options" - schema: - type: list - items: - - variable: optionsEntry - label: "Option Entry Configuration" - schema: - type: dict - attrs: - - variable: name - label: "Option Name" - schema: - type: string - required: true - - variable: value - label: "Option Value" - schema: - type: string - required: true - - - variable: ownerUID - label: "Owner User ID" - group: Configuration - schema: - type: int - default: 568 - min: 1 - max: 65535 - - - variable: ownerGID - label: "Owner Group ID" - group: Configuration - schema: - type: int - default: 568 - min: 1 - max: 65535 - - - variable: timezone - label: "Timezone" - group: "Configuration" - schema: - type: string - $ref: - - "definitions/timezone" - - - variable: environmentVariables - label: "Qbittorent environment" - group: "Configuration" - schema: - type: list - default: [ ] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: appVolumeMounts - label: "Qbittorent Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-qbittorent_config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/config" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Qbittorent Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Qbittorent Configuration Volume" - schema: - type: hostpath - required: true - - variable: downloads - label: "Downloads Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Downloads Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-qbittorent_data" - editable: false - - variable: mountPath - label: "Downloads Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/downloads" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Qbittorent Downloads Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Qbittorent Downloads Volume" - schema: - type: hostpath - required: true - - - variable: extraAppVolumeMounts - label: "Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Host Path Volume" - description: "Add an extra host path volume for Qbittorent application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limresource limitsit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/test/qbittorent/1.0.11/templates/deployment.yaml b/test/qbittorent/1.0.11/templates/deployment.yaml deleted file mode 100644 index a1cea8a6e2..0000000000 --- a/test/qbittorent/1.0.11/templates/deployment.yaml +++ /dev/null @@ -1,62 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - chart: {{ template "common.names.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} - annotations: - rollme: {{ randAlphaNum 5 | quote }} -spec: - replicas: {{ (default 1 .Values.replicas) }} - strategy: - type: "Recreate" - selector: - matchLabels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - {{- include "common.labels.selectorLabels" . | nindent 8 }} - annotations: {{ include "common.annotations" . | nindent 8 }} - spec: - hostNetwork: false - containers: - - name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 10 }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - ports: - - name: web - containerPort: {{ .Values.web_port }} - - name: tcp - containerPort: {{ .Values.tcp_port }} - protocol: TCP - - name: udp - containerPort: {{ .Values.udp_port }} - protocol: UDP - env: - {{ $envList := (default list .Values.environmentVariables) }} - {{ $envList = mustAppend $envList (dict "name" "PUID" "value" (printf "%d" (.Values.ownerUID | int))) }} - {{ $envList = mustAppend $envList (dict "name" "PGID" "value" (printf "%d" (.Values.ownerGID | int))) }} - {{ $envList = mustAppend $envList (dict "name" "TZ" "value" (printf "%s" .Values.timezone)) }} - {{ $envList = mustAppend $envList (dict "name" "WEBUI_PORT" "value" (printf "%d" (.Values.web_port | int))) }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} -{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} diff --git a/test/qbittorent/1.0.11/templates/pre-install-job.yaml b/test/qbittorent/1.0.11/templates/pre-install-job.yaml deleted file mode 100644 index c3636d6749..0000000000 --- a/test/qbittorent/1.0.11/templates/pre-install-job.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-job" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - helm.sh/chart: {{ template "common.names.chart" . }} - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-delete-policy": hook-succeeded -spec: - template: - metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-hook" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - helm.sh/chart: {{ template "common.names.chart" . }} - spec: - restartPolicy: Never - containers: - - name: pre-install-job - image: "alpine:latest" - command: - - "chown" - - "-R" - - "{{ .Values.ownerUID }}:{{ .Values.ownerGID }}" - - "{{ .Values.appVolumeMounts.config.mountPath }}" - - "{{ .Values.appVolumeMounts.downloads.mountPath }}" - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} diff --git a/test/qbittorent/1.0.11/templates/service.yaml b/test/qbittorent/1.0.11/templates/service.yaml deleted file mode 100644 index 31b4284f2c..0000000000 --- a/test/qbittorent/1.0.11/templates/service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -{{ $selectors := list }} -{{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }} -{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "web" "port" .Values.web_port "nodePort" .Values.web_port "targetPort" .Values.web_port) }} -{{ $ports = mustAppend $ports (dict "name" "tcp" "port" .Values.tcp_port "nodePort" .Values.tcp_port "targetPort" .Values.tcp_port) }} -{{ $ports = mustAppend $ports (dict "name" "udp" "port" .Values.udp_port "nodePort" .Values.udp_port "targetPort" .Values.udp_port "protocol" "UDP") }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{ $_1 := set .Values "extraSelectorLabels" $selectors }} -{{ include "common.classes.service" $params }} diff --git a/test/qbittorent/1.0.11/templates/tests/deployment-check.yaml b/test/qbittorent/1.0.11/templates/tests/deployment-check.yaml deleted file mode 100644 index 2bc64bda61..0000000000 --- a/test/qbittorent/1.0.11/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: {{ .Release.Name }}-qbittorent - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}:{{.Values.web_port}}/ - restartPolicy: Never diff --git a/test/qbittorent/1.0.11/test_values.yaml b/test/qbittorent/1.0.11/test_values.yaml deleted file mode 100644 index e9f4add1cc..0000000000 --- a/test/qbittorent/1.0.11/test_values.yaml +++ /dev/null @@ -1,22 +0,0 @@ -appVolumeMounts: - config: - emptyDir: true - mountPath: /config - downloads: - emptyDir: true - mountPath: /downloads -dnsConfig: - options: [] -emptyDirVolumes: true -environmentVariables: [] -extraAppVolumeMounts: [] -image: - pullPolicy: IfNotPresent - repository: linuxserver/qbittorrent - tag: 4.5.2 -ownerGID: 568 -ownerUID: 568 -tcp_port: 32001 -timezone: Europe/London -udp_port: 32002 -web_port: 32000 diff --git a/test/qbittorent/item.yaml b/test/qbittorent/item.yaml deleted file mode 100644 index 797b97d5c2..0000000000 --- a/test/qbittorent/item.yaml +++ /dev/null @@ -1,4 +0,0 @@ -icon_url: https://github.com/linuxserver/docker-templates/raw/master/linuxserver.io/img/qbittorrent-icon.png -categories: -- media -- torrent diff --git a/test/qbittorent/upgrade_info.json b/test/qbittorent/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/test/qbittorent/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/test/qbittorent/upgrade_strategy b/test/qbittorent/upgrade_strategy deleted file mode 100755 index a17d0d1fb3..0000000000 --- a/test/qbittorent/upgrade_strategy +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/python3 -import json -import re -import sys - -from catalog_update.upgrade_strategy import semantic_versioning - - -RE_STABLE_VERSION = re.compile(r'[0-9]\.[0-9]\.[0-9]') - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - tags = {t: t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)} - version = semantic_versioning(list(tags)) - if not version: - return {} - - return { - 'tags': {key: tags[version]}, - 'app_version': version, - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/storj/1.0.5/Chart.lock b/test/storj/1.0.5/Chart.lock deleted file mode 100644 index 31e49e590e..0000000000 --- a/test/storj/1.0.5/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-08-02T17:37:09.365219548+05:00" diff --git a/test/storj/1.0.5/Chart.yaml b/test/storj/1.0.5/Chart.yaml deleted file mode 100644 index 9e8ba63e1d..0000000000 --- a/test/storj/1.0.5/Chart.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v2 -appVersion: v1.68.2 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: Share your storage on the internet and earn. -home: https://www.storj.io/ -icon: https://assets-global.website-files.com/602eda09fc78afc76e9706b6/60917835a05862243e7de9af_logo.svg -keywords: -- storage -- dapps -- networking -- financial -name: storj -version: 1.0.5 diff --git a/test/storj/1.0.5/README.md b/test/storj/1.0.5/README.md deleted file mode 100644 index fc839a185b..0000000000 --- a/test/storj/1.0.5/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# storj - -[storj](https://www.storj.io/) share your extra storage and earn money diff --git a/test/storj/1.0.5/app-readme.md b/test/storj/1.0.5/app-readme.md deleted file mode 100644 index fc839a185b..0000000000 --- a/test/storj/1.0.5/app-readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# storj - -[storj](https://www.storj.io/) share your extra storage and earn money diff --git a/test/storj/1.0.5/charts/common-2207.0.0.tgz b/test/storj/1.0.5/charts/common-2207.0.0.tgz deleted file mode 100644 index b0fc2dcb6b..0000000000 Binary files a/test/storj/1.0.5/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/storj/1.0.5/ix_values.yaml b/test/storj/1.0.5/ix_values.yaml deleted file mode 100644 index d45e76edb8..0000000000 --- a/test/storj/1.0.5/ix_values.yaml +++ /dev/null @@ -1,5 +0,0 @@ -identityCreationMountPath: /root/.local/share/storj/identity/storagenode -image: - pullPolicy: IfNotPresent - repository: storjlabs/storagenode - tag: 1d42f9ac3-v1.68.2-go1.18.8 diff --git a/test/storj/1.0.5/questions.yaml b/test/storj/1.0.5/questions.yaml deleted file mode 100644 index ce95893778..0000000000 --- a/test/storj/1.0.5/questions.yaml +++ /dev/null @@ -1,273 +0,0 @@ -groups: - - name: "Configuration" - description: "Storj application configuration" - - name: "Storage" - description: "Configure storage for storj" - - name: "Networking" - description: "Networking Configuration for storj" - - name: "Advanced DNS Settings" - description: "Configure DNS settings" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - -portals: - web_portal: - protocols: - - "http" - host: - - "$node_ip" - ports: - - "$variable-webPort" - path: "/" - -questions: - - variable: webPort - label: "Web Port for Storj" - group: Networking - schema: - type: int - min: 9000 - max: 65535 - default: 20909 - required: true - - variable: nodePort - label: "Node Port for Storj" - group: Networking - schema: - type: int - min: 9000 - max: 65535 - default: 20988 - required: true - - - variable: dnsConfig - label: "DNS Configuration" - group: "Advanced DNS Settings" - schema: - type: dict - attrs: - - variable: options - label: "DNS Options" - schema: - type: list - items: - - variable: optionsEntry - label: "Option Entry Configuration" - schema: - type: dict - attrs: - - variable: name - label: "Option Name" - schema: - type: string - required: true - - variable: value - label: "Option Value" - schema: - type: string - required: true - - - variable: wallet - label: "Configure Wallet for Storj" - group: "Configuration" - schema: - type: string - required: true - - - variable: authToken - label: "Configure Auth token for Storj Node" - group: "Configuration" - schema: - type: string - required: true - - - variable: email - label: "Configure Email for Storj" - group: "Configuration" - schema: - type: string - required: true - - - variable: domainAddress - label: "Add Your Storage Domain for Storj" - group: "Configuration" - schema: - type: string - required: true - - - variable: storageSize - label: "Configure Storage Size You Want To Share in GB's" - group: Storage - schema: - type: int - min: 500 - default: 500 - - - variable: runAsUser - label: "Owner User ID" - group: "Configuration" - schema: - immutable: true - type: int - default: 568 - min: 1 - max: 65535 - - - variable: runAsGroup - label: "Owner Group ID" - group: "Configuration" - schema: - immutable: true - type: int - default: 568 - min: 1 - max: 65535 - - - - variable: environmentVariables - label: "Storj Extra Environment Variables" - group: "Configuration" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: appVolumeMounts - label: "Storj Configuration" - group: "Storage" - schema: - type: dict - attrs: - - variable: data - label: "Configuration Data Volume to Share on Storj" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix_data" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path Where the Volume Will be Mounted Inside the Pod" - schema: - type: path - hidden: true - editable: false - default: "/app/config" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Storj Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Storj Configuration Volume" - schema: - type: hostpath - required: true - - variable: identity - label: "Configure Identity Volume for Storage Node" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configure Storj Identity Volume to Allocate" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix_identity" - editable: false - - variable: mountPath - label: "Configure Storj Identity Volume to Allocate" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: false - default: "/app/identity" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Storj Identity Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Storj identity Volume" - schema: - type: hostpath - required: true - - - variable: extraAppVolumeMounts - label: "Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Host Path Volume" - description: "Add an extra host path volume for storj" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod." - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limresource limitsit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/test/storj/1.0.5/templates/_helpers.tpl b/test/storj/1.0.5/templates/_helpers.tpl deleted file mode 100644 index e0d5ef1a59..0000000000 --- a/test/storj/1.0.5/templates/_helpers.tpl +++ /dev/null @@ -1,6 +0,0 @@ -{{/* -Retrieve cert path -*/}} -{{- define "certPath" -}} -{{ printf }} -{{- end -}} diff --git a/test/storj/1.0.5/templates/deployment.yaml b/test/storj/1.0.5/templates/deployment.yaml deleted file mode 100644 index 51c782b4f2..0000000000 --- a/test/storj/1.0.5/templates/deployment.yaml +++ /dev/null @@ -1,97 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - chart: {{ template "common.names.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} - annotations: - rollme: {{ randAlphaNum 5 | quote }} -spec: - replicas: {{ (default 1 .Values.replicas) }} - strategy: - type: "Recreate" - selector: - matchLabels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - {{- include "common.labels.selectorLabels" . | nindent 8 }} - annotations: {{ include "common.annotations" . | nindent 8 }} - spec: - initContainers: - - name: generate-identity - image: "alpine/curl:latest" - securityContext: - runAsUser: 0 - runAsGroup: 0 - command: - - ./init_script/init_config.sh - env: - {{ $envListIdentity := (default list) }} - {{ $envListIdentity = mustAppend $envListIdentity (dict "name" "DEFAULT_CERT_PATH" "value" (printf "%s/ca.cert" .Values.identityCreationMountPath)) }} - {{ $envListIdentity = mustAppend $envListIdentity (dict "name" "DEFAULT_IDENTITY_CERT_PATH" "value" (printf "%s/identity.cert" .Values.identityCreationMountPath)) }} - {{ $envListIdentity = mustAppend $envListIdentity (dict "name" "AUTH_KEY" "valueFromSecret" true "secretName" "storj-credentials" "secretKey" "authToken") }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envListIdentity) | nindent 12 }} - volumeMounts: - - name: initial-scripts - mountPath: /init_script/ - - name: identity - mountPath: {{ .Values.identityCreationMountPath }} - - name: setup - {{ include "common.containers.imageConfig" .Values.image | nindent 8 }} - command: - - /bin/sh - - -c - - 'test ! -f {{ .Values.appVolumeMounts.data.mountPath }}/config.yaml && export SETUP="true"; /entrypoint;' - {{ include "common.storage.allContainerVolumeMounts" .Values | nindent 8 }} - securityContext: - runAsUser: {{ .Values.runAsUser }} - runAsGroup: {{ .Values.runAsGroup }} - containers: - - name: {{ .Chart.Name }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - {{ include "common.resources.limitation" . | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - securityContext: - runAsUser: {{ .Values.runAsUser }} - runAsGroup: {{ .Values.runAsGroup }} - ports: - - name: web - containerPort: 14002 - - name: tcp - containerPort: 28967 - protocol: TCP - - name: udp - containerPort: 28967 - protocol: UDP - env: - {{ $envList := (default list .Values.environmentVariables) }} - {{ $envList = mustAppend $envList (dict "name" "WALLET" "valueFromSecret" true "secretName" "storj-credentials" "secretKey" "wallet") }} - {{ $envList = mustAppend $envList (dict "name" "ADDRESS" "value" (printf "%s:%d" (.Values.domainAddress) (.Values.nodePort | int))) }} - {{ $envList = mustAppend $envList (dict "name" "EMAIL" "value" (printf "%s" (.Values.email))) }} - {{ $envList = mustAppend $envList (dict "name" "STORAGE" "value" (printf "%dGB" (.Values.storageSize | int))) }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} -{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} - - name: initial-scripts - configMap: - defaultMode: 0755 - name: "initial-scripts" diff --git a/test/storj/1.0.5/templates/initial_scripts.yaml b/test/storj/1.0.5/templates/initial_scripts.yaml deleted file mode 100644 index 3c13ae5e25..0000000000 --- a/test/storj/1.0.5/templates/initial_scripts.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: "initial-scripts" - annotations: - rollme: {{ randAlphaNum 5 | quote }} - -data: - init_config.sh: |- - #!/bin/sh - if ! [ -f ${DEFAULT_CERT_PATH} ] && ! [ -f ${DEFAULT_IDENTITY_CERT_PATH} ]; then - curl -L https://github.com/storj/storj/releases/latest/download/identity_linux_amd64.zip -o identity_linux_amd64.zip - unzip -o identity_linux_amd64.zip - chmod +x identity - ./identity create storagenode - ./identity authorize storagenode ${AUTH_KEY} - chown -R {{ .Values.runAsUser }}:{{ .Values.runAsGroup }} {{ .Values.identityCreationMountPath }} - fi diff --git a/test/storj/1.0.5/templates/pre-install-job.yaml b/test/storj/1.0.5/templates/pre-install-job.yaml deleted file mode 100644 index 7a51d08121..0000000000 --- a/test/storj/1.0.5/templates/pre-install-job.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-job" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - helm.sh/chart: {{ template "common.names.chart" . }} - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-delete-policy": hook-succeeded -spec: - template: - metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-hook" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - helm.sh/chart: {{ template "common.names.chart" . }} - spec: - restartPolicy: Never - containers: - - name: pre-install-job - image: "alpine:latest" - command: ["chown", "-R", "{{ .Values.runAsUser }}:{{ .Values.runAsGroup }}", "{{ .Values.appVolumeMounts.data.mountPath }}", "{{ .Values.appVolumeMounts.identity.mountPath }}"] - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} diff --git a/test/storj/1.0.5/templates/service.yaml b/test/storj/1.0.5/templates/service.yaml deleted file mode 100644 index 085c55f344..0000000000 --- a/test/storj/1.0.5/templates/service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -{{ $selectors := list }} -{{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }} -{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "web" "port" .Values.webPort "nodePort" .Values.webPort "targetPort" 14002) }} -{{ $ports = mustAppend $ports (dict "name" "tcp" "port" .Values.nodePort "nodePort" .Values.nodePort "targetPort" 28967) }} -{{ $ports = mustAppend $ports (dict "name" "udp" "port" .Values.nodePort "nodePort" .Values.nodePort "targetPort" 28967 "protocol" "UDP") }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{ $_1 := set .Values "extraSelectorLabels" $selectors }} -{{ include "common.classes.service" $params }} diff --git a/test/storj/1.0.5/templates/storj-secrets.yaml b/test/storj/1.0.5/templates/storj-secrets.yaml deleted file mode 100644 index f72579549f..0000000000 --- a/test/storj/1.0.5/templates/storj-secrets.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: storj-credentials - labels: {{ include "common.labels" . | nindent 4 }} -type: Opaque -data: - authToken: {{ .Values.authToken | b64enc | quote }} - wallet: {{ .Values.wallet | b64enc | quote }} diff --git a/test/storj/1.0.5/test_values.yaml b/test/storj/1.0.5/test_values.yaml deleted file mode 100644 index e3d43a9351..0000000000 --- a/test/storj/1.0.5/test_values.yaml +++ /dev/null @@ -1,26 +0,0 @@ -appVolumeMounts: - data: - emptyDir: true - mountPath: /app/config - identity: - emptyDir: true - mountPath: /app/identity -authToken: user:sasjkadkjhakdlaskdlkajsd -dnsConfig: - options: [] -domainAddress: localhost -email: user@example.com -emptyDirVolumes: true -environmentVariables: [] -extraAppVolumeMounts: [] -identityCreationMountPath: /root/.local/share/storj/identity/storagenode -image: - pullPolicy: IfNotPresent - repository: storjlabs/storagenode - tag: 1d42f9ac3-v1.68.2-go1.18.8 -nodePort: 30002 -runAsGroup: 568 -runAsUser: 568 -storageSize: 500 -wallet: 0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -webPort: 30000 diff --git a/test/storj/item.yaml b/test/storj/item.yaml deleted file mode 100644 index 72ada64e1b..0000000000 --- a/test/storj/item.yaml +++ /dev/null @@ -1,6 +0,0 @@ -icon_url: https://assets-global.website-files.com/602eda09fc78afc76e9706b6/60917835a05862243e7de9af_logo.svg -categories: -- storage -- dapps -- networking -- financial diff --git a/test/storj/upgrade_info.json b/test/storj/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/test/storj/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/test/storj/upgrade_strategy_disable b/test/storj/upgrade_strategy_disable deleted file mode 100755 index 3b5142fed1..0000000000 --- a/test/storj/upgrade_strategy_disable +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/python3 -import json -import sys -import re - -from catalog_update.upgrade_strategy import semantic_versioning -from catalog_validation.exceptions import ValidationException - -version_regx = r'[\w]*-v[0-9]+.[0-9]+.[0-9]+-go[0-9]+.[0-9].+[0-9]+' -version_with_arch = version_regx + r'[-\w]*' -sub_go_version = r'-go[0-9]+.[0-9].+[0-9]+[-\w]*' -version_hash = r'[\w]*-v' -app_version_regx = 'v[0-9]+.[0-9]+.[0-9]' - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - tags = {} - for tag in image_tags[key]: - match = re.fullmatch(version_with_arch, tag) - if match: - removed_go_arch_version = re.sub(sub_go_version, '', tag) - app_version = re.sub(version_hash, '', removed_go_arch_version) - if tags.get(app_version): - tags.get(app_version).append(tag) - else: - tags[app_version] = [tag] - version = semantic_versioning(list(tags)) - if not version: - return {} - - version_tag = tags[version][0] - for tag in tags.get(version): - archi = re.sub(version_regx, '', tag) - if archi == 'amd64' or archi == '': - version_tag = tag - break - app_version = re.findall(app_version_regx, version_tag).pop() - return { - 'tags': {key: f'{version_tag}'}, - 'app_version': f'{app_version}', - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValidationException('Invalid JSON') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/syncthing/.helmignore b/test/syncthing/.helmignore deleted file mode 100644 index c1347c2c27..0000000000 --- a/test/syncthing/.helmignore +++ /dev/null @@ -1,2 +0,0 @@ -# Patterns to ignore when building packages. -*.png diff --git a/test/syncthing/1.0.18/Chart.lock b/test/syncthing/1.0.18/Chart.lock deleted file mode 100644 index 34f351403c..0000000000 --- a/test/syncthing/1.0.18/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:48.009872898+05:00" diff --git a/test/syncthing/1.0.18/Chart.yaml b/test/syncthing/1.0.18/Chart.yaml deleted file mode 100644 index abfcac1d3f..0000000000 --- a/test/syncthing/1.0.18/Chart.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v2 -appVersion: 1.23.2 -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: Syncthing is a continuous file synchronization program. -home: https://syncthing.net/ -icon: https://play-lh.googleusercontent.com/KIy_dqUdZqcsTq4GDstHrHwLRvu60gT3v0p41gw792BC6OxamNhUw2eIy0-LI05qNEA=w240-h480 -keywords: -- storage -- backup -name: syncthing -version: 1.0.18 diff --git a/test/syncthing/1.0.18/README.md b/test/syncthing/1.0.18/README.md deleted file mode 100644 index ea0896841d..0000000000 --- a/test/syncthing/1.0.18/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# Syncthing - -[syncthing](https://syncthing.net/) is a continuous file synchronization program. It synchronizes files between two or -more computers in real time, safely protected from prying eyes. Your data is your data alone and you deserve to choose -where it is stored, whether it is shared with some third party, and how it's transmitted over the internet. diff --git a/test/syncthing/1.0.18/app-readme.md b/test/syncthing/1.0.18/app-readme.md deleted file mode 100644 index 9f0f625bcf..0000000000 --- a/test/syncthing/1.0.18/app-readme.md +++ /dev/null @@ -1,6 +0,0 @@ -# Syncthing - -[syncthing](https://syncthing.net/) is a continuous file synchronization program. It synchronizes files between two or -more computers in real time, safely protected from prying eyes. - -> **WARNING** Do check out https://docs.syncthing.net/users/faq.html#what-things-are-synced to see what is synced. diff --git a/test/syncthing/1.0.18/charts/common-2207.0.0.tgz b/test/syncthing/1.0.18/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b438..0000000000 Binary files a/test/syncthing/1.0.18/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/syncthing/1.0.18/ix_values.yaml b/test/syncthing/1.0.18/ix_values.yaml deleted file mode 100644 index 745a2fc659..0000000000 --- a/test/syncthing/1.0.18/ix_values.yaml +++ /dev/null @@ -1,4 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: syncthing/syncthing - tag: 1.23.2 diff --git a/test/syncthing/1.0.18/questions.yaml b/test/syncthing/1.0.18/questions.yaml deleted file mode 100644 index bb5ee3d82e..0000000000 --- a/test/syncthing/1.0.18/questions.yaml +++ /dev/null @@ -1,218 +0,0 @@ -groups: - - name: "Configuration" - description: "Syncthing application configuration" - - name: "Storage" - description: "Configure storage for syncthing" - - name: "Networking" - description: "Networking Configuration for syncthing" - - name: "Advanced DNS Settings" - description: "Configure DNS settings" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - -portals: - web_portal: - protocols: - - "http" - host: - - "$node_ip" - ports: - - "$variable-web_port" - path: "/" - -questions: - - variable: web_port - label: "Web Port for syncthing" - group: Networking - schema: - type: int - min: 8000 - max: 65535 - default: 20910 - required: true - - variable: tcp_port - label: "TCP Port for syncthing" - group: Networking - schema: - type: int - min: 8000 - max: 65535 - default: 20978 - required: true - - variable: udp_port - label: "UDP Port for syncthing" - group: Networking - schema: - type: int - min: 8000 - max: 65535 - default: 20979 - required: true - - variable: hostNetwork - label: "Host Network" - group: Networking - schema: - type: boolean - default: false - - - variable: dnsConfig - label: "DNS Configuration" - group: "Advanced DNS Settings" - schema: - type: dict - attrs: - - variable: options - label: "DNS Options" - schema: - type: list - items: - - variable: optionsEntry - label: "Option Entry Configuration" - schema: - type: dict - attrs: - - variable: name - label: "Option Name" - schema: - type: string - required: true - - variable: value - label: "Option Value" - schema: - type: string - required: true - - - variable: ownerUID - label: "Owner User ID" - group: Configuration - schema: - type: int - default: 568 - min: 1 - max: 65535 - - - variable: ownerGID - label: "Owner Group ID" - group: Configuration - schema: - type: int - default: 568 - min: 1 - max: 65535 - - - variable: environmentVariables - label: "Syncthing environment" - group: "Configuration" - schema: - type: list - default: [ ] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: appVolumeMounts - label: "Syncthing Storage" - group: "Storage" - schema: - type: dict - attrs: - - variable: config - label: "Configuration Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Configuration Volume Dataset Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-syncthing_config" - editable: false - - variable: mountPath - label: "Configuration Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - hidden: true - editable: true - default: "/var/syncthing" - - variable: hostPathEnabled - label: "Enable Custom Host Path for Syncthing Configuration Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Syncthing Configuration Volume" - schema: - type: hostpath - required: true - $ref: - - "validations/lockedHostPath" - - variable: extraAppVolumeMounts - label: "Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Host Path Volume" - description: "Add an extra host path volume for Syncthing application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - $ref: - - "validations/lockedHostPath" - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limresource limitsit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" - diff --git a/test/syncthing/1.0.18/templates/deployment.yaml b/test/syncthing/1.0.18/templates/deployment.yaml deleted file mode 100644 index 6161992205..0000000000 --- a/test/syncthing/1.0.18/templates/deployment.yaml +++ /dev/null @@ -1,62 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - chart: {{ template "common.names.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} - annotations: - rollme: {{ randAlphaNum 5 | quote }} -spec: - replicas: {{ (default 1 .Values.replicas) }} - strategy: - type: "Recreate" - selector: - matchLabels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - {{- include "common.labels.selectorLabels" . | nindent 8 }} - annotations: {{ include "common.annotations" . | nindent 8 }} - spec: - hostNetwork: {{ .Values.hostNetwork }} - hostname: {{ .Release.Name }} - containers: - - name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 10 }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - ports: - - name: web - containerPort: 8384 - - name: tcp - containerPort: 22000 - protocol: TCP - - name: udp - containerPort: 22000 - protocol: UDP - env: - {{ $envList := (default list .Values.environmentVariables) }} - {{ $envList = mustAppend $envList (dict "name" "PUID" "value" (printf "%d" (.Values.ownerUID | int))) }} - {{ $envList = mustAppend $envList (dict "name" "PGID" "value" (printf "%d" (.Values.ownerGID | int))) }} - {{ $envList = mustAppend $envList (dict "name" "STGUIADDRESS" "value" "0.0.0.0:8384") }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} -{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} diff --git a/test/syncthing/1.0.18/templates/pre-install-job.yaml b/test/syncthing/1.0.18/templates/pre-install-job.yaml deleted file mode 100644 index 33c4cfb113..0000000000 --- a/test/syncthing/1.0.18/templates/pre-install-job.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-job" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - helm.sh/chart: {{ template "common.names.chart" . }} - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-delete-policy": hook-succeeded -spec: - template: - metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-hook" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - helm.sh/chart: {{ template "common.names.chart" . }} - spec: - restartPolicy: Never - containers: - - name: pre-install-job - image: "alpine:latest" - command: - - "chown" - - "-R" - - "{{ .Values.ownerUID }}:{{ .Values.ownerGID }}" - - "{{ .Values.appVolumeMounts.config.mountPath }}" - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} diff --git a/test/syncthing/1.0.18/templates/service.yaml b/test/syncthing/1.0.18/templates/service.yaml deleted file mode 100644 index a35d1ffe18..0000000000 --- a/test/syncthing/1.0.18/templates/service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -{{ $selectors := list }} -{{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }} -{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "web" "port" .Values.web_port "nodePort" .Values.web_port "targetPort" 8384) }} -{{ $ports = mustAppend $ports (dict "name" "tcp" "port" .Values.tcp_port "nodePort" .Values.tcp_port "targetPort" 22000) }} -{{ $ports = mustAppend $ports (dict "name" "udp" "port" .Values.udp_port "nodePort" .Values.udp_port "targetPort" 22000 "protocol" "UDP") }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{ $_1 := set .Values "extraSelectorLabels" $selectors }} -{{ include "common.classes.service" $params }} diff --git a/test/syncthing/1.0.18/templates/tests/deployment-check.yaml b/test/syncthing/1.0.18/templates/tests/deployment-check.yaml deleted file mode 100644 index 64ebf08fa3..0000000000 --- a/test/syncthing/1.0.18/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: {{ .Release.Name }}-syncthing - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}:{{.Values.web_port}}/ - restartPolicy: Never diff --git a/test/syncthing/1.0.18/test_values.yaml b/test/syncthing/1.0.18/test_values.yaml deleted file mode 100644 index 65fa05bc2b..0000000000 --- a/test/syncthing/1.0.18/test_values.yaml +++ /dev/null @@ -1,20 +0,0 @@ -appVolumeMounts: - config: - emptyDir: true - mountPath: /config -dnsConfig: - options: [] -emptyDirVolumes: true -environmentVariables: [] -extraAppVolumeMounts: [] -hostNetwork: false -image: - pullPolicy: IfNotPresent - repository: syncthing/syncthing - tag: 1.23.2 -ownerGID: 568 -ownerUID: 568 -tcp_port: 32001 -timezone: Europe/London -udp_port: 32002 -web_port: 32000 diff --git a/test/syncthing/item.yaml b/test/syncthing/item.yaml deleted file mode 100644 index 9ccc95b11c..0000000000 --- a/test/syncthing/item.yaml +++ /dev/null @@ -1,4 +0,0 @@ -icon_url: https://play-lh.googleusercontent.com/KIy_dqUdZqcsTq4GDstHrHwLRvu60gT3v0p41gw792BC6OxamNhUw2eIy0-LI05qNEA=w240-h480 -categories: -- backup -- storage diff --git a/test/syncthing/upgrade_info.json b/test/syncthing/upgrade_info.json deleted file mode 100644 index f22ddd1aee..0000000000 --- a/test/syncthing/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"} diff --git a/test/syncthing/upgrade_strategy b/test/syncthing/upgrade_strategy deleted file mode 100755 index 39bb56546a..0000000000 --- a/test/syncthing/upgrade_strategy +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/python3 -import json -import sys - -from catalog_update.upgrade_strategy import semantic_versioning - - -def newer_mapping(image_tags): - key = list(image_tags.keys())[0] - tags = {t: t for t in image_tags[key]} - version = semantic_versioning(list(tags)) - if not version: - return {} - - return { - 'tags': {key: tags[version]}, - 'app_version': version, - } - - -if __name__ == '__main__': - try: - versions_json = json.loads(sys.stdin.read()) - except ValueError: - raise ValueError('Invalid json specified') - - print(json.dumps(newer_mapping(versions_json))) diff --git a/test/wg-easy/.helmignore b/test/wg-easy/.helmignore deleted file mode 100644 index c1347c2c27..0000000000 --- a/test/wg-easy/.helmignore +++ /dev/null @@ -1,2 +0,0 @@ -# Patterns to ignore when building packages. -*.png diff --git a/test/wg-easy/1.0.0/Chart.lock b/test/wg-easy/1.0.0/Chart.lock deleted file mode 100644 index 332bddc6b2..0000000000 --- a/test/wg-easy/1.0.0/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-11-07T14:53:51.774827549+02:00" diff --git a/test/wg-easy/1.0.0/Chart.yaml b/test/wg-easy/1.0.0/Chart.yaml deleted file mode 100644 index be5e891ca8..0000000000 --- a/test/wg-easy/1.0.0/Chart.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v2 -appVersion: "7" -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: WG-Easy is the easiest way to install & manage WireGuard! -home: https://github.com/WeeJeWel/wg-easy -icon: https://raw.githubusercontent.com/WeeJeWel/wg-easy/master/src/www/img/logo.png -keywords: -- wireguard -- network -- vpn -name: wg-easy -version: 1.0.0 diff --git a/test/wg-easy/1.0.0/README.md b/test/wg-easy/1.0.0/README.md deleted file mode 100644 index 8c6f958538..0000000000 --- a/test/wg-easy/1.0.0/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# WG-Easy - -[WG-Easy (WireGuard Easy)](https://github.com/WeeJeWel/wg-easy) is the easiest way to install & manage WireGuard! diff --git a/test/wg-easy/1.0.0/app-readme.md b/test/wg-easy/1.0.0/app-readme.md deleted file mode 100644 index 8c6f958538..0000000000 --- a/test/wg-easy/1.0.0/app-readme.md +++ /dev/null @@ -1,3 +0,0 @@ -# WG-Easy - -[WG-Easy (WireGuard Easy)](https://github.com/WeeJeWel/wg-easy) is the easiest way to install & manage WireGuard! diff --git a/test/wg-easy/1.0.0/charts/common-2207.0.0.tgz b/test/wg-easy/1.0.0/charts/common-2207.0.0.tgz deleted file mode 100644 index 0bc0da8452..0000000000 Binary files a/test/wg-easy/1.0.0/charts/common-2207.0.0.tgz and /dev/null differ diff --git a/test/wg-easy/1.0.0/ix_values.yaml b/test/wg-easy/1.0.0/ix_values.yaml deleted file mode 100644 index 9fa0a8f646..0000000000 --- a/test/wg-easy/1.0.0/ix_values.yaml +++ /dev/null @@ -1,4 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: weejewel/wg-easy - tag: "7" diff --git a/test/wg-easy/1.0.0/questions.yaml b/test/wg-easy/1.0.0/questions.yaml deleted file mode 100644 index c0673bfddb..0000000000 --- a/test/wg-easy/1.0.0/questions.yaml +++ /dev/null @@ -1,260 +0,0 @@ -groups: - - name: Configuration - description: WG-Easy application configuration - - name: Storage - description: Configure storage for WG-Easy - - name: Networking - description: Networking Configuration for WG-Easy - - name: Advanced DNS Settings - description: Configure DNS settings - - name: Resource Limits - description: Set CPU/memory limits for Kubernetes Pod - -portals: - web_portal: - protocols: - - http - host: - - $node_ip - ports: - - $variable-webUIPort - path: / - -questions: - - variable: wgUDPPort - label: WireGuard UPD Node Port for WG-Easy - group: Networking - schema: - type: int - min: 9000 - max: 65535 - default: 20920 - required: true - - variable: webUIPort - label: WebUI Node Port for WG-Easy - group: Networking - schema: - type: int - min: 9000 - max: 65535 - default: 20921 - required: true - - variable: hostNetwork - label: Host Network - group: Networking - schema: - type: boolean - default: true - - - variable: dnsConfig - label: DNS Configuration - group: Advanced DNS Settings - schema: - type: dict - attrs: - - variable: options - label: DNS Options - schema: - type: list - items: - - variable: optionsEntry - label: Option Entry Configuration - schema: - type: dict - attrs: - - variable: name - label: Option Name - schema: - type: string - required: true - - variable: value - label: Option Value - schema: - type: string - required: true - - - variable: wgeasy - label: WG-Easy Configuration - group: Configuration - schema: - type: dict - additional_attrs: true - attrs: - - variable: host - label: Hostname or IP - description: The public hostname or IP of your VPN server. - schema: - type: string - required: true - $ref: - - "definitions/nodeIP" - - variable: password - label: Password for WebUI - description: When set, requires a password when logging in to the Web UI. - schema: - type: string - private: true - default: "" - - variable: keep_alive - label: Persistent Keep Alive - description: Value in seconds to keep the "connection" open. If this value is 0, then connections won't be kept alive. - schema: - type: int - required: true - default: 0 - - variable: client_mtu - label: Clients MTU - description: The MTU the clients will use. - schema: - type: int - required: true - default: 1420 - - variable: client_address_range - label: Clients IP Address Range - description: Clients IP address range. - schema: - type: string - required: true - default: 10.8.0.x - - variable: client_dns_server - label: Clients DNS Server - description: Clients DNS Server. - schema: - type: string - required: true - default: "1.1.1.1" - - variable: allowed_ips - label: Allowed IPs - description: Allowed IPs clients will use. If none provided, <0.0.0.0/0,::/0> will be used. - schema: - type: list - default: [] - items: - - variable: entry - label: Allowed IP Entry - schema: - type: string - required: true - default: "" - - - variable: environmentVariables - label: WG-Easy Environment - group: Configuration - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: Environment Variable - schema: - type: dict - attrs: - - variable: name - label: Name - schema: - type: string - required: true - default: "" - - variable: value - label: Value - schema: - type: string - default: "" - required: true - - - variable: appVolumeMounts - label: WG-Easy Storage - group: Storage - schema: - type: dict - attrs: - - variable: config - label: Configuration Volume - schema: - type: dict - attrs: - - variable: datasetName - label: Configuration Volume Dataset Name - schema: - type: string - hidden: true - $ref: - - normalize/ixVolume - show_if: [["hostPathEnabled", "=", false]] - default: ix-wg-easy_config - editable: false - - variable: mountPath - label: Configuration Mount Path - description: Path where the volume will be mounted inside the pod - schema: - type: path - hidden: true - editable: true - default: /etc/wireguard - - variable: hostPathEnabled - label: Enable Custom Host Path for WG-Easy Configuration Volume - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: Host Path for WG-Easy Configuration Volume - schema: - type: hostpath - required: true - immutable: true - $ref: - - validations/lockedHostPath - - - variable: extraAppVolumeMounts - label: Extra Host Path Volumes - group: Storage - schema: - type: list - items: - - variable: extraAppVolume - label: Host Path Volume - description: Add an extra host path volume for WG-Easy application - schema: - type: dict - attrs: - - variable: mountPath - label: Mount Path in Pod - description: Path where the volume will be mounted inside the pod - schema: - type: path - required: true - - variable: hostPath - label: Host Path - description: Host path - schema: - type: hostpath - required: true - $ref: - - validations/lockedHostPath - - - variable: enableResourceLimits - label: Enable Pod resource limits - group: Resource Limits - schema: - type: boolean - default: false - - variable: cpuLimit - label: CPU Limit resource limits - description: CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100. - group: Resource Limits - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: 4000m - - variable: memLimit - label: Memory Limit - group: Resource Limits - description: Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: 8Gi diff --git a/test/wg-easy/1.0.0/templates/deployment.yaml b/test/wg-easy/1.0.0/templates/deployment.yaml deleted file mode 100644 index c264d270e3..0000000000 --- a/test/wg-easy/1.0.0/templates/deployment.yaml +++ /dev/null @@ -1,122 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - chart: {{ template "common.names.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} - annotations: - rollme: {{ randAlphaNum 5 | quote }} -spec: - replicas: {{ (default 1 .Values.replicas) }} - strategy: - type: "Recreate" - selector: - matchLabels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: - {{- include "common.labels.selectorLabels" . | nindent 8 }} - annotations: {{ include "common.annotations" . | nindent 8 }} - spec: - hostNetwork: {{ .Values.hostNetwork }} - hostname: {{ .Release.Name }} - containers: - - name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 10 }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - securityContext: - capabilities: - add: - - NET_ADMIN - - SYS_MODULE - {{/* https://github.com/WeeJeWel/wg-easy/pull/394 */}} - runAsUser: 0 - runAsGroup: 0 - readOnlyRootFilesystem: false - runAsNonRoot: false - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - ports: - - name: udp - containerPort: {{ .Values.wgUDPPort }} - protocol: UDP - - name: web - containerPort: {{ .Values.webUIPort }} - env: - {{ $wgeasy := .Values.wgeasy }} - {{ $envList := (default list .Values.environmentVariables) }} - {{ $envList = mustAppend $envList (dict "name" "WG_HOST" "value" $wgeasy.host) }} - {{ $envList = mustAppend $envList (dict "name" "PASSWORD" "value" $wgeasy.password) }} - {{ $envList = mustAppend $envList (dict "name" "WG_PORT" "value" .Values.wgUDPPort) }} - {{ $envList = mustAppend $envList (dict "name" "PORT" "value" .Values.webUIPort) }} - {{ $envList = mustAppend $envList (dict "name" "WG_PERSISTENT_KEEPALIVE" "value" $wgeasy.keep_alive) }} - {{ $envList = mustAppend $envList (dict "name" "WG_MTU" "value" $wgeasy.client_mtu) }} - {{ $envList = mustAppend $envList (dict "name" "WG_DEFAULT_ADDRESS" "value" $wgeasy.client_address_range) }} - {{ $envList = mustAppend $envList (dict "name" "WG_DEFAULT_DNS" "value" $wgeasy.client_dns_server) }} - {{ if $wgeasy.allowed_ips }} - {{ $envList = mustAppend $envList (dict "name" "WG_ALLOWED_IPS" "value" (join "," $wgeasy.allowed_ips)) }} - {{ else }} - {{ $envList = mustAppend $envList (dict "name" "WG_ALLOWED_IPS" "value" ("0.0.0.0/0,::/0")) }} - {{ end }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} - readinessProbe: - httpGet: - path: / - port: {{ .Values.webUIPort }} - failureThreshold: 5 - periodSeconds: 15 - livenessProbe: - httpGet: - path: / - port: {{ .Values.webUIPort }} - failureThreshold: 5 - periodSeconds: 15 - startupProbe: - httpGet: - path: / - port: {{ .Values.webUIPort }} - initialDelaySeconds: 5 - failureThreshold: 40 - periodSeconds: 15 - {{ $ip := .Values.wgeasy.client_address_range | replace "x" "0" }} - lifecycle: - preStop: - exec: - command: - - /bin/bash - - -c - - | - echo "Deleting routes created by the app..." - netmask=$(ip route | grep {{ $ip }}) - netmask=$(echo $netmask | grep -o -E '/.\d*') - netmask=${netmask#/} - echo "Matched routes to delete... {{ $ip }}/$netmask" - # Don't try to delete routes if steps above didn't grep-ed anything - if [ ! "$netmask" == "" ]; then - ip route del {{ $ip }}/$netmask || echo "Route deletion failed..." - fi - echo "Routes deleted..." - interface=$(ip a | grep wg0) - if [ ! "$interface" == "" ]; then - echo "Removing wg0 interface..." - ip link delete wg0 - echo "Removed wg0 interface..." - fi - -{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} diff --git a/test/wg-easy/1.0.0/templates/service.yaml b/test/wg-easy/1.0.0/templates/service.yaml deleted file mode 100644 index 42d960b193..0000000000 --- a/test/wg-easy/1.0.0/templates/service.yaml +++ /dev/null @@ -1,19 +0,0 @@ -{{ $selectors := list }} -{{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }} -{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} -{{ $ports := list }} -{{- if not .Values.hostNetwork }} -{{ $ports = mustAppend $ports (dict "name" "web" "port" .Values.webUIPort "nodePort" .Values.webUIPort "targetPort" .Values.webUIPort) }} -{{ $ports = mustAppend $ports (dict "name" "udp" "port" .Values.wgUDPPort "nodePort" .Values.wgUDPPort "targetPort" .Values.wgUDPPort "protocol" "UDP") }} -{{- else }} -{{ $ports = mustAppend $ports (dict "name" "web" "port" .Values.webUIPort "targetPort" .Values.webUIPort) }} -{{ $ports = mustAppend $ports (dict "name" "udp" "port" .Values.wgUDPPort "targetPort" .Values.wgUDPPort "protocol" "UDP") }} -{{- end }} -{{ $params := . }} -{{- if not .Values.hostNetwork }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{- else }} -{{ $_ := set $params "commonService" (dict "type" "ClusterIP" "ports" $ports ) }} -{{- end }} -{{ $_1 := set .Values "extraSelectorLabels" $selectors }} -{{ include "common.classes.service" $params }} diff --git a/test/wg-easy/1.0.0/test_values.yaml b/test/wg-easy/1.0.0/test_values.yaml deleted file mode 100644 index 9868d3d3b5..0000000000 --- a/test/wg-easy/1.0.0/test_values.yaml +++ /dev/null @@ -1,26 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: weejewel/wg-easy - tag: "7" -appVolumeMounts: - config: - emptyDir: true - mountPath: /etc/wireguard -dnsConfig: - options: [] -emptyDirVolumes: true -environmentVariables: [] -extraAppVolumeMounts: [] -hostNetwork: true -wgUDPPort: 30290 -webUIPort: 30921 -wgeasy: - host: wg.domain.com - password: secret - client_mtu: 1420 - keep_alive: 5 - client_address_range: 10.10.0.x - client_dns_server: "8.8.8.8" - allowed_ips: - - 10.10.10.0/24 - - 10.10.12.0/24 diff --git a/test/wg-easy/1.0.0/tests/deployment-check.yaml b/test/wg-easy/1.0.0/tests/deployment-check.yaml deleted file mode 100644 index 3a9557f96d..0000000000 --- a/test/wg-easy/1.0.0/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: {{ .Release.Name }}-wgeasy - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}:{{ .Values.webUIPort }}/ - restartPolicy: Never diff --git a/test/wg-easy/item.yaml b/test/wg-easy/item.yaml deleted file mode 100644 index d14a20abcc..0000000000 --- a/test/wg-easy/item.yaml +++ /dev/null @@ -1,5 +0,0 @@ -icon_url: https://raw.githubusercontent.com/WeeJeWel/wg-easy/master/src/www/img/logo.png -categories: -- wireguard -- network -- vpn diff --git a/test/wg-easy/upgrade_info.json b/test/wg-easy/upgrade_info.json deleted file mode 100644 index a6729a0979..0000000000 --- a/test/wg-easy/upgrade_info.json +++ /dev/null @@ -1 +0,0 @@ -{"filename": "ix_values.yaml", "keys": ["image"], "test_filename": "test_values.yaml"}