This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pattern<Shipment, ?> pattern = Pattern.<Shipment>begin("start").where(new SimpleCondition<Shipment>() { | |
@Override | |
public boolean filter(Shipment value) throws Exception { | |
// Check where the shipment came from | |
return value.from.equals("A"); | |
} | |
}).followedByAny("middle").where(new IterativeCondition<Shipment>() { | |
@Override | |
public boolean filter(Shipment value, Context<Shipment> ctx) throws Exception { | |
Iterator<Shipment> it = ctx.getEventsForPattern("middle").iterator(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: postgres-config | |
labels: | |
app: ecommerce | |
tier: postgres | |
data: | |
POSTGRES_DB: product | |
POSTGRES_USER: product_robot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spec: | |
containers: | |
- name: postgres | |
image: postgres:latest | |
envFrom: | |
- configMapRef: | |
name: postgres-config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: postgres-config | |
labels: | |
app: ecommerce | |
tier: postgres | |
data: | |
POSTGRES_DB: product | |
POSTGRES_USER: product_robot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: postgres | |
labels: | |
app: ecommerce | |
tier: postgres | |
spec: | |
type: NodePort | |
ports: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: ecommerce | |
tier: backend | |
name: product-be | |
spec: | |
replicas: 2 | |
selector: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: ecommerce | |
tier: backend | |
name: product-be | |
spec: | |
type: NodePort | |
ports: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: product-fe | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: ecommerce | |
tier: frontend |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: product-fe | |
spec: | |
type: NodePort | |
ports: | |
- protocol: TCP | |
port: 8080 | |
targetPort: 8080 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
the application is frozen | Frozen | |
---|---|---|
nothing works | Frozen | |
the application says incompatible | Incompatible | |
it won't work on my computer | Incompatible | |
i can't upload | UploadFail | |
my file won't upload | UploadFail | |
i got an error | ErrorMessage | |
there's an error message | ErrorMessage | |
it says file too large | LargeFile | |
an error message says file too big | LargeFile |