Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
CMK release - version v1.3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemeklal authored and lmdaly committed Oct 3, 2018
1 parent 5766b4c commit 9cc6022
Show file tree
Hide file tree
Showing 24 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

all: docker

version=v1.2.2
version=v1.3.0

# TODO: This target should be changed, when e2e tests will be ready and test
# entrypoint will be defined.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Options:
--cmk-cmd-list=<list> Comma seperated list of CMK sub-commands to run
on each host
[default: init,reconcile,install,discover,nodereport].
--cmk-img=<img> CMK Docker image [default: cmk:v1.2.2].
--cmk-img=<img> CMK Docker image [default: cmk:v1.3.0].
--cmk-img-pol=<pol> Image pull policy for the CMK Docker image
[default: IfNotPresent].
--conf-dir=<dir> CMK configuration directory [default: /etc/cmk].
Expand Down
14 changes: 7 additions & 7 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,21 +118,21 @@ Running Vagrant locally syncs your repository directory into `/cmk` using by def
- check whether current branch is `master` and if it's "clean"
- fetch origin
- check whether `CMK_RELEASE_VER` is set, follows proper pattern and there in no existing tag with it's value
- check whether there is no `cmk-release-v1.2.2` branch neither locally nor remotely
- get previous version string from `Makefile` (`version=v1.2.2`) and check
- check whether there is no `cmk-release-v1.3.0` branch neither locally nor remotely
- get previous version string from `Makefile` (`version=v1.3.0`) and check

If all above checks pass, script will:
- create local branch `cmk-release-v1.2.2`
- replace old release string (`v1.2.2`) with new one (`v1.2.2`) in all repo files
- commit changes with message `CMK release - version v1.2.2.`
- create local branch `cmk-release-v1.3.0`
- replace old release string (`v1.3.0`) with new one (`v1.3.0`) in all repo files
- commit changes with message `CMK release - version v1.3.0.`
- push branch to origin
- checkout to `master` branch.

**What will happen after PR gets to `master` branch**
After PR is "Rebased and merged" into `master` branch, Jenkins CI/CD will start VM based on `.release/Vagrantfile` and execute `.release/make_release.py` inside the VM.

**What will `make_release.py` do :**
- check latest commit message for `CMK release - version v1.2.2.` string
- `v1.2.2` will become tag value
- check latest commit message for `CMK release - version v1.3.0.` string
- `v1.3.0` will become tag value
- generate change log
- create release with change log based on tag found in commit message
4 changes: 2 additions & 2 deletions cmk.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
--cmk-cmd-list=<list> Comma seperated list of CMK sub-commands to run
on each host
[default: init,reconcile,install,discover,nodereport].
--cmk-img=<img> CMK Docker image [default: cmk:v1.2.2].
--cmk-img=<img> CMK Docker image [default: cmk:v1.3.0].
--cmk-img-pol=<pol> Image pull policy for the CMK Docker image
[default: IfNotPresent].
--conf-dir=<dir> CMK configuration directory [default: /etc/cmk].
Expand Down Expand Up @@ -92,7 +92,7 @@
def main():
setup_logging()

