From 9199caeabc914754cf970bc4a1f6d679d9d22025 Mon Sep 17 00:00:00 2001 From: Roman Date: Sun, 25 Aug 2019 18:44:21 +0200 Subject: [PATCH] [stable/hubot] Better Hubot chart (#16016) * Better Hubot chart Signed-off-by: Roman Komkov * Reverting OWNERS file Signed-off-by: Roman Komkov * Adding a space to please the linter Signed-off-by: Roman Komkov * Update stable/hubot/values.yaml Co-Authored-By: Dario Blanco Signed-off-by: Roman Komkov * Changes after code review Signed-off-by: Roman Komkov * Correct Docker image source URL Signed-off-by: Roman Komkov * Updated README.md Signed-off-by: Roman Komkov * Workaround for CI Signed-off-by: Roman Komkov * Add myself to OWNERS file Signed-off-by: Roman Komkov --- stable/hubot/Chart.yaml | 15 +- stable/hubot/OWNERS | 2 + stable/hubot/README.md | 102 +++++++--- stable/hubot/ci/test-values.yaml | 7 + stable/hubot/requirements.lock | 6 + stable/hubot/requirements.yaml | 5 + stable/hubot/templates/_helpers.tpl | 13 ++ stable/hubot/templates/config-cm.yaml | 13 ++ stable/hubot/templates/config-secret.yaml | 16 ++ stable/hubot/templates/configmap-scripts.yaml | 11 -- stable/hubot/templates/configmap.yaml | 11 -- stable/hubot/templates/deployment.yaml | 177 +++++++++++++++--- .../hubot/templates/external-scripts-cm.yaml | 21 +++ stable/hubot/templates/ingress.yaml | 8 +- stable/hubot/templates/scripts-cm.yaml | 13 ++ .../hubot/templates/scripts-repo-secret.yaml | 17 ++ stable/hubot/templates/secret.yaml | 12 -- stable/hubot/templates/service.yaml | 14 +- stable/hubot/values.yaml | 98 ++++++++-- 19 files changed, 443 insertions(+), 118 deletions(-) create mode 100644 stable/hubot/ci/test-values.yaml create mode 100644 stable/hubot/requirements.lock create mode 100644 stable/hubot/requirements.yaml create mode 100644 stable/hubot/templates/config-cm.yaml create mode 100644 stable/hubot/templates/config-secret.yaml delete mode 100644 stable/hubot/templates/configmap-scripts.yaml delete mode 100644 stable/hubot/templates/configmap.yaml create mode 100644 stable/hubot/templates/external-scripts-cm.yaml create mode 100644 stable/hubot/templates/scripts-cm.yaml create mode 100644 stable/hubot/templates/scripts-repo-secret.yaml delete mode 100644 stable/hubot/templates/secret.yaml diff --git a/stable/hubot/Chart.yaml b/stable/hubot/Chart.yaml index 1ec431bb1c..c8aead8868 100644 --- a/stable/hubot/Chart.yaml +++ b/stable/hubot/Chart.yaml @@ -1,16 +1,21 @@ +--- + apiVersion: v1 description: Hubot chatbot for Slack name: hubot -version: 0.0.2 -appVersion: 0.1.9 -home: https://github.com/mind-doc/hubot +version: 1.0.0 +appVersion: 3.3.2 +home: https://hubot.github.com sources: - - https://github.com/mind-doc/hubot + - https://github.com/hubotio/hubot + - https://github.com/minddocdev/hubot keywords: - slack - hubot - chatbot -icon: https://i.imgur.com/UIkAW9t.png +icon: https://hubot.github.com/assets/images/layout/hubot-avatar@2x.png maintainers: - name: darioblanco email: dblanco@minddoc.com + - name: decayofmind + email: r.komkov@gmail.com diff --git a/stable/hubot/OWNERS b/stable/hubot/OWNERS index 3ee6653c63..fa83690929 100644 --- a/stable/hubot/OWNERS +++ b/stable/hubot/OWNERS @@ -1,4 +1,6 @@ approvers: - darioblanco +- decayofmind reviewers: - darioblanco +- decayofmind diff --git a/stable/hubot/README.md b/stable/hubot/README.md index ed145a3269..5707cf1fb9 100644 --- a/stable/hubot/README.md +++ b/stable/hubot/README.md @@ -1,8 +1,8 @@ -# Hubot +## Hubot Hubot 3 chatbot with the Slack adaptor -Learn more: https://github.com/mind-doc/hubot +Learn more: https://hubot.github.com ## TL;DR; @@ -47,26 +47,41 @@ The following table lists the configurable parameters of the Hubot chart and the Parameter | Description | Default --- | --- | --- -`namespace` | namespace to use | `default` -`replicaCount` | desired number of pods | `1` -`image.repository` | container image repository | `minddocdev/hubot` -`image.tag` | container image tag | `latest` -`image.pullPolicy` | container image pull policy | `Always` -`service.type` | type of service to create | `NodePort` -`service.httpPort` | port for the http service | `80` +`fullnameOverride` | Override the full resource names | `""` +`replicaCount` | Desired number of pods | `1` +`strategyType` | Type of deployment strategy | `RollingUpdate` +`image.repository` | Container image repository | `minddocdev/hubot` +`image.tag` | Container image tag | `3.3.2` +`image.pullPolicy` | Container image pull policy | `IfNotPresent` +`service.type` | Type of service to create | `NodePort` +`service.port` | Port for the http service | `80` +`config` | Hubot configuration (environment variables) | `{}` +`secretConfig` | Sensitive environment variables passed to Hubot as Secret | `{}` +`existingSecretConfigName` | Reference to an existing Secret with sensitive env vars | `""` +`args` | Arguments passed to Hubot binary | `["--name", "${HUBOT_NAME}", "--adapter", "--slack"]` +`extraArgs` | Additional arguments to Hubot binary | `[]` +`scripts` | Custom hubot scripts | `{}` +`scriptsRepo.enable` | Flag to checkout repo with scripts | `false` +`scriptsRepo.image` | Image with git-sync | `k8s.gcr.io/git-sync:v3.1.2` +`scriptsRepo.repository` | Git repository to checkout | `""` +`scriptsRepo.branch` | Branch in repository to checkout from | `master` +`scriptsRepo.username` | Git repo username | `null` +`scriptsRepo.password` | Password for git repo | `null` +`scriptsRepo.existingSecretName` | Set if your git credentials are stored in some existing Secret | `null` +`extraPackages` | List of additional npm packages to install on Hubot startup (usually, dependencies for scripts) | `[]` +`externalScripts` | Content for external-scripts.json file (all listed packages will be installed on startup) | `[]` +`redis.enabled` | Install a dependency chart with Redis (needed for hubot-brain) | `true` `ingress.enabled` | flag to add ingress functionality | `false` `ingress.annotations` | ingress load balancer annotations | `Always` `ingress.path` | proxied path | `/` `ingress.hosts` | proxied hosts | `[ hubot.local ]` `ingress.tls` | tls certificate secrets | `[]` `resources` | resource requests & limits | `{}` +`extraConfigMapMounts` | Additional configMaps to be mounted (good for extra files, certs) | `[]` +`extraLabels` | Extra labels to add to the Resources | `{}` `nodeSelector` | node selector logic | `{}` `tolerations` | resource tolerations | `{}` `affinity` | node affinity | `{}` -`hubot.config` | hubot configuration (environment variables) | `{}` -`hubot.scriptsFolder` | hubot scripts folder path | `/minddocbot/scripts` -`hubot.scripts` | custom hubot scripts | `{ health.coffee: