File tree 9 files changed +70
-32
lines changed
charts/workflow-controller
9 files changed +70
-32
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,19 @@ before_install:
26
26
script :
27
27
- ./hack/run-test-ci.sh
28
28
stages :
29
+ - name : docker-push
30
+ if : type NOT IN (pull_request)
29
31
- name : release
30
32
if : tag IS present
31
33
jobs :
32
34
include :
35
+ - stage : docker-push
36
+ name : docker-build
37
+ deploy :
38
+ - provider : script
39
+ script : echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin && cd $TRAVIS_BUILD_DIR && make TAG=$TRAVIS_BRANCH push
40
+ on :
41
+ branch : master
33
42
- stage : release
34
43
script :
35
44
- docker login -u "$DOCKER_USERNAME" p "$DOCKER_PASSWORD"
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ PLUGIN_PATH=./kubectl-plugin
19
19
20
20
# 0.0 shouldn't clobber any released builds
21
21
TAG = latest
22
- # PREFIX = gcr.io/google_containers/${ARTIFACT}
23
22
PREFIX = workflowcontroller/${ARTIFACT}
24
23
25
24
SOURCES := $(shell find $(SOURCEDIR ) ! -name "* _test.go" -name '* .go')
Original file line number Diff line number Diff line change @@ -25,18 +25,18 @@ spec:
25
25
args : ["--v={{ .Values.logLevel }}"]
26
26
resources :
27
27
{{ toYaml .Values.resources | indent 12 }}
28
- {{- if .Values.nodeSelector }}
29
- livenessProbe :
30
- httpGet :
31
- path : /live
32
- port : 8086
33
- initialDelaySeconds : 5
34
- periodSeconds : 5
35
- readinessProbe :
36
- httpGet :
37
- path : /ready
38
- port : 8086
39
- periodSeconds : 5
28
+ livenessProbe :
29
+ httpGet :
30
+ path : /live
31
+ port : 8086
32
+ initialDelaySeconds : 5
33
+ periodSeconds : 5
34
+ readinessProbe :
35
+ httpGet :
36
+ path : /ready
37
+ port : 8086
38
+ periodSeconds : 5
39
+ {{- if .Values.nodeSelector }}
40
40
nodeSelector :
41
41
{{ toYaml .Values.nodeSelector | indent 8 }}
42
- {{- end }}
42
+ {{- end }}
Original file line number Diff line number Diff line change @@ -6,10 +6,9 @@ logLevel: 2
6
6
apiGroupName : workflow.k8s.io
7
7
image :
8
8
registry : " "
9
- pullPolicy : Always
9
+ pullPolicy : IfNotPresent
10
10
account : " workflowcontroller"
11
- name : " "
12
- tag : " "
11
+ tag : master
13
12
resources : {}
14
13
# We usually recommend not to specify default resources and to leave this as a conscious
15
14
# choice for the user. This also increases chances charts run on environments with little
Original file line number Diff line number Diff line change 18
18
image : amadeusitgroup/workflow-controller:latest
19
19
imagePullPolicy : Always
20
20
args : ["--v=2"]
21
+ livenessProbe :
22
+ httpGet :
23
+ path : /live
24
+ port : 8086
25
+ initialDelaySeconds : 5
26
+ periodSeconds : 5
27
+ readinessProbe :
28
+ httpGet :
29
+ path : /ready
30
+ port : 8086
31
+ periodSeconds : 5
Original file line number Diff line number Diff line change 8
8
resources :
9
9
- customresourcedefinitions
10
10
verbs : ["*"]
11
- - apiGroups : ["dag.example.com "]
11
+ - apiGroups : ["workflow.k8s.io "]
12
12
resources :
13
13
- workflows
14
+ - cronworkflows
15
+ - daemonsetjobs
14
16
verbs : ["*"]
15
17
- apiGroups : ["batch"]
16
18
resources :
Original file line number Diff line number Diff line change @@ -27,15 +27,13 @@ $ kubectl create -f .../examples/hello_workflow/workflow.yaml
27
27
28
28
At this point the workflow-controller will start to handle the jobs.
29
29
30
-
31
- ### in a kubernetes pod
32
-
30
+ ### Simple deployment
33
31
34
32
To run ` workflow-controller ` in a Kubernetes pod you should run this command
35
33
36
34
``` shell
37
- $ kubectl create -f .../deployment/k8s/workflow-controller-rbac.yaml
38
- $ kubectl create -f .../deployment/k8s/workflow-controller-dpl.yaml
35
+ $ kubectl create -f .../deployment/k8s/workflow-controller-rbac.yaml -n kube-system
36
+ $ kubectl create -f .../deployment/k8s/workflow-controller-dpl.yaml -n kube-system
39
37
```
40
38
41
39
Then you may want to test a workflow example like this:
@@ -44,8 +42,22 @@ Then you may want to test a workflow example like this:
44
42
$ kubectl create -f .../examples/hello_workflow/workflow.yaml
45
43
```
46
44
47
- ### in an openshift cluster
48
- TODO
45
+ ## Helm deployment
46
+
47
+ You can found in the ` charts ` folder the ` workflow-controller ` the helm chart for deploying the Kubernetes ` workflow-controller ` controller.
48
+
49
+ ``` shell
50
+ $ helm install --name wf charts/workflow-controller
51
+ NAME: wf
52
+ LAST DEPLOYED: Tue Jan 9 23:41:13 2018
53
+ NAMESPACE: default
54
+ STATUS: DEPLOYED
55
+
56
+ RESOURCES:
57
+ ==> v1beta1/Deployment
58
+ NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
59
+ wf-workflow-controller 1 1 1 0 0s
60
+ ```
49
61
50
62
51
63
### Developper
@@ -56,7 +68,7 @@ This project is using [goreleaser](https://goreleaser.com/) and an additional sc
56
68
57
69
For starting the delivery, you need to clone this repository, then:
58
70
59
- ``` bash
71
+ ``` shell
60
72
zsh hack/release.sh < version> < remove-git>
61
73
```
62
74
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
if [ -z " $1 " ]; then
4
- echo " please provide the version as parameter: ./helm-release.sh <version>\n"
4
+ echo " please provide the version as parameter: ./helm-release.sh <version> <chart-name>\n"
5
+ exit 1
6
+ fi
7
+
8
+ if [ -z " $2 " ]; then
9
+ echo " please provide the chart name as parameter: ./helm-release.sh <version> <chart-name>\n"
5
10
exit 1
6
11
fi
7
12
8
13
cd $( git rev-parse --show-toplevel)
9
- helm package --version " $1 " charts/workflow-controller
10
- mv " helm-test-$1 .tgz" docs/
14
+ sed " s/tag: master/tag: $1 /" chart/$2 /values.yaml > charts/$2 /values.tmp.yaml; mv charts/$2 /values.tmp.yaml charts/$2 /values.yaml
15
+ helm package --version " $1 " charts/$2
16
+ mv " $2 -$1 .tgz" " docs/helm-$2 -$1 .tgz"
17
+ git checkout -- charts/$2 /values.yaml
11
18
helm repo index docs --url https://amadeusitgroup.github.io/workflow-controller/ --merge docs/index.yaml
12
- git add --all docs/
19
+ git add --all docs/
Original file line number Diff line number Diff line change @@ -11,11 +11,10 @@ if [ -n "$2" ]; then
11
11
GIT_REMOTE=$2
12
12
fi
13
13
14
- zsh $GIT_ROOT /hack/helm-release.sh $1
14
+ zsh $GIT_ROOT /hack/helm-release.sh $1 workflow-controller
15
15
16
16
# Update CHANGELOG.md file
17
17
ssed -i.bak " 5i## Release $1 \n" CHANGELOG.md
18
18
19
19
git commit -am " release $1 "
20
20
git tag -f $1
21
- git push -f --tags $GIT_REMOTE master
You can’t perform that action at this time.
0 commit comments