Skip to content

Instantly share code, notes, and snippets.

View cmwylie19's full-sized avatar

Case Wylie cmwylie19

View GitHub Profile
.login-pf body {
background-color: black;
height: 100%;
}
.alert-error {
background-color: #ffffff;
border-color: #cc0000;
color: #333333;
}
@cmwylie19
cmwylie19 / list.js
Created February 28, 2021 16:27
List Schema
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const List = new Schema({
title: String,
owner: String,
allow: { type: Array, default: [] },
created: { type: Date, default: Date.now },
});
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const User = new Schema({
name: String,
password: String,
tasks: { type: Array, default: [] },
lists: { type: Array, default: [] },
friends: { type: Array, default: [] },
password: { type: String, required: true },
@cmwylie19
cmwylie19 / task.js
Created February 28, 2021 16:32
task schema
const mongoose = require("mongoose");
const Schema = mongoose.Schema;
const Task = new Schema({
title: String,
listId: String,
owner: String,
completed: { type: Boolean, default: false },
assigned: String,
completedAt: Date,
@cmwylie19
cmwylie19 / openapi.yaml
Last active March 1, 2021 20:49
task-service-demo
openapi: 3.0.2
info:
description: |
This is a OpenAPI spec for the task service demo
The [source code](https://github.com/cmwylie19/task-mongo) can be found in the GitHub repo.
version: "1.0.0"
title: Task Service Demo
contact:
email: casey.wylie@solo.io
license:
apiVersion: networking.mesh.gloo.solo.io/v1
kind: TrafficPolicy
metadata:
name: api-product-traffic-policy
namespace: gloo-mesh-config
spec:
destinationSelector:
- kubeServiceRefs:
services:
- clusterName: cluster-1
apiVersion: networking.mesh.gloo.solo.io/v1
kind: TrafficPolicy
metadata:
name: product-traffic-policy
namespace: gloo-mesh-config
spec:
destinationSelector:
- kubeServiceRefs:
services:
- clusterName: cluster-1
apiVersion: networking.mesh.gloo.solo.io/v1
kind: TrafficPolicy
metadata:
name: api-product-traffic-policy
namespace: gloo-mesh-config
spec:
destinationSelector:
- kubeServiceRefs:
services:
- clusterName: cluster-1
apiVersion: networking.mesh.gloo.solo.io/v1
kind: TrafficPolicy
metadata:
name: product-traffic-policy
namespace: gloo-mesh-config
spec:
destinationSelector:
- kubeServiceRefs:
services:
- clusterName: cluster-1
#!/bin/bash
HUB=<hub_context>
MANAGED=<managed_context>
MANAGED_CLUSTER=<name_of_managed_cluster>
# Create the namespace
kubectl apply -f --context $HUB -<<EOF
apiVersion: v1
kind: Namespace