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/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 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..09346b32 --- /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: reuda +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..984ac233 --- /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"