Control cert-manager installation with a separate config value (#972)
Co-authored-by: Rafał Krzewski <rafal.krzewski@caltha.eu> Co-authored-by: Luigi Operoso <40476330+brokenpip3@users.noreply.github.com> Co-authored-by: brokenpip3 <brokenpip3@gmail.com>
This commit is contained in:
parent
6dd45eebf0
commit
cf49a4a28f
|
|
@ -24,10 +24,17 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-python@v5.0.0
|
- uses: actions/setup-python@v5.0.0
|
||||||
|
- uses: DeterminateSystems/nix-installer-action@v10
|
||||||
|
with:
|
||||||
|
diagnostic-endpoint: ""
|
||||||
|
- uses: DeterminateSystems/magic-nix-cache-action@v4
|
||||||
|
with:
|
||||||
|
diagnostic-endpoint: ""
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- id: files
|
- id: files
|
||||||
uses: tj-actions/changed-files@v43
|
uses: tj-actions/changed-files@v43
|
||||||
- uses: pre-commit/action@v3.0.1
|
- name: nix checks
|
||||||
with:
|
run: nix flake check
|
||||||
extra_args: --files ${{ steps.files.outputs.all_changed_files }} --show-diff-on-failure
|
- name: nix pre-commit
|
||||||
|
run: nix develop . --command pre-commit run --files ${{ steps.files.outputs.all_changed_files }} --show-diff-on-failure
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: cert-manager
|
- name: cert-manager
|
||||||
repository: https://charts.jetstack.io
|
repository: https://charts.jetstack.io
|
||||||
version: v1.5.1
|
version: v1.14.2
|
||||||
digest: sha256:3220f5584bd04a8c8d4b2a076d49cc046211a463bb9a12ebbbae752be9b70bb1
|
digest: sha256:5f6f7c115d7b96e8c8e85515e087a9379473fd3d5262198a9e25c1a84d4ff9bd
|
||||||
generated: "2021-08-18T01:07:49.505353718+05:30"
|
generated: "2024-02-15T23:08:28.352007672+01:00"
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@ version: 0.8.0
|
||||||
icon: https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/assets/jenkins-operator-icon.png
|
icon: https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/assets/jenkins-operator-icon.png
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: cert-manager
|
- name: cert-manager
|
||||||
version: "1.5.1"
|
version: "1.14.2"
|
||||||
condition: webhook.enabled
|
condition: cert-manager.enabled
|
||||||
repository: https://charts.jetstack.io
|
repository: https://charts.jetstack.io
|
||||||
|
- name: cert-manager-crds
|
||||||
|
version: "1.14.2"
|
||||||
|
condition: cert-manager.enabled
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,14 @@ Kubernetes native operator which fully manages Jenkins on Kubernetes
|
||||||
|
|
||||||
| Repository | Name | Version |
|
| Repository | Name | Version |
|
||||||
|------------|------|---------|
|
|------------|------|---------|
|
||||||
| https://charts.jetstack.io | cert-manager | 1.5.1 |
|
| | cert-manager-crds | 1.14.2 |
|
||||||
|
| https://charts.jetstack.io | cert-manager | 1.14.2 |
|
||||||
|
|
||||||
## Values
|
## Values
|
||||||
|
|
||||||
| Key | Type | Default | Description |
|
| Key | Type | Default | Description |
|
||||||
|-----|------|---------|-------------|
|
|-----|------|---------|-------------|
|
||||||
|
| cert-manager.enabled | bool | `false` | |
|
||||||
| cert-manager.startupapicheck.enabled | bool | `false` | |
|
| cert-manager.startupapicheck.enabled | bool | `false` | |
|
||||||
| jenkins.annotations | object | `{}` | |
|
| jenkins.annotations | object | `{}` | |
|
||||||
| jenkins.apiVersion | string | `"jenkins.io/v1alpha2"` | |
|
| jenkins.apiVersion | string | `"jenkins.io/v1alpha2"` | |
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
apiVersion: v2
|
||||||
|
name: cert-manager-crds
|
||||||
|
version: "1.14.2"
|
||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
|
@ -330,8 +330,11 @@ webhook:
|
||||||
# enable or disable the validation webhook
|
# enable or disable the validation webhook
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
cert-manager:
|
||||||
|
# cert-manager is required to generate certificates for webhook. If you don't have cert-manager installed in your cluster,
|
||||||
|
# you can install it as a subordinate chart
|
||||||
|
enabled: false
|
||||||
# This startupapicheck is a Helm post-install hook that waits for the webhook
|
# This startupapicheck is a Helm post-install hook that waits for the webhook
|
||||||
# endpoints to become available.
|
# endpoints to become available.
|
||||||
cert-manager:
|
|
||||||
startupapicheck:
|
startupapicheck:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@
|
||||||
pkgs.gnumake
|
pkgs.gnumake
|
||||||
pkgs.wget
|
pkgs.wget
|
||||||
pkgs.helm-docs
|
pkgs.helm-docs
|
||||||
|
pkgs.pre-commit
|
||||||
(pkgs.writeShellApplication {
|
(pkgs.writeShellApplication {
|
||||||
name = "make_matrix";
|
name = "make_matrix";
|
||||||
runtimeInputs = with pkgs; [ bash gnugrep gawk ];
|
runtimeInputs = with pkgs; [ bash gnugrep gawk ];
|
||||||
|
|
|
||||||
|
|
@ -106,6 +106,7 @@ var _ = Describe("Jenkins Controller with security validator", func() {
|
||||||
"--set-string", fmt.Sprintf("operator.image=%s", *imageName),
|
"--set-string", fmt.Sprintf("operator.image=%s", *imageName),
|
||||||
"--set", fmt.Sprintf("jenkins.securityValidator=%t", true),
|
"--set", fmt.Sprintf("jenkins.securityValidator=%t", true),
|
||||||
"--set", fmt.Sprintf("jenkins.enabled=%t", false),
|
"--set", fmt.Sprintf("jenkins.enabled=%t", false),
|
||||||
|
"--set", fmt.Sprintf("cert-manager.enabled=%t", true),
|
||||||
"--set", fmt.Sprintf("webhook.enabled=%t", true), "--install")
|
"--set", fmt.Sprintf("webhook.enabled=%t", true), "--install")
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
Expect(err).NotTo(HaveOccurred(), string(output))
|
Expect(err).NotTo(HaveOccurred(), string(output))
|
||||||
|
|
@ -126,6 +127,7 @@ var _ = Describe("Jenkins Controller with security validator", func() {
|
||||||
cmd := exec.Command("../../bin/helm", "upgrade", "jenkins", "../../chart/jenkins-operator", "--namespace", namespace.Name, "--debug",
|
cmd := exec.Command("../../bin/helm", "upgrade", "jenkins", "../../chart/jenkins-operator", "--namespace", namespace.Name, "--debug",
|
||||||
"--set-string", fmt.Sprintf("jenkins.namespace=%s", namespace.Name),
|
"--set-string", fmt.Sprintf("jenkins.namespace=%s", namespace.Name),
|
||||||
"--set-string", fmt.Sprintf("operator.image=%s", *imageName),
|
"--set-string", fmt.Sprintf("operator.image=%s", *imageName),
|
||||||
|
"--set", fmt.Sprintf("cert-manager.enabled=%t", true),
|
||||||
"--set", fmt.Sprintf("webhook.enabled=%t", true),
|
"--set", fmt.Sprintf("webhook.enabled=%t", true),
|
||||||
"--set", fmt.Sprintf("jenkins.latestPlugins=%t", true),
|
"--set", fmt.Sprintf("jenkins.latestPlugins=%t", true),
|
||||||
"--set", fmt.Sprintf("jenkins.enabled=%t", false), "--install")
|
"--set", fmt.Sprintf("jenkins.enabled=%t", false), "--install")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue