Skip to content

Commit 5c05354

Browse files
authored
Add region to HttpBin (#34)
Signed-off-by: Karol Szwaj <karol.szwaj@gmail.com> On-behalf-of: @SAP karol.szwaj@sap.com
1 parent a53e054 commit 5c05354

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

api/v1alpha1/httpbin_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ type HttpBinSpec struct {
5454

5555
// Foo is an example field of HttpBin. Edit httpbin_types.go to remove/update
5656
Foo string `json:"foo,omitempty"`
57+
// Region can be used to filter which HttpBin should be served
58+
Region string `json:"region,omitempty"`
5759
}
5860

5961
// HttpBinStatus defines the observed state of HttpBin

charts/example-httpbin-operator/crds/orchestrate.platform-mesh.io_httpbins.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ spec:
5050
description: Foo is an example field of HttpBin. Edit httpbin_types.go
5151
to remove/update
5252
type: string
53+
region:
54+
description: Region can be used to filter which HttpBin should be
55+
served
56+
type: string
5357
type: object
5458
status:
5559
description: HttpBinStatus defines the observed state of HttpBin

config/crd/bases/orchestrate.platform-mesh.io_httpbins.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ spec:
5050
description: Foo is an example field of HttpBin. Edit httpbin_types.go
5151
to remove/update
5252
type: string
53+
region:
54+
description: Region can be used to filter which HttpBin should be
55+
served
56+
type: string
5357
type: object
5458
status:
5559
description: HttpBinStatus defines the observed state of HttpBin

0 commit comments

Comments
 (0)