args = docopt(__doc__, version="CMK v1.2.2")
args = docopt(__doc__, version="CMK v1.3.0")
if args["cluster-init"]:
clusterinit.cluster_init(args["--host-list"], args["--all-hosts"],
args["--cmk-cmd-list"], args["--cmk-img"],
Expand Down
2 changes: 1 addition & 1 deletion docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Options:
--cmk-cmd-list=<list> Comma seperated list of CMK sub-commands to run
on each host
[default: init,reconcile,install,discover,nodereport].
--cmk-img=<img> CMK Docker image [default: cmk:v1.2.2].
--cmk-img=<img> CMK Docker image [default: cmk:v1.3.0].
--cmk-img-pol=<pol> Image pull policy for the CMK Docker image
[default: IfNotPresent].
--conf-dir=<dir> CMK configuration directory [default: /etc/cmk].
Expand Down
2 changes: 1 addition & 1 deletion docs/html/docs/cli.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ <h2>
--cmk-cmd-list=&lt;list&gt; Comma seperated list of CMK sub-commands to run
on each host
[default: init,reconcile,install,discover,nodereport].
--cmk-img=&lt;img&gt; CMK Docker image [default: cmk:v1.2.2].
--cmk-img=&lt;img&gt; CMK Docker image [default: cmk:v1.3.0].
--cmk-img-pol=&lt;pol&gt; Image pull policy for the CMK Docker image
[default: IfNotPresent].
--conf-dir=&lt;dir&gt; CMK configuration directory [default: /etc/cmk].
Expand Down
6 changes: 3 additions & 3 deletions docs/html/docs/operator.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ <h3>
<li>The subcommands described below should be run in the same order.</li>
<li>The documentation in this section assumes that the <code>CMK</code> configuration directory is <code>/etc/cmk</code> and the <code>cmk</code>
binary is installed on the host under <code>/opt/bin</code>.</li>
<li>In all the pod templates used in this section, the name of container image used is <code>cmk:v1.2.2</code>. It is expected that the
<li>In all the pod templates used in this section, the name of container image used is <code>cmk:v1.3.0</code>. It is expected that the
<code>cmk</code> container image is built and cached locally in the host. The <code>image</code> field will require modification if the
container image is hosted remotely (e.g., in <a href="https://hub.docker.com/" rel="nofollow">https://hub.docker.com/</a>).</li>
</ul>
Expand Down Expand Up @@ -487,7 +487,7 @@ <h2>
<span class="pl-ent">env</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">CMK_PROC_FS</span>
<span class="pl-ent">value</span>: <span class="pl-s"><span class="pl-pds">"</span>/host/proc<span class="pl-pds">"</span></span>
<span class="pl-ent">image</span>: <span class="pl-s">cmk:v1.2.2</span>
<span class="pl-ent">image</span>: <span class="pl-s">cmk:v1.3.0</span>
<span class="pl-ent">imagePullPolicy</span>: <span class="pl-s"><span class="pl-pds">"</span>Never<span class="pl-pds">"</span></span>
<span class="pl-ent">name</span>: <span class="pl-s">cmk-isolate-infra</span>
<span class="pl-ent">volumeMounts</span>:
Expand Down Expand Up @@ -542,7 +542,7 @@ <h3>
- "/bin/bash"
- "-c"
env:
image: cmk:v1.2.2
image: cmk:v1.3.0
imagePullPolicy: "Never"
name: cmk-isolate-infra
resources:
Expand Down
2 changes: 1 addition & 1 deletion docs/html/docs/user.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h3>
- "/bin/bash"
- "-c"
env:
image: cmk:v1.2.2
image: cmk:v1.3.0
imagePullPolicy: "Never"
name: cmk-isolate-infra
resources:
Expand Down
2 changes: 1 addition & 1 deletion docs/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ <h2>
--cmk-cmd-list=&lt;list&gt; Comma seperated list of CMK sub-commands to run
on each host
[default: init,reconcile,install,discover,nodereport].
--cmk-img=&lt;img&gt; CMK Docker image [default: cmk:v1.2.2].
--cmk-img=&lt;img&gt; CMK Docker image [default: cmk:v1.3.0].
--cmk-img-pol=&lt;pol&gt; Image pull policy for the CMK Docker image
[default: IfNotPresent].
--conf-dir=&lt;dir&gt; CMK configuration directory [default: /etc/cmk].
Expand Down
6 changes: 3 additions & 3 deletions docs/operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ for some reason.
- The subcommands described below should be run in the same order.
- The documentation in this section assumes that the `CMK` configuration directory is `/etc/cmk` and the `cmk`
binary is installed on the host under `/opt/bin`.
- In all the pod templates used in this section, the name of container image used is `cmk:v1.2.2`. It is expected that the
- In all the pod templates used in this section, the name of container image used is `cmk:v1.3.0`. It is expected that the
`cmk` container image is built and cached locally in the host. The `image` field will require modification if the
container image is hosted remotely (e.g., in https://hub.docker.com/).

Expand Down Expand Up @@ -440,7 +440,7 @@ spec:
env:
- name: CMK_PROC_FS
value: "/host/proc"
image: cmk:v1.2.2
image: cmk:v1.3.0
imagePullPolicy: "Never"
name: cmk-isolate-infra
volumeMounts:
Expand Down Expand Up @@ -493,7 +493,7 @@ spec:
- "/bin/bash"
- "-c"
env:
image: cmk:v1.2.2
image: cmk:v1.3.0
imagePullPolicy: "Never"
name: cmk-isolate-infra
resources:
Expand Down
2 changes: 1 addition & 1 deletion docs/user.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spec:
- "/bin/bash"
- "-c"
env:
image: cmk:v1.2.2
image: cmk:v1.3.0
imagePullPolicy: "Never"
name: cmk-isolate-infra
resources:
Expand Down
2 changes: 1 addition & 1 deletion resources/pods/cmk-cluster-init-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ spec:
command:
- "/bin/bash"
- "-c"
image: cmk:v1.2.2
image: cmk:v1.3.0
name: cmk-cluster-init-pod
restartPolicy: Never
2 changes: 1 addition & 1 deletion resources/pods/cmk-discover-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: cmk:v1.2.2
image: cmk:v1.3.0
name: cmk-discover-pod
volumeMounts:
- mountPath: "/etc/cmk"
Expand Down
2 changes: 1 addition & 1 deletion resources/pods/cmk-init-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
- name: NUM_SHARED_CORES
# Change this to modify the value passed to `--num-shared-cores` flag.
value: '1'
image: cmk:v1.2.2
image: cmk:v1.3.0
name: cmk-init-pod
volumeMounts:
- mountPath: "/etc/cmk"
Expand Down
2 changes: 1 addition & 1 deletion resources/pods/cmk-install-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
command:
- "/bin/bash"
- "-c"
image: cmk:v1.2.2
image: cmk:v1.3.0
name: cmk-install-pod
volumeMounts:
- mountPath: "/opt/bin"
Expand Down
6 changes: 3 additions & 3 deletions resources/pods/cmk-isolate-pod-no-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
restartPolicy: Never
containers:
- name: cmk-isolate-exclusive
image: cmk:v1.2.2
image: cmk:v1.3.0
command:
- "/bin/bash"
- "-c"
Expand All @@ -52,7 +52,7 @@ spec:
- mountPath: "/etc/cmk"
name: cmk-conf-dir
- name: cmk-isolate-shared
image: cmk:v1.2.2
image: cmk:v1.3.0
command:
- "/bin/bash"
- "-c"
Expand All @@ -70,7 +70,7 @@ spec:
- mountPath: "/etc/cmk"
name: cmk-conf-dir
- name: cmk-isolate-infra
image: cmk:v1.2.2
image: cmk:v1.3.0
command:
- "/bin/bash"
- "-c"
Expand Down
6 changes: 3 additions & 3 deletions resources/pods/cmk-isolate-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
restartPolicy: Never
containers:
- name: cmk-isolate-exclusive
image: cmk:v1.2.2
image: cmk:v1.3.0
command:
- "/bin/bash"
- "-c"
Expand All @@ -41,14 +41,14 @@ spec:
limits:
cmk.intel.com/exclusive-cores: '1'
- name: cmk-isolate-shared
image: cmk:v1.2.2
image: cmk:v1.3.0
command:
- "/bin/bash"
- "-c"
args:
- "/opt/bin/cmk isolate --conf-dir=/etc/cmk --pool=shared echo -- Hello World Shared!!!"
- name: cmk-isolate-infra
image: cmk:v1.2.2
image: cmk:v1.3.0
command:
- "/bin/bash"
- "-c"
Expand Down
6 changes: 3 additions & 3 deletions resources/pods/cmk-legacy-isolate-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
env:
- name: CMK_PROC_FS
value: "/host/proc"
image: cmk:v1.2.2
image: cmk:v1.3.0
name: cmk-isolate-exclusive
resources:
requests:
Expand All @@ -60,7 +60,7 @@ spec:
env:
- name: CMK_PROC_FS
value: "/host/proc"
image: cmk:v1.2.2
image: cmk:v1.3.0
name: cmk-isolate-shared
volumeMounts:
- mountPath: "/host/proc"
Expand All @@ -78,7 +78,7 @@ spec:
env:
- name: CMK_PROC_FS
value: "/host/proc"
image: cmk:v1.2.2
image: cmk:v1.3.0
name: cmk-isolate-infra
volumeMounts:
- mountPath: "/host/proc"
Expand Down
2 changes: 1 addition & 1 deletion resources/pods/cmk-nodereport-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: cmk:v1.2.2
image: cmk:v1.3.0
name: cmk-nodereport
volumeMounts:
- mountPath: "/host/proc"
Expand Down
2 changes: 1 addition & 1 deletion resources/pods/cmk-reconcile-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: cmk:v1.2.2
image: cmk:v1.3.0
name: cmk-reconcile
volumeMounts:
- mountPath: "/host/proc"
Expand Down
2 changes: 1 addition & 1 deletion resources/pods/cmk-uninstall-all-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: cmk:v1.2.2
image: cmk:v1.3.0
name: cmk-uninstall-all-nodes
volumeMounts:
- mountPath: "/etc/cmk"
Expand Down
2 changes: 1 addition & 1 deletion resources/pods/cmk-uninstall-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: cmk:v1.2.2
image: cmk:v1.3.0
name: cmk-uninstall-pod
volumeMounts:
- mountPath: "/etc/cmk"
Expand Down
2 changes: 1 addition & 1 deletion resources/webhook/cmk-webhook-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
command:
- "/bin/bash"
- "-c"
image: cmk:v1.2.2
image: cmk:v1.3.0
name: cmk-webhook
volumeMounts:
- mountPath: /etc/webhook
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_cmk_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_cmk_help():
--cmk-cmd-list=<list> Comma seperated list of CMK sub-commands to run
on each host
[default: init,reconcile,install,discover,nodereport].
--cmk-img=<img> CMK Docker image [default: cmk:v1.2.2].
--cmk-img=<img> CMK Docker image [default: cmk:v1.3.0].
--cmk-img-pol=<pol> Image pull policy for the CMK Docker image
[default: IfNotPresent].
--conf-dir=<dir> CMK configuration directory [default: /etc/cmk].
Expand Down

0 comments on commit 9cc6022

Please sign in to comment.