Skip to content

Commit

Permalink
feat(operator): Remove deployment when is desactivated
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed Jul 31, 2023
1 parent 430e08a commit d434543
Show file tree
Hide file tree
Showing 177 changed files with 2,766 additions and 337 deletions.
1 change: 0 additions & 1 deletion components/operator/apis/stack/v1beta3/stack_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ type StackServicesSpec struct {
Ledger StackServicePropertiesSpec `json:"ledger,omitempty"`
Orchestration StackServicePropertiesSpec `json:"orchestration,omitempty"`
Payments StackServicePropertiesSpec `json:"payments,omitempty"`
Search StackServicePropertiesSpec `json:"search,omitempty"`
Wallets StackServicePropertiesSpec `json:"wallets,omitempty"`
Webhooks StackServicePropertiesSpec `json:"webhooks,omitempty"`
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -1944,11 +1944,6 @@ spec:
disabled:
type: boolean
type: object
search:
properties:
disabled:
type: boolean
type: object
wallets:
properties:
disabled:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Configuration
metadata:
name: default
spec:
light: true
broker:
kafka:
brokers:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ metadata:
labels:
stack: "true"
name: auth-config
namespace: multipod-disabled
namespace: monopod-disabled-one-service
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
apiVersion: v1
data:
Caddyfile: |-
(cors) {
header {
Access-Control-Allow-Methods "GET,OPTIONS,PUT,POST,DELETE,HEAD,PATCH"
Access-Control-Allow-Headers content-type
Access-Control-Max-Age 100
Access-Control-Allow-Origin *
}
}
(handle_route_without_auth) {
# handle does not strips the prefix from the request path
handle {args.0}/* {
reverse_proxy {args.1}
import cors
}
}
(handle_path_route_with_auth) {
# handle_path automatically strips the prefix from the request path
handle_path {args.0}* {
reverse_proxy {args.1}
import cors
import auth
}
}
(handle_path_route_without_auth) {
# handle_path automatically strips the prefix from the request path
handle_path {args.0}* {
reverse_proxy {args.1}
import cors
}
}
(auth) {
auth {
issuer http://example.net/api/auth
read_key_set_max_retries 10
}
}
{
# Many directives manipulate the HTTP handler chain and the order in which
# those directives are evaluated matters. So the jwtauth directive must be
# ordered.
# c.f. https://caddyserver.com/docs/caddyfile/directives#directive-order
order auth before basicauth
order versions after metrics
}
:8000 {
tracing {
span gateway
}
log {
output stdout
}
import handle_path_route_without_auth /api/auth 127.0.0.1:10001
import handle_path_route_with_auth /api/payments 127.0.0.1:10002
import handle_path_route_with_auth /api/search 127.0.0.1:10003
import handle_path_route_with_auth /api/search-benthos 127.0.0.1:4195
import handle_path_route_with_auth /api/stargate 127.0.0.1:10004
import handle_path_route_with_auth /api/wallets 127.0.0.1:10005
import handle_path_route_with_auth /api/webhooks 127.0.0.1:10006
handle /versions {
versions {
region "us-west-1"
env "staging"
endpoints {
auth http://127.0.0.1:10001/_info http://127.0.0.1:10001/_healthcheck
payments http://127.0.0.1:10002/_info http://127.0.0.1:10002/_health
search http://127.0.0.1:10003/_info http://127.0.0.1:10003/_healthcheck
stargate http://127.0.0.1:10004/_info http://127.0.0.1:10004/_healthcheck
wallets http://127.0.0.1:10005/_info http://127.0.0.1:10005/_healthcheck
webhooks http://127.0.0.1:10006/_info http://127.0.0.1:10006/_healthcheck
}
}
}
# handle all other requests
handle {
reverse_proxy control:3000
import cors
}
}
kind: ConfigMap
metadata:
labels:
stack: "true"
name: gateway-config
namespace: monopod-disabled-one-service
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ metadata:
labels:
stack: "true"
name: search-benthos-global
namespace: multipod-disabled
namespace: monopod-disabled-one-service
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ metadata:
labels:
stack: "true"
name: search-benthos-resources
namespace: multipod-disabled
namespace: monopod-disabled-one-service
Original file line number Diff line number Diff line change
Expand Up @@ -455,4 +455,4 @@ metadata:
labels:
stack: "true"
name: search-benthos-streams
namespace: multipod-disabled
namespace: monopod-disabled-one-service
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ metadata:
labels:
stack: "true"
name: search-benthos-templates
namespace: multipod-disabled
namespace: monopod-disabled-one-service
Loading

1 comment on commit d434543

@vercel
Copy link

@vercel vercel bot commented on d434543 Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.