Skip to content

Instantly share code, notes, and snippets.

View ChrisChinchilla's full-sized avatar
✍️
docsdocsdocs

Chris Chinchilla ChrisChinchilla

✍️
docsdocsdocs
View GitHub Profile
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();
apiVersion: v1
kind: ConfigMap
metadata:
name: postgres-config
labels:
app: ecommerce
tier: postgres
data:
POSTGRES_DB: product
POSTGRES_USER: product_robot
spec:
containers:
- name: postgres
image: postgres:latest
envFrom:
- configMapRef:
name: postgres-config
apiVersion: v1
kind: ConfigMap
metadata:
name: postgres-config
labels:
app: ecommerce
tier: postgres
data:
POSTGRES_DB: product
POSTGRES_USER: product_robot
apiVersion: v1
kind: Service
metadata:
name: postgres
labels:
app: ecommerce
tier: postgres
spec:
type: NodePort
ports:
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: ecommerce
tier: backend
name: product-be
spec:
replicas: 2
selector:
apiVersion: v1
kind: Service
metadata:
labels:
app: ecommerce
tier: backend
name: product-be
spec:
type: NodePort
ports:
apiVersion: apps/v1
kind: Deployment
metadata:
name: product-fe
spec:
replicas: 1
selector:
matchLabels:
app: ecommerce
tier: frontend
apiVersion: v1
kind: Service
metadata:
name: product-fe
spec:
type: NodePort
ports:
- protocol: TCP
port: 8080
targetPort: 8080
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