diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9f7dfd1 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 DO! DevOps + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/charts/updateDoc.sh b/charts/updateDoc.sh new file mode 100644 index 0000000..fe93a09 --- /dev/null +++ b/charts/updateDoc.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +docker run --rm -v "$(pwd)/vmware-rest-proxy:/helm-docs" -u $(id -u) jnorwood/helm-docs:latest diff --git a/charts/vmware-rest-proxy/Chart.yaml b/charts/vmware-rest-proxy/Chart.yaml index e0a4f80..66de621 100644 --- a/charts/vmware-rest-proxy/Chart.yaml +++ b/charts/vmware-rest-proxy/Chart.yaml @@ -15,7 +15,7 @@ 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: 0.1.0 +version: 0.1.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 diff --git a/charts/vmware-rest-proxy/LICENSE b/charts/vmware-rest-proxy/LICENSE new file mode 100644 index 0000000..9f7dfd1 --- /dev/null +++ b/charts/vmware-rest-proxy/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 DO! DevOps + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/charts/vmware-rest-proxy/README.md b/charts/vmware-rest-proxy/README.md new file mode 100644 index 0000000..ff68e2c --- /dev/null +++ b/charts/vmware-rest-proxy/README.md @@ -0,0 +1,59 @@ +# vmware-rest-proxy + +[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/vmware-rest-proxy)](https://artifacthub.io/packages/search?repo=vmware-rest-proxy) ![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.16.0](https://img.shields.io/badge/AppVersion-1.16.0-informational?style=flat-square) + +## Introduction + +This helm chart installs the [VMware REST Proxy](https://github.com/dodevops/vmware-rest-proxy) for easy access +to commonly used vSphere information. + +## Installation + +Use + + helm install vmware-rest-proy --repo https://dodevops.io/vmware-rest-proxy + +to install this chart. + +## Configuration + +Set config.baseUrl to the URL of your vCenter server. See other `config.`-parameters for more configuration. + +## Values + +| Key | Type | Default | Description | +|-----|------|---------|-------------| +| affinity | object | `{}` | | +| autoscaling.enabled | bool | `false` | | +| autoscaling.maxReplicas | int | `100` | | +| autoscaling.minReplicas | int | `1` | | +| autoscaling.targetCPUUtilizationPercentage | int | `80` | | +| config.baseUrl | string | `""` | base URL of the vCenter server | +| config.logLevel | string | `"INFO"` | Maximum log level to use (see (https://pkg.go.dev/github.com/sirupsen/logrus#readme-level-logging)) [INFO] | +| config.tlsSkipVerify | string | `"false"` | If set, will disable TLS verification for the API client | +| fullnameOverride | string | `""` | | +| image.pullPolicy | string | `"IfNotPresent"` | | +| image.repository | string | `"ghcr.io/dodevops/vmware-rest-proxy"` | | +| image.tag | string | `""` | | +| imagePullSecrets | list | `[]` | | +| ingress.annotations | object | `{}` | | +| ingress.className | string | `""` | | +| ingress.enabled | bool | `false` | | +| ingress.hosts[0].host | string | `"chart-example.local"` | | +| ingress.hosts[0].paths[0].path | string | `"/"` | | +| ingress.hosts[0].paths[0].pathType | string | `"ImplementationSpecific"` | | +| ingress.tls | list | `[]` | | +| nameOverride | string | `""` | | +| nodeSelector | object | `{}` | | +| podAnnotations | object | `{}` | | +| podSecurityContext | object | `{}` | | +| replicaCount | int | `1` | | +| resources | object | `{}` | | +| securityContext | object | `{}` | | +| service.port | int | `8080` | | +| service.type | string | `"ClusterIP"` | | +| serviceAccount.annotations | object | `{}` | | +| serviceAccount.create | bool | `true` | | +| serviceAccount.name | string | `""` | | +| tolerations | list | `[]` | | + diff --git a/charts/vmware-rest-proxy/README.md.gotmpl b/charts/vmware-rest-proxy/README.md.gotmpl new file mode 100644 index 0000000..b7ef64c --- /dev/null +++ b/charts/vmware-rest-proxy/README.md.gotmpl @@ -0,0 +1,32 @@ +{{ template "chart.header" . }} +{{ template "chart.deprecationWarning" . }} + +[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/vmware-rest-proxy)](https://artifacthub.io/packages/search?repo=vmware-rest-proxy) {{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }} + +## Introduction + +This helm chart installs the [VMware REST Proxy](https://github.com/dodevops/vmware-rest-proxy) for easy access +to commonly used vSphere information. + +## Installation + +Use + + helm install vmware-rest-proy --repo https://dodevops.io/vmware-rest-proxy + +to install this chart. + +## Configuration + +Set config.baseUrl to the URL of your vCenter server. See other `config.`-parameters for more configuration. + +{{ template "chart.homepageLine" . }} + +{{ template "chart.maintainersSection" . }} + +{{ template "chart.sourcesSection" . }} + +{{ template "chart.requirementsSection" . }} + +{{ template "chart.valuesSection" . }} + diff --git a/charts/vmware-rest-proxy/templates/deployment.yaml b/charts/vmware-rest-proxy/templates/deployment.yaml index 4350c59..0ee9fde 100644 --- a/charts/vmware-rest-proxy/templates/deployment.yaml +++ b/charts/vmware-rest-proxy/templates/deployment.yaml @@ -49,7 +49,7 @@ spec: - name: BASE_URL value: {{ .Values.config.baseUrl }} - name: LOG_LEVEL - value: {{ . Values.config.logLevel }} + value: {{ .Values.config.logLevel }} - name: TLS_INSECURE_SKIP_VERIFY value: {{ .Values.config.tlsSkipVerify }} resources: diff --git a/charts/vmware-rest-proxy/values.yaml b/charts/vmware-rest-proxy/values.yaml index 011d453..61a1d0f 100644 --- a/charts/vmware-rest-proxy/values.yaml +++ b/charts/vmware-rest-proxy/values.yaml @@ -82,6 +82,9 @@ tolerations: [] affinity: {} config: + # config.baseUrl -- base URL of the vCenter server baseUrl: "" + # config.logLevel -- Maximum log level to use (see (https://pkg.go.dev/github.com/sirupsen/logrus#readme-level-logging)) [INFO] logLevel: "INFO" + # config.tlsSkipVerify -- If set, will disable TLS verification for the API client tlsSkipVerify: "false" \ No newline at end of file