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
.login-pf body { | |
background-color: black; | |
height: 100%; | |
} | |
.alert-error { | |
background-color: #ffffff; | |
border-color: #cc0000; | |
color: #333333; | |
} |
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
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 }, | |
}); |
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
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 }, |
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
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, |
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: | |
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: |
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: 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 |
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: networking.mesh.gloo.solo.io/v1 | |
kind: TrafficPolicy | |
metadata: | |
name: product-traffic-policy | |
namespace: gloo-mesh-config | |
spec: | |
destinationSelector: | |
- kubeServiceRefs: | |
services: | |
- clusterName: cluster-1 |
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: 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 |
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: networking.mesh.gloo.solo.io/v1 | |
kind: TrafficPolicy | |
metadata: | |
name: product-traffic-policy | |
namespace: gloo-mesh-config | |
spec: | |
destinationSelector: | |
- kubeServiceRefs: | |
services: | |
- clusterName: cluster-1 |
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
#!/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 |
OlderNewer