Giter Club home page Giter Club logo

parts's Issues

Add CI

At a minimum, we want CI to invoke the Jsonnet compiler with the correct -J flags to make sure PRs don't break the examples, and perhaps also to make sure examples emit the same code as a golden version.

EFK elasticsearch-kibana fails to generate

To reproduce:

$ ks init TestApp
INFO Using context "..." from kubeconfig file "..."
INFO Creating environment "default" with namespace "prod", pointing to "version:v1.10.4" cluster at address "..." 
INFO Generating ksonnet-lib data at path '.../TestApp/lib/ksonnet-lib/v1.10.4' 

$ cd TestApp

$ ks pkg install incubator/efk
INFO Retrieved 4 files                            

$ ks generate elasticsearch-kibana kibana
ERROR flag accessed but not defined: name

$ ks generate elasticsearch-kibana kibana --name=kibana
ERROR parse preview args: unknown flag: --name

Additional details:

$ ks version
ksonnet version: dev-2018-10-17T15:51:23-0400
jsonnet version: v0.11.2
client-go version: kubernetes-1.10.4
$ cd $GOPATH/src/github.com/ksonnet/ksonnet/ && git rev-parse HEAD
1ad7bbff88cd9eb910899fc7580b2ec446ca7164
$ tree vendor/incubator/
vendor/incubator/
└── efk@40285d8a14f1ac5787e405e1023cf0c07f6aa28c
    ├── efk.libsonnet
    ├── parts.yaml
    └── prototypes
        ├── elasticsearch-kibana.jsonnet
        └── fluentd-es-sidecar.jsonnet

2 directories, 4 files

Create 0.1.0 parts

  • Update examples to use env.X
  • Update examples to use params.X
  • Update examples to include the param and environment extVars
  • Remove hard-coded namespace values and remove the namespace param.
  • Update version references

Relates to the proposal here.

istio package

A ksonnet package for istio seems like it would be very useful.

Cleanup typos in parts library descriptions

I had addressed this in #41, but that PR is too big to merge so close to launch.

I would check changes ONLY in the incubator/.../*.jsonnet files----not all of them are necessary to update, but the above PR fixes a couple of typos/bugs.

If it's too messy to look at, you can also feel free to just start from scratch though. Whichever is easiest!

Clean up repository branches

There are a lot of branches in this repository that are no longer used. If used, they can probably be moved to individual forks.

mongodb part is invalid

Users are reporting the following error:

RUNTIME ERROR: Field does not exist: withVolumes

nginx parts contain syntax error

Unknown escape sequence in string literal: \.

        |||
        server {
          listen 0.0.0.0:80;
          root /app;
          location / {
            index index.html index.php;
          }
          location ~ \.php$ {
            fastcgi_pass phpfpm-server:9000;
            fastcgi_index index.php;
            include fastcgi.conf;
          }
        }
      |||

MySql generates incorrect yaml for ConfigMap

I ran into a problem when trying to sue the MySql template

When it generates the ConfigMap it seems to add in a key under the data property called configurationFiles:

You can see the line here int he generated example
https://github.com/ksonnet/parts/blob/master/incubator/mysql/examples/generated.yaml#L4

When you try to apply this example to a cluster

apiVersion: v1
data: 
  configurationFiles: 
    mysql.cnf: |
        - [mysqld]
        skip-name-resolve
kind: ConfigMap
metadata: 
  name: mysql
  namespace: default

you get the following response

error: error validating "test.yaml": error validating data: ValidationError(ConfigMap.data.configurationFiles): invalid type for io.k8s.api.core.v1.ConfigMap.data: got "map", expected "string"; if you choose to ignore these errors, turn validation off with --validate=false

But when you remove the line containing configurationFiles: it applies sucessfully

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.