redhat-cop / dash Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Make use of a CLI library to parse input arguments.
Recommend a tool such as Corba as it is the defacto tools in many Kubernetes based projects
Because of the way that we set up and manage the tmp directory, the resources generated are being reconciled multiple times. We need to move the management and cleanup of the tmpDir into the ResourceGroup processing, so that for each ResourceGroup, we create and destroy a tmpDir.
support variable hierarchy, such that variables can be set at multiple levels, overriding as they get more specific.
@redhat-cop/openshift-applier any thoughts on syntax/implementation?
@jacobsee I was thinking we could look at folding the applier-cli functionality in here.
@redhat-cop/openshift-applier
Dash should support --dry-run
mode
Tested the Dash example. Below is the output:
[root@a1 dash-proto]# go version
go version go1.12.10 linux/amd64
[root@a1 dash-proto]# oc new-project dash-test
Now using project "dash-test" on server "https://api.test.jk308.com:6443".
You can add applications to this project with the 'new-app' command. For example, try:
oc new-app django-psql-example
to build a new example application in Python. Or use kubectl to deploy a simple Kubernetes application:
kubectl create deployment hello-node --image=gcr.io/hello-minikube-zero-install/hello-node
[root@a1 dash-proto]# oc project
Using project "dash-test" on server "https://api.test.jk308.com:6443".
[root@a1 dash-proto]# go run cmd/dash.go -i examples/default/
2019/10/19 12:39:28 Resource: Raw Manifests, Namespace:
2019/10/19 12:39:28 Source: /root/git/dash-proto/examples/default/manifests, Dest: /tmp/dash142426629
2019/10/19 12:39:28 Resource: Helm Charts, Namespace:
2019/10/19 12:39:28 Resource: OpenShift Templates, Namespace:
Running command: [kubectl apply -f /tmp/dash142426629]
deployment.apps/nginx-deployment created
[root@a1 dash-proto]# oc get pods
NAME READY STATUS RESTARTS AGE
nginx-deployment-6dd86d77d-58z2m 0/1 ContainerCreating 0 8s
[root@a1 dash-proto]# oc get pods
NAME READY STATUS RESTARTS AGE
nginx-deployment-6dd86d77d-58z2m 0/1 ContainerCreating 0 29s
[root@a1 dash-proto]# oc get pods
NAME READY STATUS RESTARTS AGE
nginx-deployment-6dd86d77d-58z2m 0/1 CrashLoopBackOff 7 14m
[root@a1 dash-proto]# oc log nginx-deployment-6dd86d77d-58z2m
log is DEPRECATED and will be removed in a future version. Use logs instead.
2019/10/19 17:52:40 [warn] 1#0: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:2
2019/10/19 17:52:40 [emerg] 1#0: mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)
nginx: [emerg] mkdir() "/var/cache/nginx/client_temp" failed (13: Permission denied)
[root@a1 dash-proto]#
Not sure what exactly we mean by this or how to handle it.
Currently we only test against 1.12. Do we want to set up a matrix of go versions that we test against? If so -- how many versions? And where do we want our starting point to be?
In order to lower the barrier, Dash should be able to run against an embedded default inventory such that simple repositories with a predictable directory structure could run without its own inventory file.
(see below for proposed default values)
verison: 3.0
resource_groups:
- name: Default Resources
resources:
- name: Raw Manifests
file: manifests/
- name: Helm Templates
template: helm/
type: helm
- name: OpenShift Templates
template: openshift-templates/
params: openshift-template-params/
We need a better basic walkthrough of using dash, and building up your first dash inventory.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.