This file contains 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
import { Client, knex } from 'knex'; | |
import { NeonQueryFunction, neon } from '@neondatabase/serverless'; | |
class KnexNeonHTTP extends Client{ | |
connection: NeonQueryFunction<false, false>; | |
constructor(config) { | |
super(config); | |
this.driverName = 'neon'; | |
} |
This file contains 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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": "*", | |
"Resource": "*", | |
"Effect": "Allow" | |
} | |
] | |
} |
This file contains 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: build.openshift.io/v1 | |
kind: BuildConfig | |
metadata: | |
labels: | |
build: webapp-nginx-runtime | |
name: webapp-nginx-runtime | |
namespace: node-s2i-nginx | |
spec: | |
failedBuildsHistoryLimit: 5 | |
successfulBuildsHistoryLimit: 5 |
This file contains 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: build.openshift.io/v1 | |
kind: BuildConfig | |
metadata: | |
labels: | |
build: webapp-npm-build | |
name: webapp-npm-build | |
namespace: node-s2i-nginx | |
spec: | |
failedBuildsHistoryLimit: 5 | |
successfulBuildsHistoryLimit: 5 |
This file contains 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
# Note you must have golang installled and configured to do this! | |
# Login as a cluster admin | |
oc login $CLUSTER_URL | |
# install moq | |
# (make sure $GOPATH/bin/ is on your $PATH so moq can be found) | |
go get github.com/matryer/moq | |
# setup the operator repo |
This file contains 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
{ | |
"openapi": "3.0.2", | |
"info": { | |
"title": "orders-internal", | |
"description": "This is an internal API that exposes order entries contained in the system.", | |
"version": "1.0.0" | |
}, | |
"paths": { | |
"/orders": { | |
"description": "Used to interact with orders stored in the backing data store.", |
This file contains 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
--- | |
openapi: 3.0.2 | |
info: | |
title: orders-internal | |
version: 1.0.0 | |
description: This is an internal API that exposes order entries contained in the | |
system. | |
paths: | |
/orders: | |
description: Used to interact with orders stored in the backing data store. |
This file contains 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: | |
annotations: | |
openshift.io/generated-by: OpenShiftNewApp | |
creationTimestamp: null | |
labels: | |
app: sync-app-showcase-server | |
name: mosquitto-mqtt-broker | |
spec: |
This file contains 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
kind: DeploymentConfig | |
apiVersion: v1 | |
name: mosquitto-mqtt-broker | |
metadata: | |
annotations: | |
openshift.io/generated-by: OpenShiftNewApp | |
creationTimestamp: null | |
labels: | |
app: sync-app-showcase-server | |
name: mosquitto-mqtt-broker |
This file contains 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
/** | |
* All the assertion code below the line could be replaced with | |
* this single line by using env-var | |
*/ | |
env.get(MAX_BATCH_SIZE).required().asIntPositive() | |
// ----------------------------------------------- | |
const assert = require('assert'); |
NewerOlder