chore: bump version to v0.8.0-beta (#814)
- add dependabot - add codespell - update operator version in helm chart
This commit is contained in:
parent
00fc29e772
commit
38eaa0fc55
|
|
@ -0,0 +1,14 @@
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "gomod"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
||||||
|
- package-ecosystem: "npm"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "daily"
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
name: codespell
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, ready_for_review, reopened]
|
||||||
|
jobs:
|
||||||
|
codespell:
|
||||||
|
name: codespell
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: Codespell
|
||||||
|
uses: codespell-project/actions-codespell@v1
|
||||||
|
with:
|
||||||
|
check_filenames: true
|
||||||
|
ignore_words_list: aks,ags,startin
|
||||||
|
skip: "*.js,package-lock.json,*.lock,*/Font-Awesome/*,*.toml,*.svg,*assets/vendor/bootstrap*"
|
||||||
|
|
@ -1 +1 @@
|
||||||
v0.7.1
|
v0.8.0-beta
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,8 @@ trap "test -d "${BACKUP_TMP_DIR}" && rm -fr "${BACKUP_TMP_DIR}"" EXIT ERR SIGINT
|
||||||
backup_number=$1
|
backup_number=$1
|
||||||
echo "Running backup"
|
echo "Running backup"
|
||||||
|
|
||||||
# config.xml in a job directory is a config file that shouldnt be backed up
|
# config.xml in a job directory is a config file that shouldn't be backed up
|
||||||
# config.xml in child directores is state that should. For example-
|
# config.xml in child directories is state that should. For example-
|
||||||
# branches/myorg/branches/myrepo/branches/master/config.xml should be retained while
|
# branches/myorg/branches/myrepo/branches/master/config.xml should be retained while
|
||||||
# branches/myorg/config.xml should not
|
# branches/myorg/config.xml should not
|
||||||
tar -C "${JENKINS_HOME}" -czf "${BACKUP_TMP_DIR}/${backup_number}.tar.gz" --exclude jobs/*/workspace* --no-wildcards-match-slash --anchored --exclude jobs/*/config.xml -c jobs && \
|
tar -C "${JENKINS_HOME}" -czf "${BACKUP_TMP_DIR}/${backup_number}.tar.gz" --exclude jobs/*/workspace* --no-wildcards-match-slash --anchored --exclude jobs/*/config.xml -c jobs && \
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ do
|
||||||
sleep 10
|
sleep 10
|
||||||
if [[ ! -z "${BACKUP_COUNT}" ]]; then
|
if [[ ! -z "${BACKUP_COUNT}" ]]; then
|
||||||
echo "Trimming to only ${BACKUP_COUNT} recent backups in preparation for new backup"
|
echo "Trimming to only ${BACKUP_COUNT} recent backups in preparation for new backup"
|
||||||
#TODO: add the list of exceding backup before delete
|
#TODO: add the list of exceeding backup before delete
|
||||||
find ${BACKUP_DIR} -maxdepth 1 -name '*.tar.gz' -exec basename {} \; | sort -gr | tail -n +$((BACKUP_COUNT +1)) | xargs -I '{}' rm ${BACKUP_DIR}/'{}'
|
find ${BACKUP_DIR} -maxdepth 1 -name '*.tar.gz' -exec basename {} \; | sort -gr | tail -n +$((BACKUP_COUNT +1)) | xargs -I '{}' rm ${BACKUP_DIR}/'{}'
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ Kubernetes native operator which fully manages Jenkins on Kubernetes
|
||||||
| jenkins.volumes[0].persistentVolumeClaim.claimName | string | `"jenkins-backup"` | |
|
| jenkins.volumes[0].persistentVolumeClaim.claimName | string | `"jenkins-backup"` | |
|
||||||
| operator.affinity | object | `{}` | |
|
| operator.affinity | object | `{}` | |
|
||||||
| operator.fullnameOverride | string | `""` | |
|
| operator.fullnameOverride | string | `""` | |
|
||||||
| operator.image | string | `"quay.io/jenkins-kubernetes-operator/operator:9fd053b"` | |
|
| operator.image | string | `"quay.io/jenkins-kubernetes-operator/operator:v0.8.0-beta"` | |
|
||||||
| operator.imagePullPolicy | string | `"IfNotPresent"` | |
|
| operator.imagePullPolicy | string | `"IfNotPresent"` | |
|
||||||
| operator.imagePullSecrets | list | `[]` | |
|
| operator.imagePullSecrets | list | `[]` | |
|
||||||
| operator.nameOverride | string | `""` | |
|
| operator.nameOverride | string | `""` | |
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ jenkins:
|
||||||
# See https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/configuration/#pulling-docker-images-from-private-repositories for more info
|
# See https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/configuration/#pulling-docker-images-from-private-repositories for more info
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
|
|
||||||
# notifications is feature that notify user about Jenkins reconcilation status
|
# notifications is feature that notify user about Jenkins reconciliation status
|
||||||
# See https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/ for more info
|
# See https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/ for more info
|
||||||
notifications: []
|
notifications: []
|
||||||
|
|
||||||
|
|
@ -291,7 +291,7 @@ operator:
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
|
|
||||||
# image is the name (and tag) of the Jenkins Operator image
|
# image is the name (and tag) of the Jenkins Operator image
|
||||||
image: quay.io/jenkins-kubernetes-operator/operator:9fd053b
|
image: quay.io/jenkins-kubernetes-operator/operator:v0.8.0-beta
|
||||||
|
|
||||||
# imagePullPolicy defines policy for pulling images
|
# imagePullPolicy defines policy for pulling images
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
|
|
||||||
|
|
@ -995,8 +995,8 @@ bin/manager --jenkins-api-hostname<span style="color:#ce5c00;font-weight:bold">=
|
||||||
<span style="color:#ce5c00;font-weight:bold">{</span><span style="color:#4e9a06">"level"</span>:<span style="color:#4e9a06">"info"</span>,<span style="color:#4e9a06">"ts"</span>:1612790691.322817,<span style="color:#4e9a06">"logger"</span>:<span style="color:#4e9a06">"controller-jenkins"</span>,<span style="color:#4e9a06">"msg"</span>:<span style="color:#4e9a06">"Jenkins Operator version has changed, actual '' new 'v0.5.0'"</span>,<span style="color:#4e9a06">"cr"</span>:<span style="color:#4e9a06">"jenkins-example"</span><span style="color:#ce5c00;font-weight:bold">}</span>
|
<span style="color:#ce5c00;font-weight:bold">{</span><span style="color:#4e9a06">"level"</span>:<span style="color:#4e9a06">"info"</span>,<span style="color:#4e9a06">"ts"</span>:1612790691.322817,<span style="color:#4e9a06">"logger"</span>:<span style="color:#4e9a06">"controller-jenkins"</span>,<span style="color:#4e9a06">"msg"</span>:<span style="color:#4e9a06">"Jenkins Operator version has changed, actual '' new 'v0.5.0'"</span>,<span style="color:#4e9a06">"cr"</span>:<span style="color:#4e9a06">"jenkins-example"</span><span style="color:#ce5c00;font-weight:bold">}</span>
|
||||||
<span style="color:#ce5c00;font-weight:bold">{</span><span style="color:#4e9a06">"level"</span>:<span style="color:#4e9a06">"info"</span>,<span style="color:#4e9a06">"ts"</span>:1612790691.3228202,<span style="color:#4e9a06">"logger"</span>:<span style="color:#4e9a06">"controller-jenkins"</span>,<span style="color:#4e9a06">"msg"</span>:<span style="color:#4e9a06">"Jenkins CR has been replaced"</span>,<span style="color:#4e9a06">"cr"</span>:<span style="color:#4e9a06">"jenkins-example"</span><span style="color:#ce5c00;font-weight:bold">}</span>
|
<span style="color:#ce5c00;font-weight:bold">{</span><span style="color:#4e9a06">"level"</span>:<span style="color:#4e9a06">"info"</span>,<span style="color:#4e9a06">"ts"</span>:1612790691.3228202,<span style="color:#4e9a06">"logger"</span>:<span style="color:#4e9a06">"controller-jenkins"</span>,<span style="color:#4e9a06">"msg"</span>:<span style="color:#4e9a06">"Jenkins CR has been replaced"</span>,<span style="color:#4e9a06">"cr"</span>:<span style="color:#4e9a06">"jenkins-example"</span><span style="color:#ce5c00;font-weight:bold">}</span>
|
||||||
<span style="color:#ce5c00;font-weight:bold">{</span><span style="color:#4e9a06">"level"</span>:<span style="color:#4e9a06">"info"</span>,<span style="color:#4e9a06">"ts"</span>:1612790695.8789551,<span style="color:#4e9a06">"logger"</span>:<span style="color:#4e9a06">"controller-jenkins"</span>,<span style="color:#4e9a06">"msg"</span>:<span style="color:#4e9a06">"Creating a new Jenkins Master Pod default/jenkins-jenkins-example"</span>,<span style="color:#4e9a06">"cr"</span>:<span style="color:#4e9a06">"jenkins-example"</span><span style="color:#ce5c00;font-weight:bold">}</span>
|
<span style="color:#ce5c00;font-weight:bold">{</span><span style="color:#4e9a06">"level"</span>:<span style="color:#4e9a06">"info"</span>,<span style="color:#4e9a06">"ts"</span>:1612790695.8789551,<span style="color:#4e9a06">"logger"</span>:<span style="color:#4e9a06">"controller-jenkins"</span>,<span style="color:#4e9a06">"msg"</span>:<span style="color:#4e9a06">"Creating a new Jenkins Master Pod default/jenkins-jenkins-example"</span>,<span style="color:#4e9a06">"cr"</span>:<span style="color:#4e9a06">"jenkins-example"</span><span style="color:#ce5c00;font-weight:bold">}</span>
|
||||||
<span style="color:#ce5c00;font-weight:bold">{</span><span style="color:#4e9a06">"level"</span>:<span style="color:#4e9a06">"warn"</span>,<span style="color:#4e9a06">"ts"</span>:1612790817.9423082,<span style="color:#4e9a06">"logger"</span>:<span style="color:#4e9a06">"controller-jenkins"</span>,<span style="color:#4e9a06">"msg"</span>:<span style="color:#4e9a06">"Reconcile loop failed: couldn't init Jenkins API client: Get \"http://192.168.99.254:31998/api/json\": dial tcp 192.168.99.254:31998: connect: connection refused"</span>,<span style="color:#4e9a06">"cr"</span>:<span style="color:#4e9a06">"jenkins-example"</span><span style="color:#ce5c00;font-weight:bold">}</span>
|
<span style="color:#ce5c00;font-weight:bold">{</span><span style="color:#4e9a06">"level"</span>:<span style="color:#4e9a06">"warn"</span>,<span style="color:#4e9a06">"ts"</span>:1612790817.9423082,<span style="color:#4e9a06">"logger"</span>:<span style="color:#4e9a06">"controller-jenkins"</span>,<span style="color:#4e9a06">"msg"</span>:<span style="color:#4e9a06">"Reconcile loop failed: couldn't't init Jenkins API client: Get \"http://192.168.99.254:31998/api/json\": dial tcp 192.168.99.254:31998: connect: connection refused"</span>,<span style="color:#4e9a06">"cr"</span>:<span style="color:#4e9a06">"jenkins-example"</span><span style="color:#ce5c00;font-weight:bold">}</span>
|
||||||
<span style="color:#ce5c00;font-weight:bold">{</span><span style="color:#4e9a06">"level"</span>:<span style="color:#4e9a06">"warn"</span>,<span style="color:#4e9a06">"ts"</span>:1612790817.9998221,<span style="color:#4e9a06">"logger"</span>:<span style="color:#4e9a06">"controller-jenkins"</span>,<span style="color:#4e9a06">"msg"</span>:<span style="color:#4e9a06">"Reconcile loop failed: couldn't init Jenkins API client: Get \"http://192.168.99.254:31998/api/json\": dial tcp 192.168.99.254:31998: connect: connection refused"</span>,<span style="color:#4e9a06">"cr"</span>:<span style="color:#4e9a06">"jenkins-example"</span><span style="color:#ce5c00;font-weight:bold">}</span>
|
<span style="color:#ce5c00;font-weight:bold">{</span><span style="color:#4e9a06">"level"</span>:<span style="color:#4e9a06">"warn"</span>,<span style="color:#4e9a06">"ts"</span>:1612790817.9998221,<span style="color:#4e9a06">"logger"</span>:<span style="color:#4e9a06">"controller-jenkins"</span>,<span style="color:#4e9a06">"msg"</span>:<span style="color:#4e9a06">"Reconcile loop failed: couldn't't init Jenkins API client: Get \"http://192.168.99.254:31998/api/json\": dial tcp 192.168.99.254:31998: connect: connection refused"</span>,<span style="color:#4e9a06">"cr"</span>:<span style="color:#4e9a06">"jenkins-example"</span><span style="color:#ce5c00;font-weight:bold">}</span>
|
||||||
<span style="color:#ce5c00;font-weight:bold">{</span><span style="color:#4e9a06">"level"</span>:<span style="color:#4e9a06">"info"</span>,<span style="color:#4e9a06">"ts"</span>:1612790818.581316,<span style="color:#4e9a06">"logger"</span>:<span style="color:#4e9a06">"controller-jenkins"</span>,<span style="color:#4e9a06">"msg"</span>:<span style="color:#4e9a06">"base-groovy ConfigMap 'jenkins-operator-base-configuration-jenkins-example' name '1-basic-settings.groovy' running groovy script"</span>,<span style="color:#4e9a06">"cr"</span>:<span style="color:#4e9a06">"jenkins-example"</span><span style="color:#ce5c00;font-weight:bold">}</span>
|
<span style="color:#ce5c00;font-weight:bold">{</span><span style="color:#4e9a06">"level"</span>:<span style="color:#4e9a06">"info"</span>,<span style="color:#4e9a06">"ts"</span>:1612790818.581316,<span style="color:#4e9a06">"logger"</span>:<span style="color:#4e9a06">"controller-jenkins"</span>,<span style="color:#4e9a06">"msg"</span>:<span style="color:#4e9a06">"base-groovy ConfigMap 'jenkins-operator-base-configuration-jenkins-example' name '1-basic-settings.groovy' running groovy script"</span>,<span style="color:#4e9a06">"cr"</span>:<span style="color:#4e9a06">"jenkins-example"</span><span style="color:#ce5c00;font-weight:bold">}</span>
|
||||||
...
|
...
|
||||||
<span style="color:#ce5c00;font-weight:bold">{</span><span style="color:#4e9a06">"level"</span>:<span style="color:#4e9a06">"info"</span>,<span style="color:#4e9a06">"ts"</span>:1612790820.9473379,<span style="color:#4e9a06">"logger"</span>:<span style="color:#4e9a06">"controller-jenkins"</span>,<span style="color:#4e9a06">"msg"</span>:<span style="color:#4e9a06">"base-groovy ConfigMap 'jenkins-operator-base-configuration-jenkins-example' name '8-disable-job-dsl-script-approval.groovy' running groovy script"</span>,<span style="color:#4e9a06">"cr"</span>:<span style="color:#4e9a06">"jenkins-example"</span><span style="color:#ce5c00;font-weight:bold">}</span>
|
<span style="color:#ce5c00;font-weight:bold">{</span><span style="color:#4e9a06">"level"</span>:<span style="color:#4e9a06">"info"</span>,<span style="color:#4e9a06">"ts"</span>:1612790820.9473379,<span style="color:#4e9a06">"logger"</span>:<span style="color:#4e9a06">"controller-jenkins"</span>,<span style="color:#4e9a06">"msg"</span>:<span style="color:#4e9a06">"base-groovy ConfigMap 'jenkins-operator-base-configuration-jenkins-example' name '8-disable-job-dsl-script-approval.groovy' running groovy script"</span>,<span style="color:#4e9a06">"cr"</span>:<span style="color:#4e9a06">"jenkins-example"</span><span style="color:#ce5c00;font-weight:bold">}</span>
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,7 @@ Used if you want to pull images from private repository
|
||||||
[]
|
[]
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
Notifications is feature that notify user about Jenkins reconcilation status
|
Notifications is feature that notify user about Jenkins reconciliation status
|
||||||
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -1156,7 +1156,7 @@ Used if you want to pull images from private repository
|
||||||
[]
|
[]
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
Notifications is feature that notify user about Jenkins reconcilation status
|
Notifications is feature that notify user about Jenkins reconciliation status
|
||||||
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -985,7 +985,7 @@ spec:
|
||||||
kubectl get secret jenkins-operator-credentials-<cr_name> -o <span style="color:#4e9a06">'jsonpath={.data.password}'</span> <span style="color:#000;font-weight:bold">|</span> base64 -d</code></pre></div>
|
kubectl get secret jenkins-operator-credentials-<cr_name> -o <span style="color:#4e9a06">'jsonpath={.data.password}'</span> <span style="color:#000;font-weight:bold">|</span> base64 -d</code></pre></div>
|
||||||
<p>Connect to the Jenkins Operator (minikube):</p>
|
<p>Connect to the Jenkins Operator (minikube):</p>
|
||||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">minikube service jenkins-operator-http-<cr_name> --url</code></pre></div>
|
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">minikube service jenkins-operator-http-<cr_name> --url</code></pre></div>
|
||||||
<p>Connect to the Jenkins intance (actual Kubernetes cluster):</p>
|
<p>Connect to the Jenkins instance (actual Kubernetes cluster):</p>
|
||||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">kubectl port-forward jenkins-<cr_name> 8080:8080</code></pre></div>
|
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">kubectl port-forward jenkins-<cr_name> 8080:8080</code></pre></div>
|
||||||
<p>Then open browser with address <code>http://localhost:8080</code>.
|
<p>Then open browser with address <code>http://localhost:8080</code>.
|
||||||
<img src="/kubernetes-operator/img/jenkins.png" alt="jenkins" /></p>
|
<img src="/kubernetes-operator/img/jenkins.png" alt="jenkins" /></p>
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ spec:
|
||||||
kubectl get secret jenkins-operator-credentials-&lt;cr_name&gt; -o <span style="color:#4e9a06">&#39;jsonpath={.data.password}&#39;</span> <span style="color:#000;font-weight:bold">|</span> base64 -d</code></pre></div>
|
kubectl get secret jenkins-operator-credentials-&lt;cr_name&gt; -o <span style="color:#4e9a06">&#39;jsonpath={.data.password}&#39;</span> <span style="color:#000;font-weight:bold">|</span> base64 -d</code></pre></div>
|
||||||
<p>Connect to the Jenkins Operator (minikube):</p>
|
<p>Connect to the Jenkins Operator (minikube):</p>
|
||||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">minikube service jenkins-operator-http-&lt;cr_name&gt; --url</code></pre></div>
|
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">minikube service jenkins-operator-http-&lt;cr_name&gt; --url</code></pre></div>
|
||||||
<p>Connect to the Jenkins intance (actual Kubernetes cluster):</p>
|
<p>Connect to the Jenkins instance (actual Kubernetes cluster):</p>
|
||||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">kubectl port-forward jenkins-&lt;cr_name&gt; 8080:8080</code></pre></div>
|
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">kubectl port-forward jenkins-&lt;cr_name&gt; 8080:8080</code></pre></div>
|
||||||
<p>Then open browser with address <code>http://localhost:8080</code>.
|
<p>Then open browser with address <code>http://localhost:8080</code>.
|
||||||
<img src="https://jenkinsci.github.io/kubernetes-operator/kubernetes-operator/img/jenkins.png" alt="jenkins" /></p>
|
<img src="https://jenkinsci.github.io/kubernetes-operator/kubernetes-operator/img/jenkins.png" alt="jenkins" /></p>
|
||||||
|
|
|
||||||
|
|
@ -841,7 +841,7 @@ and this mechanism was replaced since <code>v0.2.0</code> with Groov
|
||||||
|
|
||||||
<p>As a result, the <strong>Jenkins</strong> configuration jobs (&ldquo;Configure Seed Jobs&rdquo;, &ldquo;jenkins-operator-base-configuration&rdquo;, &ldquo;jenkins-operator-user-configuration&rdquo;) are no longer visible in <strong>Jenkins</strong> UI.</p>
|
<p>As a result, the <strong>Jenkins</strong> configuration jobs (&ldquo;Configure Seed Jobs&rdquo;, &ldquo;jenkins-operator-base-configuration&rdquo;, &ldquo;jenkins-operator-user-configuration&rdquo;) are no longer visible in <strong>Jenkins</strong> UI.</p>
|
||||||
|
|
||||||
<p>In <code>v0.1.x</code> you can see if any of the configuration jobs failed or succeded in the <strong>Jenkins</strong> UI (job build logs).
|
<p>In <code>v0.1.x</code> you can see if any of the configuration jobs failed or succeeded in the <strong>Jenkins</strong> UI (job build logs).
|
||||||
Instead, you can make sure the operator is running correctly by inspecting its logs, e.g.:</p>
|
Instead, you can make sure the operator is running correctly by inspecting its logs, e.g.:</p>
|
||||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">$ kubectl -n logs deployment/jenkins-operator</code></pre></div>
|
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">$ kubectl -n logs deployment/jenkins-operator</code></pre></div>
|
||||||
<h4 id="making-user-configuration-sources-configurable">Making User Configuration sources configurable</h4>
|
<h4 id="making-user-configuration-sources-configurable">Making User Configuration sources configurable</h4>
|
||||||
|
|
|
||||||
|
|
@ -962,7 +962,7 @@ and this mechanism was replaced since <code>v0.2.0</code> with Groovy scripts im
|
||||||
|
|
||||||
<p>As a result, the <strong>Jenkins</strong> configuration jobs (“Configure Seed Jobs”, “jenkins-operator-base-configuration”, “jenkins-operator-user-configuration”) are no longer visible in <strong>Jenkins</strong> UI.</p>
|
<p>As a result, the <strong>Jenkins</strong> configuration jobs (“Configure Seed Jobs”, “jenkins-operator-base-configuration”, “jenkins-operator-user-configuration”) are no longer visible in <strong>Jenkins</strong> UI.</p>
|
||||||
|
|
||||||
<p>In <code>v0.1.x</code> you can see if any of the configuration jobs failed or succeded in the <strong>Jenkins</strong> UI (job build logs).
|
<p>In <code>v0.1.x</code> you can see if any of the configuration jobs failed or succeeded in the <strong>Jenkins</strong> UI (job build logs).
|
||||||
Instead, you can make sure the operator is running correctly by inspecting its logs, e.g.:</p>
|
Instead, you can make sure the operator is running correctly by inspecting its logs, e.g.:</p>
|
||||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">$ kubectl -n logs deployment/jenkins-operator</code></pre></div>
|
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">$ kubectl -n logs deployment/jenkins-operator</code></pre></div>
|
||||||
<h4 id="making-user-configuration-sources-configurable">Making User Configuration sources configurable</h4>
|
<h4 id="making-user-configuration-sources-configurable">Making User Configuration sources configurable</h4>
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,7 @@ Used if you want to pull images from private repository
|
||||||
[]
|
[]
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
Notifications is feature that notify user about Jenkins reconcilation status
|
Notifications is feature that notify user about Jenkins reconciliation status
|
||||||
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -1155,7 +1155,7 @@ Used if you want to pull images from private repository
|
||||||
[]
|
[]
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
Notifications is feature that notify user about Jenkins reconcilation status
|
Notifications is feature that notify user about Jenkins reconciliation status
|
||||||
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,7 @@ Used if you want to pull images from private repository
|
||||||
[]
|
[]
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
Notifications is feature that notify user about Jenkins reconcilation status
|
Notifications is feature that notify user about Jenkins reconciliation status
|
||||||
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -1213,7 +1213,7 @@ Used if you want to pull images from private repository
|
||||||
[]
|
[]
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
Notifications is feature that notify user about Jenkins reconcilation status
|
Notifications is feature that notify user about Jenkins reconciliation status
|
||||||
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -2214,7 +2214,7 @@ spec:
|
||||||
kubectl get secret jenkins-operator-credentials-&lt;cr_name&gt; -o <span style="color:#4e9a06">&#39;jsonpath={.data.password}&#39;</span> <span style="color:#000;font-weight:bold">|</span> base64 -d</code></pre></div>
|
kubectl get secret jenkins-operator-credentials-&lt;cr_name&gt; -o <span style="color:#4e9a06">&#39;jsonpath={.data.password}&#39;</span> <span style="color:#000;font-weight:bold">|</span> base64 -d</code></pre></div>
|
||||||
<p>Connect to the Jenkins Operator (minikube):</p>
|
<p>Connect to the Jenkins Operator (minikube):</p>
|
||||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">minikube service jenkins-operator-http-&lt;cr_name&gt; --url</code></pre></div>
|
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">minikube service jenkins-operator-http-&lt;cr_name&gt; --url</code></pre></div>
|
||||||
<p>Connect to the Jenkins intance (actual Kubernetes cluster):</p>
|
<p>Connect to the Jenkins instance (actual Kubernetes cluster):</p>
|
||||||
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">kubectl port-forward jenkins-&lt;cr_name&gt; 8080:8080</code></pre></div>
|
<div class="highlight"><pre style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-bash" data-lang="bash">kubectl port-forward jenkins-&lt;cr_name&gt; 8080:8080</code></pre></div>
|
||||||
<p>Then open browser with address <code>http://localhost:8080</code>.
|
<p>Then open browser with address <code>http://localhost:8080</code>.
|
||||||
<img src="https://jenkinsci.github.io/kubernetes-operator/kubernetes-operator/img/jenkins.png" alt="jenkins" /></p>
|
<img src="https://jenkinsci.github.io/kubernetes-operator/kubernetes-operator/img/jenkins.png" alt="jenkins" /></p>
|
||||||
|
|
|
||||||
|
|
@ -158,7 +158,7 @@ func verifyJenkinsMasterPodAttributes(jenkins *v1alpha2.Jenkins) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !volumeFound {
|
if !volumeFound {
|
||||||
Fail(fmt.Sprintf("Missing volume '+%v', actaul volumes '%+v'", expectedVolume, jenkinsPod.Spec.Volumes))
|
Fail(fmt.Sprintf("Missing volume '+%v', actual volumes '%+v'", expectedVolume, jenkinsPod.Spec.Volumes))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ func printKubernetesPods(namespace string) {
|
||||||
func ShowLogsIfTestHasFailed(failed bool, namespace string) {
|
func ShowLogsIfTestHasFailed(failed bool, namespace string) {
|
||||||
if failed {
|
if failed {
|
||||||
const defaultNamespace = "default"
|
const defaultNamespace = "default"
|
||||||
_, _ = fmt.Fprintf(ginkgo.GinkgoWriter, "Test failed. Bellow here you can check logs:")
|
_, _ = fmt.Fprintf(ginkgo.GinkgoWriter, "Test failed. Below here you can check logs:")
|
||||||
|
|
||||||
printKubernetesEvents(namespace)
|
printKubernetesEvents(namespace)
|
||||||
printKubernetesEvents(defaultNamespace)
|
printKubernetesEvents(defaultNamespace)
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ type portForwardToPodRequest struct {
|
||||||
localPort int
|
localPort int
|
||||||
// podPort is the target port for the pod
|
// podPort is the target port for the pod
|
||||||
podPort int
|
podPort int
|
||||||
// Steams configures where to write or read input from
|
// Streams configures where to write or read input from
|
||||||
streams genericclioptions.IOStreams
|
streams genericclioptions.IOStreams
|
||||||
// stopCh is the channel used to manage the port forward lifecycle
|
// stopCh is the channel used to manage the port forward lifecycle
|
||||||
stopCh <-chan struct{}
|
stopCh <-chan struct{}
|
||||||
|
|
|
||||||
|
|
@ -235,7 +235,7 @@ Used if you want to pull images from private repository
|
||||||
[]
|
[]
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
Notifications is feature that notify user about Jenkins reconcilation status
|
Notifications is feature that notify user about Jenkins reconciliation status
|
||||||
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
@ -986,4 +986,3 @@ spec:
|
||||||
To enable security validation in the Jenkins Custom Resource, set
|
To enable security validation in the Jenkins Custom Resource, set
|
||||||
|
|
||||||
>jenkins.ValidateSecurityWarnings=true
|
>jenkins.ValidateSecurityWarnings=true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ Connect to the Jenkins Operator (minikube):
|
||||||
minikube service jenkins-operator-http-<cr_name> --url
|
minikube service jenkins-operator-http-<cr_name> --url
|
||||||
```
|
```
|
||||||
|
|
||||||
Connect to the Jenkins intance (actual Kubernetes cluster):
|
Connect to the Jenkins instance (actual Kubernetes cluster):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl port-forward jenkins-<cr_name> 8080:8080
|
kubectl port-forward jenkins-<cr_name> 8080:8080
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ and this mechanism was replaced since `v0.2.0` with Groovy scripts implementing
|
||||||
|
|
||||||
As a result, the **Jenkins** configuration jobs ("Configure Seed Jobs", "jenkins-operator-base-configuration", "jenkins-operator-user-configuration") are no longer visible in **Jenkins** UI.
|
As a result, the **Jenkins** configuration jobs ("Configure Seed Jobs", "jenkins-operator-base-configuration", "jenkins-operator-user-configuration") are no longer visible in **Jenkins** UI.
|
||||||
|
|
||||||
In `v0.1.x` you can see if any of the configuration jobs failed or succeded in the **Jenkins** UI (job build logs).
|
In `v0.1.x` you can see if any of the configuration jobs failed or succeeded in the **Jenkins** UI (job build logs).
|
||||||
Instead, you can make sure the operator is running correctly by inspecting its logs, e.g.:
|
Instead, you can make sure the operator is running correctly by inspecting its logs, e.g.:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|
|
||||||
|
|
@ -235,7 +235,7 @@ Used if you want to pull images from private repository
|
||||||
[]
|
[]
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
Notifications is feature that notify user about Jenkins reconcilation status
|
Notifications is feature that notify user about Jenkins reconciliation status
|
||||||
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
<a href="https://jenkinsci.github.io/kubernetes-operator/docs/getting-started/latest/notifications/">More info</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue