Skip to content

Commit

Permalink
Refactor storage grid gateway (argoproj#141)
Browse files Browse the repository at this point in the history
* Refactor storage grid gateway

* fix filter condition
  • Loading branch information
VaibhavPage authored and magaldima committed Dec 24, 2018
1 parent 1565cca commit 39a9371
Show file tree
Hide file tree
Showing 4 changed files with 170 additions and 150 deletions.
2 changes: 1 addition & 1 deletion examples/gateways/storage-grid.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: argoproj.io/v1alpha1
kind: Gateway
metadata:
name: storage_grid-gateway
name: storage-grid-gateway
labels:
gateways.argoproj.io/gateway-controller-instanceid: argo-events
gateway-name: "storage-grid-gateway"
Expand Down
4 changes: 2 additions & 2 deletions gateways/custom/storagegrid/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM centos:7
COPY dist/storage-grid-gateway /bin/
ENTRYPOINT [ "/bin/storage-grid-gateway" ]
COPY dist/storagegrid-gateway /bin/
ENTRYPOINT [ "/bin/storagegrid-gateway" ]
4 changes: 2 additions & 2 deletions gateways/custom/storagegrid/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ type StorageGridEventConfig struct {
Filter *Filter `json:"filter,omitempty"`
// srv holds reference to http server
// +k8s:openapi-gen=false
Srv *http.Server `json:"srv,omitempty"`
srv *http.Server `json:"srv,omitempty"`
// +k8s:openapi-gen=false
Mux *http.ServeMux `json:"mux,omitempty"`
mux *http.ServeMux `json:"mux,omitempty"`
}

// Filter represents filters to apply to bucket notifications for specifying constraints on objects
Expand Down
Loading

0 comments on commit 39a9371

Please sign in to comment.