Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Changes for consistency to parts lib descriptions #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion incubator/apache/parts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "apache",
"apiVersion": "0.0.1",
"kind": "ksonnet.io/parts",
"description": "Apache Ksonnet mixin library contains a simple prototype with pre-configured components to help you deploy a Apache HTTP Server app to a Kubernetes cluster with ease.",
"description": "Apache is a popular, open-source HTTP server",
"author": "ksonnet team <[email protected]>",
"contributors": [
{
Expand Down
10 changes: 6 additions & 4 deletions incubator/apache/prototypes/apache-simple.jsonnet
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// @apiVersion 0.0.1
// @name io.ksonnet.pkg.apache-simple
// @description Apache HTTP Server. Apache is deployed using a deployment, and exposed to the
// network using a service.
// @description runs Apache HTTP Server as a Deployment, and exposes it to
// the network using a Service.
// @shortDescription A simple, stateless Apache HTTP server.
// @param namespace string Namespace to divvy up your cluster; default is 'default'
// @param name string Name to identify all Kubernetes objects in this prototype
// @param namespace string Namespace (metadata) that the Apache resources are
// created under; default is 'default'
// @param name string Name (metadata) to identify all resources defined by this
// prototype

local k = import 'k.libsonnet';
local apache = import 'incubator/apache/apache.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion incubator/mariadb/parts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mariadb",
"apiVersion": "0.0.1",
"kind": "ksonnet.io/parts",
"description": "MariaDB is an open source relational database it provides a SQL interface for accessing data. The latest versions of MariaDB also include GIS and JSON features. This package deploys a maria container, a service and secret to your cluster",
"description": "MariaDB is an open-source relational database that supports SQL. The latest versions of MariaDB also include GIS and JSON features.",
"author": "ksonnet team <[email protected]>",
"contributors": [
{
Expand Down
14 changes: 9 additions & 5 deletions incubator/mariadb/prototypes/maria-stateless.jsonnet
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
// @apiVersion 0.1
// @name io.ksonnet.pkg.stateless-maria
// @description Deploy stateless instance of MariaDB. This is NOT backed by a persistent volume.
// The MariaDB container is deployed using a deployment and exposed to the
// network as a service. The password is stored as a secret.
// @description deploys a stateless instance of MariaDB. *NOTE: This is NOT
// The MariaDB container is deployed using a deployment and exposed to the
// backed by a PersistentVolumeClaim.* The MariaDB container runs as a
// network as a service. The password is stored as a secret.
// Deployment, and is exposed to the network as a Service. The password is
// @shortDescription A simple, stateless MariaDB deployment.
// @param namespace string Namespace in which to put the application
// @param name string Metadata name for each of the deployment components
// @param namespace string Namespace (metadata) that the MariaDB resources are
// created under
// @param name string Name (metadata) to identify all resources defined by this
// prototype
// @param mariaRootPassword string Password for root user

local k = import 'k.libsonnet';
Expand Down
4 changes: 2 additions & 2 deletions incubator/memcached/parts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "memcached",
"apiVersion": "0.0.1",
"kind": "ksonnet.io/parts",
"description": "Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.",
"description": "Memcached is an in-memory K-V store for small chunks of arbitrary data (strings, objects). It is used to temporarily store results of queries such as database calls, API calls, or page rendering.",
"author": "ksonnet team <[email protected]>",
"contributors": [
{
Expand Down Expand Up @@ -33,7 +33,7 @@
"name": "memcached",
"namespace": "default"
},
"comment": "Run a simple memcached instance"
"comment": "Run a simple Memcached instance"
},
"license": "Apache 2.0"
}
Expand Down
13 changes: 8 additions & 5 deletions incubator/memcached/prototypes/memcached-simple.jsonnet
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
// @apiVersion 0.0.1
// @name io.ksonnet.pkg.memcached-simple
// @description Deploys Memcached on a your Kubernetes cluster through a stateful set with 3
// replicas, pod distribution budget (pdb), and service. Memcached
// can be accessed via port 11211 within the cluster.
// @description deploys Memcached on your cluster. It runs as a StatefulSet,
// using 3 replicas and a pod distribution budget (PDB). Memcached
// is exposed as a Service, and can be accessed via port 11211 within the
// cluster
// @shortDescription Simple Memcached instance with 3 replicas.
// @param namespace string Namespace in which to put the application
// @param name string Name to give to each of the components
// @param namespace string Namespace (metadata) that the Memcached resources
// are created under
// @param name string Name (metadata) to identify all resources defined by this
// prototype

// TODO: Add MaxItemMemory=64 as a param like the k8s/charts?

Expand Down
2 changes: 1 addition & 1 deletion incubator/mongodb/parts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mongodb",
"apiVersion": "0.0.1",
"kind": "ksonnet.io/parts",
"description": "MongoDB is a cross-platform document-oriented database. Classified as a NoSQL database, MongoDB eschews the traditional table-based relational database structure in favor of JSON-like documents with dynamic schemas, making the integration of data in certain types of applications easier and faster.",
"description": "MongoDB is a popular NoSQL database. Rather than the traditional relational DB structure, MongoDB favors JSON-like documents with dynamic schemas.",
"author": "ksonnet team <[email protected]>",
"contributors": [
{
Expand Down
16 changes: 9 additions & 7 deletions incubator/mongodb/prototypes/mongodb-simple.jsonnet
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
// @apiVersion 0.0.1
// @name io.ksonnet.pkg.mongodb-simple
// @description Deploys a simple instance of mongodb, backed by a persistent volume claim. The
// mongodb container is deployed using a Kubernetes deployment, and exposed
// to the network using a service. Passwords are stored in a secret.
// @description deploys a simple instance of MongoDB. It runs as a Deployment
// backed by a PersistentVolumeClaim, and is exposed to the network using a
// Service. Passwords are stored in a Secret.
// @shortDescription A simple MongoDB deployment, backed by persistent storage.
// @param namespace string Namespace to specify destination in cluster; default is 'default'
// @param name string Name of app to attach as identifier to all components
// @param rootPassword string RootPassword for db admin password
// @param password string Password for db user password
// @param namespace string Namespace (metadata) that the MongoDB resources
// are created under
// @param name string Name (metadata) to identify all resources defined by this
// prototype
// @param rootPassword string Password for the root user
// @param password string Password for new user

local k = import 'k.libsonnet';
local mongo = import 'incubator/mongodb/mongodb.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion incubator/mysql/parts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mysql",
"apiVersion": "0.0.1",
"kind": "ksonnet.io/parts",
"description": "MySQL is one of the most popular database servers in the world. Notable users include Wikipedia, Facebook and Google.",
"description": "MySQL is a relational database management system (RDBMS) that supports SQL. It is described as the 'most popular open source database',
"author": "ksonnet team <[email protected]>",
"contributors": [
{
Expand Down
16 changes: 9 additions & 7 deletions incubator/mysql/prototypes/simple-mysql.jsonnet
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
// @apiVersion 0.1
// @name io.ksonnet.pkg.simple-mysql
// @description Deploys MySQL backed by a persistent volume. The MySQL container is deployed
// using a deployment and exposed to the network with a service. The
// passwords are stored in a secret.
// @description deploys a MySQL instance. It runs as a Deployment backed by a
// PersistentVolumeClaim, and is exposed to the network with a Service. The
// passwords are stored in a Secret.
// @shortDescription A simple MySQL deployment, backed by persistent storage.
// @param namespace string Namespace in which to put the application
// @param name string Name to give to each of the components
// @param mysqlRootPassword string Password for root user
// @param mysqlPassword string Password for new user
// @param namespace string Namespace (metadata) that the MySQL resources are
// created under
// @param name string Name (metadata) to identify all resources defined by this
// prototype
// @param mySqlaRootPassword string Password for the root user
// @param mysqlPassword string Password for new use

local k = import 'k.libsonnet';
local mysql = import '../mysql.libsonnet';
Expand Down
14 changes: 7 additions & 7 deletions incubator/nginx/prototypes/nginx-server-block.jsonnet
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// @apiVersion 0.0.1
// @name io.ksonnet.pkg.nginx-server-block
// @description Deploys a simple, stateless nginx server with server blocks (roughly equivalent
// to nginx virtual hosts). The nginx container is deployed using a
// Kubernetes deployment, and is exposed to a network with a service.
// @description deploys a simple, stateless nginx server *with server blocks*
// (roughly equivalent to nginx virtual hosts). The nginx server runs as a
// Deployment, and is exposed to the network with a Service.
// @shortDescription A simple, stateless nginx server with server blocks.
// @param namespace string Namespace in which to put the application
// @param name string Name to give to all components.

// TODO: How should the ServerBlockConf be exposed to the user? Not quite sure what the default does except for setting web server to port 80.
// @param namespace string Namespace (metadata) that the nginx resources are
// created under
// @param name string Name (metadata) to identify all resources defined by this
// prototype

local k = import 'k.libsonnet';
local nginx = import 'incubator/nginx/nginx.libsonnet';
Expand Down
12 changes: 6 additions & 6 deletions incubator/nginx/prototypes/nginx-simple.jsonnet
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// @apiVersion 0.0.1
// @name io.ksonnet.pkg.nginx-simple
// @description Deploys a simple, stateless nginx server. The nginx container is
// deployed using a Kubernetes deployment, and is exposed to a network with a
// service.
// @description deploys a simple, stateless nginx server. The nginx server runs
// as a Deployment, and is exposed to the network with a Service.
// @shortDescription A simple, stateless nginx server.
// @optionalParam namespace string default Namespace in which to put the application
// @param name string Name to give to each of the components

// @param namespace string Namespace (metadata) that the nginx resources are
// created under
// @param name string Name (metadata) to identify all resources defined by this
// prototype

local k = import 'k.libsonnet';
local nginx = import 'incubator/nginx/nginx.libsonnet';
Expand Down
2 changes: 1 addition & 1 deletion incubator/node/parts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nodejs",
"apiVersion": "0.0.1",
"kind": "ksonnet.io/parts",
"description": "Node is an event-driven I/O server-side JavaScript environment based on V8",
"description": "NodeJS is a JavaScript runtime built on Chrome's V8 JavaScript engine, and is designed to be lightweight and efficient. To that end, it uses an event-driven, non-blcoking I/O model. NodeJS also has a large ecosystem of open-source packages, which can be managed with the npm tool.",
"author": "ksonnet team <[email protected]>",
"contributors": [
{
Expand Down
11 changes: 7 additions & 4 deletions incubator/node/prototypes/nodejs-nonpersistent.jsonnet
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
// @apiVersion 0.0.1
// @name io.ksonnet.pkg.nodejs-nonpersistent
// @description Deploy a node.js server with no persistent volumes. The node container is
// deployed using a deployment, and exposed to the network using a service.
// @description deploys a stateless node.js app. Its source code is available
// at https://github.com/jbianquetti-nami/simple-node-app. The app runs as
// a Deployment, and is exposed to the network using a Service.
// @shortDescription A simple, stateless NodeJS app server.
// @param namespace string Namespace to specify location of app; default is 'default'
// @param name string Name of app to identify all K8s objects in this prototype
// @param namespace string Namespace (metadata) that the app resources are
// created under
// @param name string Name (metadata) to identify all resources defined by this
// prototype

local k = import 'k.libsonnet';
local nodeJS = import 'incubator/node/nodejs.libsonnet';
Expand Down
12 changes: 8 additions & 4 deletions incubator/node/prototypes/nodejs-simple.jsonnet
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
// @apiVersion 0.0.1
// @name io.ksonnet.pkg.nodejs-simple
// @description Deploy a node.js server with persistent volumes. The node container is
// deployed using a deployment, and exposed to the network using a service.
// @description deploys a node.js app backed by a PersistentVolumeClaim. Its
// source code is available at
// https://github.com/jbianquetti-nami/simple-node-app. The app runs as a
// Deployment, and is exposed to the network using a Service.
// @shortDescription A simple NodeJS app server with persistent storage.
// @param namespace string Namespace to specify location of app; default is 'default'
// @param name string Name of app to identify all K8s objects in this prototype
// @param namespace string Namespace (metadata) that the app resources are
// created under
// @param name string Name (metadata) to identify all resources defined by this
// prototype


local k = import 'k.libsonnet';
Expand Down
5 changes: 3 additions & 2 deletions incubator/postgres/parts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "postgres",
"apiVersion": "0.0.1",
"kind": "ksonnet.io/parts",
"description": "PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness.",
"description": "PostgreSQL is an open source relational database system (RDBMS) that supports SQL. It is designed with an emphasis on extensibility and compliance to the SQL standard.",
"author": "ksonnet team <[email protected]>",
"contributors": [
{
Expand Down Expand Up @@ -33,7 +33,8 @@
"name": "posgres",
"namespace": "default",
"password": "boots"
}
},
"comment": "Run a simple instance of the postgres database"
},
"license": "Apache 2.0"
}
Expand Down
14 changes: 8 additions & 6 deletions incubator/postgres/prototypes/postgres-simple.jsonnet
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// @apiVersion 0.0.1
// @name io.ksonnet.pkg.postgres-simple
// @description Deploy postgres backed by a persistent volume. Postgres container is managed by
// a deployment object and exposed to the network with a service. The
// passwords are stored in a secret.
// @description deploys a postgres instance. It runs as a Deployment backed by
// a PersistentVolumeClaim, and exposed to the network with a Service. The
// passwords are stored in a Secret.
// @shortDescription A simple Postgres deployment, backed by persistent storage.
// @param name string Name of app to attach as identifier to all components
// @param namespace string Namespace to specify destination in cluster; default is 'default'
// @param password string Password for the root/admin user.
// @param namespace string Namespace (metadata) that the postgres resources are
// created under
// @param name string Name (metadata) to identify all resources defined by this
// prototype
// @param password string Password for the root user

local k = import 'k.libsonnet';
local psg = import 'incubator/postgres/postgres.libsonnet';
Expand Down
8 changes: 3 additions & 5 deletions incubator/redis/parts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ name: redis
apiVersion: 0.0.1
kind: ksonnet.io/parts
description: >
Redis is an advanced key-value cache and store. Often referred to as
a data structure server since keys can contain structures as simple as strings,
hashes and as complex as bitmaps and hyperloglogs. This package will deploy redis
backed by a mounted persistent volume, a secret to hold your database password and
a service to expose your deployment.
Redis is an open-source, in-memory, K-V data structure store. It is often
used as a database, cache, and message broker. Redis can be run with a
master-replica setup to achieve high availability.
author: ksonnet team <[email protected]>
contributors:
- name: Tehut Getahun
Expand Down
29 changes: 0 additions & 29 deletions incubator/redis/prototypes/redis-all-features.jsonnet

This file was deleted.

38 changes: 17 additions & 21 deletions incubator/redis/prototypes/redis-persistent.jsonnet
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
// @apiVersion 0.1
// @apiVersion 0.0.1
// @name io.ksonnet.pkg.redis-persistent
// @description Redis backed by a persistent volume claim. Redis is deployed using a Kubernetes
// deployment, exposed to the network with a service, with a password stored
// in a secret.
// @param name string Name to give to each of the components
// @description deploys a version of Redis that is backed by a
// PersistentVolumeClaim. It runs as a Deployment, and is exposed to the
// network with a Service. The password is stored in a Secret.
// @shortDescription A simple Redis deployment, backed by persistent storage.
// @optionalParam redisPassword string null User password to supply to redis
// @param namespace string Namespace (metadata) that the Redis resources are
// created under
// @param name string Name (metadata) to identify all resources defined by this
// prototype
// @param redisPassword string User password to access Redis

local k = import 'k.libsonnet';
local k = import 'ksonnet.beta.2/k.libsonnet';
local redis = import 'incubator/redis/redis.libsonnet';

local namespace = import 'param://namespace';
local name = import 'param://name';
local redisPassword = import 'param://redisPassword';

local secretName =
if redisPassword != "null" then name else null;

local optionalSecret =
if redisPassword != "null"
then redis.parts.secret(name, redisPassword)
else null;

std.prune(k.core.v1.list.new([
redis.parts.deployment.persistent(name, secretName),
redis.parts.pvc(name),
redis.parts.svc.metricDisabled(name),
optionalSecret,
]))
k.core.v1.list.new([
redis.parts.deployment.persistent(namespace, name, name),
redis.parts.pvc(namespace, name),
redis.parts.secret(namespace, name, redisPassword),
redis.parts.svc.metricDisabled(namespace, name),
])
Loading