From 5609547a8fb2074de914696f41c4d446c3158428 Mon Sep 17 00:00:00 2001 From: Daniel Reuter Date: Tue, 2 Aug 2022 13:03:56 +0200 Subject: [PATCH 1/4] feat: added steadybit-extension-postman --- .../steadybit-extension-postman/.helmignore | 23 ++++++++++++++++ charts/steadybit-extension-postman/Chart.yaml | 21 +++++++++++++++ charts/steadybit-extension-postman/README.md | 26 ++++++++++++++++++ .../templates/deployment.yaml | 27 +++++++++++++++++++ .../templates/service.yaml | 12 +++++++++ .../steadybit-extension-postman/values.yaml | 23 ++++++++++++++++ 6 files changed, 132 insertions(+) create mode 100644 charts/steadybit-extension-postman/.helmignore create mode 100644 charts/steadybit-extension-postman/Chart.yaml create mode 100644 charts/steadybit-extension-postman/README.md create mode 100644 charts/steadybit-extension-postman/templates/deployment.yaml create mode 100644 charts/steadybit-extension-postman/templates/service.yaml create mode 100644 charts/steadybit-extension-postman/values.yaml diff --git a/charts/steadybit-extension-postman/.helmignore b/charts/steadybit-extension-postman/.helmignore new file mode 100644 index 00000000..0e8a0eb3 --- /dev/null +++ b/charts/steadybit-extension-postman/.helmignore @@ -0,0 +1,23 @@ +# 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/charts/steadybit-extension-postman/Chart.yaml b/charts/steadybit-extension-postman/Chart.yaml new file mode 100644 index 00000000..774cb972 --- /dev/null +++ b/charts/steadybit-extension-postman/Chart.yaml @@ -0,0 +1,21 @@ +apiVersion: v2 +name: steadybit-extension-postman +description: Steadybit Postman extension Helm chart for Kubernetes. +version: 1.0.0 +appVersion: latest +home: https://www.steadybit.com/ +icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png +maintainers: + - email: daniel.reuter@steadybit.com + name: Daniel Reuter +sources: + - https://github.com/steadybit/helm-charts +annotations: + artifacthub.io/images: | + - name: logo + image: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png + artifacthub.io/links: |- + - name: steadybit website + url: https://www.steadybit.com + - name: steadybit Kubernetes Helm charts + url: https://github.com/steadybit/helm-charts diff --git a/charts/steadybit-extension-postman/README.md b/charts/steadybit-extension-postman/README.md new file mode 100644 index 00000000..7e30bc0b --- /dev/null +++ b/charts/steadybit-extension-postman/README.md @@ -0,0 +1,26 @@ +# Steadybit Postman Extension + +This Helm chart adds the Steadybit Postman extension to your Kubernetes cluster via a deployment. + +## Quick Start + +### Add Steadybit Helm repository + +``` +helm repo add steadybit https://steadybit.github.io/helm-charts +helm repo update +``` + +### Installing the Chart + +To install the chart with the name `steadybit-extension-postman` and set the required configuration values. + +```bash +$ helm upgrade steadybit-extension-postman \ + --install \ + --wait \ + --timeout 5m0s \ + --create-namespace \ + --namespace steadybit-extension \ + steadybit/steadybit-extension-postman +``` diff --git a/charts/steadybit-extension-postman/templates/deployment.yaml b/charts/steadybit-extension-postman/templates/deployment.yaml new file mode 100644 index 00000000..05b7fbc3 --- /dev/null +++ b/charts/steadybit-extension-postman/templates/deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: steadybit-extension-postman + namespace: {{ .Release.Namespace }} +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: steadybit-extension-postman + template: + metadata: + labels: + app.kubernetes.io/name: steadybit-extension-postman + spec: + containers: + - image: {{ .Values.image.name }}:{{ .Values.image.tag }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + name: steadybit-extension-postman + resources: + requests: + memory: {{ .Values.resources.requests.memory }} + cpu: {{ .Values.resources.requests.cpu }} + limits: + memory: {{ .Values.resources.limits.memory }} + cpu: {{ .Values.resources.limits.cpu }} +--- \ No newline at end of file diff --git a/charts/steadybit-extension-postman/templates/service.yaml b/charts/steadybit-extension-postman/templates/service.yaml new file mode 100644 index 00000000..69db766c --- /dev/null +++ b/charts/steadybit-extension-postman/templates/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: steadybit-extension-postman + namespace: {{ .Release.Namespace }} +spec: + selector: + app.kubernetes.io/name: steadybit-extension-postman + ports: + - protocol: TCP + port: 8086 + targetPort: 8086 diff --git a/charts/steadybit-extension-postman/values.yaml b/charts/steadybit-extension-postman/values.yaml new file mode 100644 index 00000000..319092e3 --- /dev/null +++ b/charts/steadybit-extension-postman/values.yaml @@ -0,0 +1,23 @@ +# Default values for steadybit-extension-postman. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. +image: + # image.name -- The container image to use for the steadybit Postman extension. + name: steadybit/extension-postman + # image.tag -- tag name of the extension-postman container image to use. + # See https://hub.docker.com/r/steadybit/extension-postman for all tags. + tag: latest + # image.pullPolicy -- Specifies when to pull the image container. + pullPolicy: Always + +resources: + requests: + # resources.requests.memory -- The minimal amount of memory needed + memory: "64Mi" + # resources.requests.cpu -- The minimal amount of cpu shares needed + cpu: "50m" + limits: + # resources.limits.memory -- The limit of memory to be used + memory: "128Mi" + # resources.limits.cpu -- The limit of cpu share to be used during its interval + cpu: "200m" \ No newline at end of file From e1fd7c2a93987f27858176e2597a601c11d0928b Mon Sep 17 00:00:00 2001 From: Daniel Reuter Date: Tue, 2 Aug 2022 13:04:49 +0200 Subject: [PATCH 2/4] feat: added steadybit-extension-postman --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 09a47860..9d6a9c8d 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Currently supported: - [steadybit Platform](charts/steadybit-platform/README.md) - [steadybit AWS extension](charts/steadybit-extension-aws/README.md) - [steadybit Kong extension](charts/steadybit-extension-kong/README.md) +- [steadybit Postman extension](charts/steadybit-extension-postman/README.md) ## How to use the steadybit Helm repository From e2ededb12933c606c5d5caa70a620638cea4469c Mon Sep 17 00:00:00 2001 From: Daniel Reuter Date: Tue, 2 Aug 2022 13:08:47 +0200 Subject: [PATCH 3/4] fix: lint --- charts/steadybit-extension-postman/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/steadybit-extension-postman/Chart.yaml b/charts/steadybit-extension-postman/Chart.yaml index 774cb972..87ae4dc4 100644 --- a/charts/steadybit-extension-postman/Chart.yaml +++ b/charts/steadybit-extension-postman/Chart.yaml @@ -18,4 +18,4 @@ annotations: - name: steadybit website url: https://www.steadybit.com - name: steadybit Kubernetes Helm charts - url: https://github.com/steadybit/helm-charts + url: https://github.com/steadybit/helm-charts \ No newline at end of file From c240d035e94ec239a1ec463f89581705f588e42d Mon Sep 17 00:00:00 2001 From: Daniel Reuter Date: Tue, 2 Aug 2022 13:18:52 +0200 Subject: [PATCH 4/4] fix: linter issues --- CONTRIBUTING.MD | 4 ++++ charts/steadybit-extension-postman/Chart.yaml | 4 ++-- charts/steadybit-extension-postman/values.yaml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 CONTRIBUTING.MD diff --git a/CONTRIBUTING.MD b/CONTRIBUTING.MD new file mode 100644 index 00000000..edb0d275 --- /dev/null +++ b/CONTRIBUTING.MD @@ -0,0 +1,4 @@ +## Test and Lint + +- Install chart-testing on MacOs `brew install chart-testing yamllint` +- Lint: `ct lint --target-branch main` \ No newline at end of file diff --git a/charts/steadybit-extension-postman/Chart.yaml b/charts/steadybit-extension-postman/Chart.yaml index 87ae4dc4..09346b32 100644 --- a/charts/steadybit-extension-postman/Chart.yaml +++ b/charts/steadybit-extension-postman/Chart.yaml @@ -7,7 +7,7 @@ home: https://www.steadybit.com/ icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png maintainers: - email: daniel.reuter@steadybit.com - name: Daniel Reuter + name: reuda sources: - https://github.com/steadybit/helm-charts annotations: @@ -18,4 +18,4 @@ annotations: - name: steadybit website url: https://www.steadybit.com - name: steadybit Kubernetes Helm charts - url: https://github.com/steadybit/helm-charts \ No newline at end of file + url: https://github.com/steadybit/helm-charts diff --git a/charts/steadybit-extension-postman/values.yaml b/charts/steadybit-extension-postman/values.yaml index 319092e3..984ac233 100644 --- a/charts/steadybit-extension-postman/values.yaml +++ b/charts/steadybit-extension-postman/values.yaml @@ -20,4 +20,4 @@ resources: # resources.limits.memory -- The limit of memory to be used memory: "128Mi" # resources.limits.cpu -- The limit of cpu share to be used during its interval - cpu: "200m" \ No newline at end of file + cpu: "200m"