diff --git a/charts/shadowsocks-libev/Chart.lock b/charts/shadowsocks-libev/Chart.lock index 1422bb9..f7b4a44 100644 --- a/charts/shadowsocks-libev/Chart.lock +++ b/charts/shadowsocks-libev/Chart.lock @@ -1,6 +1,6 @@ dependencies: -- name: softplayer-lib-testing +- name: softplayer-lib-workload repository: oci://git.badhouseplants.net/softplayer - version: 0.1.0 -digest: sha256:7fe5a4899522fed731dd3b04d8397d23bb0cf920d7d56adf98911a268d0cbc7a -generated: "2024-05-05T18:56:25.892403+02:00" + version: 0.1.2 +digest: sha256:309dcf8ff3e54beea96a5f3397b4b0c121089c579202681a02dc372d75b2bb74 +generated: "2024-05-19T22:30:05.772517+02:00" diff --git a/charts/shadowsocks-libev/Chart.yaml b/charts/shadowsocks-libev/Chart.yaml index 675accb..a58794a 100644 --- a/charts/shadowsocks-libev/Chart.yaml +++ b/charts/shadowsocks-libev/Chart.yaml @@ -1,17 +1,24 @@ +--- apiVersion: v2 name: shadowsocks-libev -description: A Helm chart for shadowsocks-libev +description: Bug-fix-only libev port of shadowsocks type: application -version: 0.1.1 -appVersion: "v3.3.5" +version: 0.2.1 maintainers: - name: allanger email: allanger@badhouseplants.net url: https://badhouseplants.net dependencies: - - name: softplayer-lib-testing - version: 0.1.0 + - name: softplayer-lib-workload + version: 0.1.2 repository: oci://git.badhouseplants.net/softplayer +sources: + - https://github.com/shadowsocks/shadowsocks-libev +home: https://github.com/shadowsocks/shadowsocks-libev +keywords: + - shadowsocks + - vpn + - proxy annotations: - helm.badhouseplants.net/registry: "docker.io/shadowsocks/shadowsocks-libev" - helm.badhouseplants.net/allowed_workload_kinds: "Deployment,StatefulSet" + allowed_workload_kinds: "Deployment,StatefulSet,DaemonSet" + \ No newline at end of file diff --git a/charts/shadowsocks-libev/README.md b/charts/shadowsocks-libev/README.md new file mode 100644 index 0000000..d0da72d --- /dev/null +++ b/charts/shadowsocks-libev/README.md @@ -0,0 +1,54 @@ +# shadowsocks-libev + +![Version: 0.2.1](https://img.shields.io/badge/Version-0.2.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v3.3.5](https://img.shields.io/badge/AppVersion-v3.3.5-informational?style=flat-square) + +Bug-fix-only libev port of shadowsocks + +## Source Code + +* + +## Maintainers + +| Name | Email | Url | +| ---- | ------ | --- | +| allanger | | | + +## Requirements + +| Repository | Name | Version | +|------------|------|---------| +| oci://git.badhouseplants.net/softplayer | softplayer-lib-workload | 0.1.0 | + +## Installing the Chart + +To install the chart with the release name `sql-exporter`: + +```console +helm repo add sql_exporter https://burningalchemist.github.io/sql_exporter/ +helm install sql_exporter/sql-exporter +``` + +## Chart Values + +### General parameters + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| workload.kind | string | `"Deployment"` | A kind of workload to run | +| workload.containers | object | `{"shadowsocks":{"envFrom":["environemnt","secrets"],"image":{"pullPolicy":"Always","registry":"docker.io","repository":"shadowsocks/shadowsocks-libev","tag":null},"ports":["shadowsocks"],"securityContext":{"capabilities":{"add":["NET_ADMIN"]}}}}` | A list of containers to run within the workload | +| workload.containers.shadowsocks | object | `{"envFrom":["environemnt","secrets"],"image":{"pullPolicy":"Always","registry":"docker.io","repository":"shadowsocks/shadowsocks-libev","tag":null},"ports":["shadowsocks"],"securityContext":{"capabilities":{"add":["NET_ADMIN"]}}}` | Shadowsocks container description | +| workload.containers.shadowsocks.securityContext | object | `{"capabilities":{"add":["NET_ADMIN"]}}` | Required to allow ipv4 forwarding | +| env.environment.sensitive | bool | `false` | | +| env.environment.data.METHOD | string | `"chacha20-ietf-poly1305"` | | +| env.secrets.sensitive | bool | `true` | | +| env.secrets.data.PASSWORD | string | `"test12345"` | Provide a password that will be used to connect to shadowsocks | +| service.type | string | `"ClusterIP"` | | +| service.ports.shadowsocks.port | int | `8388` | | +| service.ports.shadowsocks.targetPort | int | `8388` | | +| service.ports.shadowsocks.protocol | string | `"TCP"` | | + +## Dev Notes + +After changing default `Values`, please execute `make gen_docs` to update the `README.md` file. Readme file is generated by the `helm-docs` tool, so make sure not to edit it manually. + diff --git a/charts/shadowsocks-libev/charts/softplayer-lib-testing-0.1.0.tgz b/charts/shadowsocks-libev/charts/softplayer-lib-testing-0.1.0.tgz deleted file mode 100644 index bc1286f..0000000 Binary files a/charts/shadowsocks-libev/charts/softplayer-lib-testing-0.1.0.tgz and /dev/null differ diff --git a/charts/shadowsocks-libev/charts/softplayer-lib-workload-0.1.2.tgz b/charts/shadowsocks-libev/charts/softplayer-lib-workload-0.1.2.tgz new file mode 100644 index 0000000..48fceda Binary files /dev/null and b/charts/shadowsocks-libev/charts/softplayer-lib-workload-0.1.2.tgz differ diff --git a/charts/shadowsocks-libev/templates/install.yaml b/charts/shadowsocks-libev/templates/install.yaml index 56cd33b..d772530 100644 --- a/charts/shadowsocks-libev/templates/install.yaml +++ b/charts/shadowsocks-libev/templates/install.yaml @@ -1,3 +1,3 @@ {{ include "lib.workload" . }} {{ include "lib.service" . }} -{{ include "lib.env" . }} +{{ include "lib.config.env" . }} diff --git a/charts/shadowsocks-libev/values.yaml b/charts/shadowsocks-libev/values.yaml index fb546f9..97339dd 100644 --- a/charts/shadowsocks-libev/values.yaml +++ b/charts/shadowsocks-libev/values.yaml @@ -1,8 +1,17 @@ --- workload: + # -- A kind of workload to run kind: Deployment + # -- A list of containers to run within the workload containers: + # -- Shadowsocks container description shadowsocks: + image: + registry: docker.io + repository: shadowsocks/shadowsocks-libev + tag: v3.3.5 + pullPolicy: Always + # -- Required to allow ipv4 forwarding securityContext: capabilities: add: @@ -21,9 +30,7 @@ env: secrets: sensitive: true data: - # --------------------------------------------------------------- - # Please, do not forget to replace this PASSWORD - # --------------------------------------------------------------- + # -- Provide a password that will be used to connect to shadowsocks PASSWORD: test12345 service: @@ -33,3 +40,6 @@ service: port: 8388 targetPort: 8388 protocol: TCP + +global: {} +softplayer-lib-workload: {}