gripmock

by Delivery Hero

Helm chartv1.1.3App 1.10.1Verified publisher

A chart to install [gripmock](https://github.com/tokopedia/gripmock). A mock server for GRPC services. It uses `.proto` file(s) to generate the implementation of gRPC service(s) for you. > **Note:** > > The latest version (v1.10 - default) of gripmock is requiring `go_package` declaration in the `.proto` file. This is due to the latest update of `protoc` plugin that is used by gripmock is making the `go_package` declaration mandatory. > > Version v1.11.1-beta release is available by overriding the `image.tag` in your `values.yaml` file. This version supports **NO** declaration of `go_package`.

About this chart

gripmock

A chart to install gripmock. A mock server for GRPC services. It uses .proto file(s) to generate the implementation of gRPC service(s) for you.

Note:

The latest version (v1.10 - default) of gripmock is requiring go_package declaration in the .proto file. This is due to the latest update of protoc plugin that is used by gripmock is making the go_package declaration mandatory.

Version v1.11.1-beta release is available by overriding the image.tag in your values.yaml file. This version supports NO declaration of go_package.

How to install this chart

A simple install with default values, latest chart version and generated name:

helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/gripmock

To install a specific version of this chart:

helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/gripmock --version 1.1.3

To install the chart with the release name my-release:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/gripmock

To install with some set values:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/gripmock --set values_key1=value1 --set values_key2=value2

To install with custom values file:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/gripmock -f values.yaml

Values

KeyTypeDefaultDescription
affinityobject{}
fullnameOverridestring""
gripmock.mocklist["hello_service.proto"]A list of .proto files that will be mocked based on the stubs.
gripmock.proto.configmapstring"example-protos"The name of the configmap containing all your .proto files
gripmock.proto.pathstring"/proto"The path where your configmap containing the proto files will be mounted
gripmock.stubs.configmapstring"example-stubs"The name of the configmap containing all the response definitions
gripmock.stubs.pathstring"/stubs"The path where your stubs configmap will be mounted
hpa.enabledboolfalse
hpa.maxReplicasint100
hpa.minReplicasint1
hpa.targetCPUUtilizationPercentageint80
image.pullPolicystring"IfNotPresent"
image.tagstring"1.10.1"Overrides the image tag whose default is the chart appVersion.
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.hosts[0].paths[0].portint4770
ingress.hosts[0].paths[1].pathstring"/"
ingress.hosts[0].paths[1].pathTypestring"ImplementationSpecific"
ingress.hosts[0].paths[1].portint4471
ingress.tlslist[]
labelsobject{}Any extra label to apply to all resources
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
replicaCountint1Set the number of replicas in case hpa is not enabled
resourcesobject{}
service.typestring"ClusterIP"
tolerationslist[]

Maintainers

NameEmailUrl
MarceloAplanalp[email protected]

Chart source and versions

Chart source: github.com/deliveryhero/helm-charts/gripmock

Older chart versions: github.com/deliveryhero/helm-charts/pkgs/container/helm-charts/gripmock

Deploy gripmock with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gripmock on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartgripmock is pinned at v1.1.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply