Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: buttahtoast/svc-ingress-propagator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.0-rc.6
Choose a base ref
...
head repository: buttahtoast/svc-ingress-propagator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Oct 30, 2023

  1. build(deps): bump actions/checkout from 2 to 4

    Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 4.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Commits](actions/checkout@v2...v4)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Oct 30, 2023
    Copy the full SHA
    78e4436 View commit details

Commits on Oct 31, 2023

  1. debug workflow

    oliverbaehler committed Oct 31, 2023
    Copy the full SHA
    27556ac View commit details
  2. feat: add helm testing

    oliverbaehler committed Oct 31, 2023
    Copy the full SHA
    2356963 View commit details

Commits on Nov 6, 2023

  1. chore(deps): bump helm/chart-testing-action from 2.4.0 to 2.6.1

    Bumps [helm/chart-testing-action](https://github.com/helm/chart-testing-action) from 2.4.0 to 2.6.1.
    - [Release notes](https://github.com/helm/chart-testing-action/releases)
    - [Commits](helm/chart-testing-action@e878887...e6669bc)
    
    ---
    updated-dependencies:
    - dependency-name: helm/chart-testing-action
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Nov 6, 2023
    Copy the full SHA
    66c3794 View commit details
  2. chore(deps): bump wagoid/commitlint-github-action from 5.4.3 to 5.4.4

    Bumps [wagoid/commitlint-github-action](https://github.com/wagoid/commitlint-github-action) from 5.4.3 to 5.4.4.
    - [Changelog](https://github.com/wagoid/commitlint-github-action/blob/master/CHANGELOG.md)
    - [Commits](wagoid/commitlint-github-action@6319f54...0d749a1)
    
    ---
    updated-dependencies:
    - dependency-name: wagoid/commitlint-github-action
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Nov 6, 2023
    Copy the full SHA
    04e896e View commit details

Commits on Nov 7, 2023

  1. chore: initial fixes

    Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
    oliverbaehler committed Nov 7, 2023
    Copy the full SHA
    3b92600 View commit details
  2. chore: initial fixes

    Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
    oliverbaehler committed Nov 7, 2023
    Copy the full SHA
    8488e21 View commit details

Commits on Dec 4, 2023

  1. chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions

    Bumps [zgosalvez/github-actions-ensure-sha-pinned-actions](https://github.com/zgosalvez/github-actions-ensure-sha-pinned-actions) from 2.1.4 to 3.0.2.
    - [Release notes](https://github.com/zgosalvez/github-actions-ensure-sha-pinned-actions/releases)
    - [Commits](zgosalvez/github-actions-ensure-sha-pinned-actions@f324355...b1b635d)
    
    ---
    updated-dependencies:
    - dependency-name: zgosalvez/github-actions-ensure-sha-pinned-actions
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Dec 4, 2023
    Copy the full SHA
    10f04ec View commit details
  2. chore(deps): bump aquasecurity/trivy-action from 0.12.0 to 0.15.0

    Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.12.0 to 0.15.0.
    - [Release notes](https://github.com/aquasecurity/trivy-action/releases)
    - [Commits](aquasecurity/trivy-action@fbd1636...22d2755)
    
    ---
    updated-dependencies:
    - dependency-name: aquasecurity/trivy-action
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Dec 4, 2023
    Copy the full SHA
    d92cc08 View commit details

Commits on Dec 5, 2023

  1. Merge pull request #6 from buttahtoast/dependabot/github_actions/helm…

    …/chart-testing-action-2.6.1
    
    chore(deps): bump helm/chart-testing-action from 2.4.0 to 2.6.1
    oliverbaehler authored Dec 5, 2023
    Copy the full SHA
    3a8477a View commit details
  2. Merge pull request #2 from buttahtoast/dependabot/github_actions/acti…

    …ons/checkout-4
    
    build(deps): bump actions/checkout from 2 to 4
    oliverbaehler authored Dec 5, 2023
    Copy the full SHA
    252dc01 View commit details
  3. Merge pull request #8 from buttahtoast/dependabot/github_actions/wago…

    …id/commitlint-github-action-5.4.4
    
    chore(deps): bump wagoid/commitlint-github-action from 5.4.3 to 5.4.4
    oliverbaehler authored Dec 5, 2023
    Copy the full SHA
    94975e6 View commit details
  4. Merge pull request #16 from buttahtoast/dependabot/github_actions/zgo…

    …salvez/github-actions-ensure-sha-pinned-actions-3.0.2
    
    chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 2.1.4 to 3.0.2
    oliverbaehler authored Dec 5, 2023
    Copy the full SHA
    c983185 View commit details
  5. Merge pull request #17 from buttahtoast/dependabot/github_actions/aqu…

    …asecurity/trivy-action-0.15.0
    
    chore(deps): bump aquasecurity/trivy-action from 0.12.0 to 0.15.0
    oliverbaehler authored Dec 5, 2023
    Copy the full SHA
    3bd67f6 View commit details
  6. chore(deps): bump anchore/sbom-action from 0.14.3 to 0.15.1

    Bumps [anchore/sbom-action](https://github.com/anchore/sbom-action) from 0.14.3 to 0.15.1.
    - [Release notes](https://github.com/anchore/sbom-action/releases)
    - [Commits](anchore/sbom-action@78fc58e...5ecf649)
    
    ---
    updated-dependencies:
    - dependency-name: anchore/sbom-action
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Dec 5, 2023
    Copy the full SHA
    835b72b View commit details
  7. Merge pull request #18 from buttahtoast/dependabot/github_actions/anc…

    …hore/sbom-action-0.15.1
    
    chore(deps): bump anchore/sbom-action from 0.14.3 to 0.15.1
    oliverbaehler authored Dec 5, 2023
    Copy the full SHA
    100086e View commit details
  8. Copy the full SHA
    d060e48 View commit details
  9. Merge pull request #15 from buttahtoast/dev/improvements

    feat: rewrite to single reconciler
    oliverbaehler authored Dec 5, 2023
    Copy the full SHA
    5f04267 View commit details
  10. fix: correct rbac for leases

    Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
    oliverbaehler committed Dec 5, 2023
    Copy the full SHA
    966e495 View commit details
  11. ci: helm release workflow

    Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
    oliverbaehler committed Dec 5, 2023
    Copy the full SHA
    cb41c66 View commit details
  12. Merge pull request #19 from buttahtoast/fix/rbac

    fix: correct rbac for leases
    oliverbaehler authored Dec 5, 2023
    Copy the full SHA
    1d159ff View commit details

Commits on Dec 6, 2023

  1. Copy the full SHA
    89eb875 View commit details
  2. Merge pull request #20 from buttahtoast/fix/finalizer

    fix: correctly handle finalizers
    oliverbaehler authored Dec 6, 2023
    Copy the full SHA
    e068e54 View commit details
Showing with 662 additions and 563 deletions.
  1. +1 −1 .github/configs/ct.yaml
  2. 0 .github/workflow/release.yml
  3. +2 −2 .github/workflows/check-actions.yaml
  4. +2 −2 .github/workflows/check-commit.yml
  5. +4 −3 .github/workflows/codecov.yml
  6. +0 −30 .github/workflows/docker-build.yml
  7. +3 −3 .github/workflows/docker-publish.yml
  8. +3 −3 .github/workflows/helm-publish.yml
  9. +2 −2 .github/workflows/helm-test.yml
  10. +2 −2 .github/workflows/releaser.yml
  11. +51 −0 Makefile
  12. 0 {helm → charts/svc-ingress-propagator}/.helmignore
  13. 0 {helm → charts/svc-ingress-propagator}/Chart.yaml
  14. +49 −0 charts/svc-ingress-propagator/README.md
  15. 0 {helm → charts/svc-ingress-propagator}/templates/_helpers.tpl
  16. +14 −0 {helm → charts/svc-ingress-propagator}/templates/deployment.yaml
  17. +3 −1 {helm → charts/svc-ingress-propagator}/templates/ingressclass.yaml
  18. +86 −0 charts/svc-ingress-propagator/templates/rbac.yaml
  19. 0 {helm → charts/svc-ingress-propagator}/templates/service.yaml
  20. 0 {helm → charts/svc-ingress-propagator}/templates/serviceaccount.yaml
  21. +21 −0 {helm → charts/svc-ingress-propagator}/values.yaml
  22. +63 −22 cmd/main.go
  23. +1 −0 go.mod
  24. +2 −0 go.sum
  25. +17 −0 hack/target-rbac/README.md
  26. +0 −31 helm/templates/clusterrole.yaml
  27. +0 −14 helm/templates/clusterrolebinding.yaml
  28. +47 −0 pkg/controller/controlled.go
  29. +0 −173 pkg/controller/controller.go
  30. +0 −34 pkg/controller/finalizer.go
  31. +125 −0 pkg/controller/manager.go
  32. +0 −7 pkg/controller/meta.go
  33. +0 −38 pkg/controller/register.go
  34. +58 −114 pkg/controller/target.go
  35. +93 −72 pkg/controller/transform.go
  36. +8 −9 pkg/controller/utils.go
  37. +5 −0 pkg/propagation/propagation.go
2 changes: 1 addition & 1 deletion .github/configs/ct.yaml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
remote: origin
target-branch: main
chart-dirs:
- helm/
- charts/
chart-repos:
- buttahtoast=https://buttahtoast.github.io/helm-charts/
- bitnami=https://charts.bitnami.com/bitnami
Empty file removed .github/workflow/release.yml
Empty file.
4 changes: 2 additions & 2 deletions .github/workflows/check-actions.yaml
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Ensure SHA pinned actions
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@f32435541e24cd6a4700a7f52bb2ec59e80603b1 # v2.1.4
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@b1b635d24259e8a047a6ce7d6501ea432aa7a830 # v3.0.2
with:
# slsa-github-generator requires using a semver tag for reusable workflows.
# See: https://github.com/slsa-framework/slsa-github-generator#referencing-slsa-builders-and-generators
4 changes: 2 additions & 2 deletions .github/workflows/check-commit.yml
Original file line number Diff line number Diff line change
@@ -15,9 +15,9 @@ jobs:
commit_lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@6319f54d83768b60acd6fd60e61007ccc583e62f #v5.4.3
- uses: wagoid/commitlint-github-action@0d749a1a91d4770e983a7b8f83d4a3f0e7e0874e #v5.4.4
with:
firstParent: true
7 changes: 4 additions & 3 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -14,13 +14,14 @@ jobs:
integration-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Check secret
id: checksecret
uses: oliverbaehler/github-actions/exists@8dfd42735c85f6c58d5d4d6f3232cd0e39d1fe73 # v0.1.0
uses: peak-scale/github-actions/exists@38322faabccd75abfa581c435e367d446b6d2c3b # v0.1.0
with:
value: ${{ secrets.CODECOV_TOKEN }}
- uses: actions/setup-go@v4
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: '1.19'
- name: Run integration tests
30 changes: 0 additions & 30 deletions .github/workflows/docker-build.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ jobs:
container-digest: ${{ steps.publish.outputs.digest }}
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: "Extract Version"
id: extract_version
run: |
@@ -26,7 +26,7 @@ jobs:
echo "Extracted version: $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Run Trivy vulnerability (Repo)
uses: aquasecurity/trivy-action@fbd16365eb88e12433951383f5e99bd901fc618f # v0.12.0
uses: aquasecurity/trivy-action@22d2755f774d925b191a185b74e782a4b0638a41 # v0.15.0
with:
scan-type: 'fs'
ignore-unfixed: true
@@ -37,7 +37,7 @@ jobs:
uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # v3.1.2
- name: Publish with KO
id: publish
uses: oliverbaehler/github-actions/ko-publish-image@8dfd42735c85f6c58d5d4d6f3232cd0e39d1fe73 # v0.1.0
uses: peak-scale/github-actions/make-ko-publish@38322faabccd75abfa581c435e367d446b6d2c3b # v0.1.0
with:
makefile-target: ko-publish-all
registry: ghcr.io
6 changes: 3 additions & 3 deletions .github/workflows/helm-publish.yml
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ jobs:
outputs:
chart-digest: ${{ steps.helm_publish.outputs.digest }}
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # v3.1.2
- name: "Extract Version"
id: extract_version
@@ -24,12 +24,12 @@ jobs:
echo "version=$(echo $VERSION)" >> $GITHUB_OUTPUT
- name: Helm | Publish
id: helm_publish
uses: oliverbaehler/github-actions/helm-oci-chart@dev
uses: peak-scale/github-actions/helm-oci-chart@38322faabccd75abfa581c435e367d446b6d2c3b # v0.1.0
with:
registry: ghcr.io
repository: ${{ github.repository_owner }}/charts
name: "svc-ingress-propagator"
path: "./helm"
path: "./charts/svc-ingress-propagator/"
app-version: ${{ steps.extract_version.outputs.version }}
version: ${{ steps.extract_version.outputs.version }}
registry-username: ${{ github.actor }}
4 changes: 2 additions & 2 deletions .github/workflows/helm-test.yml
Original file line number Diff line number Diff line change
@@ -11,13 +11,13 @@ jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3
- name: Setup Chart Linting
id: lint
uses: helm/chart-testing-action@e8788873172cb653a90ca2e819d79d65a66d4e76 # v2.4.0
uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1
- name: Run chart-testing (list-changed)
id: list-changed
run: |
4 changes: 2 additions & 2 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
@@ -18,9 +18,9 @@ jobs:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: creekorful/goreportcard-action@1f35ced8cdac2cba28c9a2f2288a16aacfd507f9 # v1.0
- uses: anchore/sbom-action/download-syft@78fc58e266e87a38d4194b2137a3d4e9bcaf7ca1
- uses: anchore/sbom-action/download-syft@5ecf649a417b8ae17dc8383dc32d46c03f2312df
- name: Install Cosign
uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # v3.1.2
- name: Run GoReleaser
51 changes: 51 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -16,6 +16,23 @@ IMG ?= $(IMG_BASE):$(VERSION)
FULL_IMG ?= $(REGISTRY)/$(IMG_BASE)


####################
# -- Docker
####################

KOCACHE ?= /tmp/ko-cache
KO_TAGS ?= "latest"
ifdef VERSION
KO_TAGS := $(KO_TAGS),$(VERSION)
endif

LD_FLAGS := "-X main.Version=$(VERSION) \
-X main.GitCommit=$(GIT_HEAD_COMMIT) \
-X main.GitTag=$(VERSION) \
-X main.GitTreeState=$(GIT_MODIFIED) \
-X main.BuildDate=$(BUILD_DATE) \
-X main.GitRepo=$(GIT_REPO)"

# Docker Image Build
# ------------------

@@ -47,6 +64,40 @@ ko-publish-controller: ko-login
.PHONY: ko-publish-all
ko-publish-all: ko-publish-controller

####################
# -- Helm
####################

# Helm
SRC_ROOT = $(shell git rev-parse --show-toplevel)

helm-controller-version:
$(eval VERSION := $(shell grep 'appVersion:' helm/Chart.yaml | awk '{print "v"$$2}'))
$(eval KO_TAGS := $(shell grep 'appVersion:' helm/Chart.yaml | awk '{print "v"$$2}'))

helm-docs: HELMDOCS_VERSION := v1.11.0
helm-docs: docker
@docker run -v "$(SRC_ROOT):/helm-docs" jnorwood/helm-docs:$(HELMDOCS_VERSION) --chart-search-root /helm-docs

helm-lint: CT_VERSION := v3.3.1
helm-lint: docker
@docker run -v "$(SRC_ROOT):/workdir" --entrypoint /bin/sh quay.io/helmpack/chart-testing:$(CT_VERSION) -c "cd /workdir; ct lint --config .github/configs/ct.yaml --lint-conf .github/configs/lintconf.yaml --all --debug"

helm-test: helm-controller-version kind ct ko-build-all
@kind create cluster --wait=60s --name ct-helm-svc-ingress-propagator
@kind load docker-image --name ct-helm-svc-ingress-propagator $(FULL_IMG):$(VERSION)
@ct install --config $(SRC_ROOT)/.github/configs/ct.yaml --all --debug
@kind delete cluster --name ct-helm-svc-ingress-propagator

docker:
@hash docker 2>/dev/null || {\
echo "You need docker" &&\
exit 1;\
}

####################
# -- Tools
####################

KO = $(shell pwd)/bin/ko
KO_VERSION = v0.14.1
File renamed without changes.
File renamed without changes.
49 changes: 49 additions & 0 deletions charts/svc-ingress-propagator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# svc-ingress-propagator

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.16.0](https://img.shields.io/badge/AppVersion-1.16.0-informational?style=flat-square)

Ingress Propagation Controller

## Values

| Key | Type | Default | Description |
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| autoscaling.enabled | bool | `false` | |
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| fullnameOverride | string | `""` | |
| identifier | string | `""` | instance identifier (Defaults to release name) |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.registry | string | `"ghcr.io"` | |
| image.repository | string | `"buttahtoast/svc-ingress-propagator"` | |
| image.tag | string | `""` | |
| imagePullSecrets | list | `[]` | |
| ingressClass.controllerValue | string | `""` | Ingress class controller |
| ingressClass.create | bool | `true` | Create IngressClass |
| ingressClass.isDefaultClass | bool | `false` | Cluster default ingress class |
| ingressClass.name | string | `"propagation"` | Ingress class name |
| livenessProbe | object | `{"httpGet":{"path":"/healthz","port":10080}}` | Configure the liveness probe using Deployment probe spec |
| nameOverride | string | `""` | |
| nodeSelector | object | `{}` | |
| podAnnotations | object | `{}` | |
| podSecurityContext | object | `{}` | |
| readinessProbe | object | `{"httpGet":{"path":"/readyz","port":10080}}` | Configure the readiness probe using Deployment probe spec |
| replicaCount | int | `1` | |
| resources | object | `{}` | |
| securityContext | object | `{}` | |
| service.port | int | `80` | |
| service.type | string | `"ClusterIP"` | |
| serviceAccount.annotations | object | `{}` | |
| serviceAccount.create | bool | `true` | |
| serviceAccount.name | string | `""` | |
| target.ingressClass | string | `"propagated"` | IngressClass on target |
| target.issuer.name | string | `""` | Issuer name on target cluster |
| target.issuer.namespaced | bool | `false` | Whether the issuer is namespaced on target cluster |
| target.kubeconfig | object | `{"secret":{"key":"kubeconfig.yaml","name":"loadbalancer-propagation"}}` | Target Kubeconfig Secret |
| target.namespace | string | `"ingress-central"` | Namespaced on target |
| tolerations | list | `[]` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -36,6 +36,7 @@ spec:
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- --enable-leader-election
- --identifier={{ include "controller.identifier" $ }}
- --ingress-class={{ .Values.ingressClass.name }}
- --controller-class={{ include "controller.value" $ }}
@@ -46,12 +47,25 @@ spec:
{{- with .namespace }}
- --target-namespace={{ . }}
{{- end }}
{{- with .issuer }}
{{- if .name }}
- --target-issuer-name={{ .name }}
{{- end }}
{{- end }}
{{- end }}
- --target-kubeconfig=/target-kubeconfig.yaml
volumeMounts:
- name: kubeconfig-volume
mountPath: /target-kubeconfig.yaml
subPath: {{ .Values.target.kubeconfig.secret.key }}
ports:
- name: metrics
containerPort: 8080
protocol: TCP
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12}}
readinessProbe:
{{- toYaml .Values.readinessProbe | nindent 12}}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{{- if .Values.ingressClass.create }}
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
annotations:
ingressclass.kubernetes.io/is-default-class: {{ .Values.ingressClass.isDefaultClass | quote }}
name: {{ .Values.ingressClass.name }}
spec:
controller: {{ include "controller.value" $ }}
controller: {{ include "controller.value" $ }}
{{- end }}
Loading