Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Upgrade flux to 2.0.1 #1403

Merged
merged 8 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .bloodhound.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,16 @@ skip_types:
additional_crds:
# because the istio-chart is just referencing the istio-controller, so it doesn't contain the CRDs
- https://raw.githubusercontent.com/istio/istio/1.9.1/manifests/charts/base/crds/crd-all.gen.yaml
# TODO: verify this is not masking real problem in https://d2iq.atlassian.net/browse/D2IQ-99126
- https://raw.githubusercontent.com/kubernetes-retired/kubefed/master/charts/kubefed/crds/crds.yaml
- https://raw.githubusercontent.com/cert-manager/cert-manager/master/deploy/crds/crd-certificates.yaml
- https://raw.githubusercontent.com/cert-manager/cert-manager/master/deploy/crds/crd-issuers.yaml
- https://raw.githubusercontent.com/rook/rook/master/deploy/olm/assemble/objectbucket.io_objectbucketclaims.yaml

# set values for substitution variables (e.g. ${releaseNamespace}) in the resources
substitution_vars:
releaseNamespace: kommander
workspaceNamespace: workspace
certificateIssuerName: issuer
certificatesIssuerName: issuer
certificateIssuerKind: ClusterIssuer
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
awscli 2.9.0
flux2 0.41.2
flux2 2.0.1
github-cli 2.20.2
golang 1.19.3
kustomize 4.5.7
Expand Down
2 changes: 1 addition & 1 deletion common/airgapped/patch-add-secret-ref.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: not-used-in-a-patch
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/bitnami.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: charts.github.io-bitnami
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/cert-manager.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: charts.jetstack.io
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/dashboard.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: kubernetes-github-io-dashboard
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/fluent.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: fluent.github.io
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/gatekeeper.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: open-policy-agent.github.io-charts
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/gitea.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: dl.gitea.io-charts
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/grafana.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: grafana.github.io
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/jaegertracing.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: jaegertracing-github-io
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/kiali.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: kiali-org
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/kommander-ui.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: kommander-ui
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/kommander.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: mesosphere.github.io-kommander-charts
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/kube-logging.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: kube-logging.github.io-charts
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/kubefed.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: kubefed
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/kubetunnel.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: mesosphere.github.io-kubetunnel-charts
Expand Down
10 changes: 5 additions & 5 deletions common/helm-repositories/mesosphere-repos.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: mesosphere.github.io-charts-stable
Expand All @@ -9,7 +9,7 @@ spec:
timeout: 1m
url: "${helmMirrorURL:=https://mesosphere.github.io/charts/stable}"
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: mesosphere.github.io-charts-staging
Expand All @@ -21,7 +21,7 @@ spec:
---
# This is to support the HelmReleases created by Kommander's cluster observer controller.
# See https://github.com/mesosphere/kommander/blob/main/federation/pkg/controllers/clusterobserver_controller.go
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: mesosphere.github.io-kommander-auditing-pipeline-charts
Expand All @@ -31,7 +31,7 @@ spec:
timeout: 1m
url: "${helmMirrorURL:=https://mesosphere.github.io/kommander-auditing-pipeline/charts}"
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: mesosphere.github.io-dkp-insights-charts-management
Expand All @@ -41,7 +41,7 @@ spec:
timeout: 1m
url: "${helmMirrorURL:=https://mesosphere.github.io/dkp-insights-charts-management}"
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: mesosphere.github.io-dkp-insights-charts-attached
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/nvidia.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: helm.ngc.nvidia.com-nvidia
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/prometheus-community.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: prometheus-community.github.io-helm-charts
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/reloader.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: stakater-github-io-stakater-charts
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/rook-ceph.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: charts.rook.io-release
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/traefik.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: helm.traefik.io-traefik
Expand Down
2 changes: 1 addition & 1 deletion common/helm-repositories/vmware-tanzu.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: vmware-tanzu.github.io
Expand Down
8 changes: 4 additions & 4 deletions licenses.d2iq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -371,22 +371,22 @@ resources:
- license_path: LICENSE
ref: ${image_tag}
url: https://github.com/brancz/kube-rbac-proxy
- container_image: ghcr.io/fluxcd/helm-controller:v0.31.2
- container_image: ghcr.io/fluxcd/helm-controller:v0.35.0
sources:
- license_path: LICENSE
ref: ${image_tag}
url: https://github.com/fluxcd/helm-controller
- container_image: ghcr.io/fluxcd/kustomize-controller:v0.35.1
- container_image: ghcr.io/fluxcd/kustomize-controller:v1.0.1
sources:
- license_path: LICENSE
ref: ${image_tag}
url: https://github.com/fluxcd/kustomize-controller
- container_image: ghcr.io/fluxcd/notification-controller:v0.33.0
- container_image: ghcr.io/fluxcd/notification-controller:v1.0.0
sources:
- license_path: LICENSE
ref: ${image_tag}
url: https://github.com/fluxcd/notification-controller
- container_image: ghcr.io/fluxcd/source-controller:v0.36.1
- container_image: ghcr.io/fluxcd/source-controller:v1.0.1
sources:
- license_path: LICENSE
ref: ${image_tag}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: centralized-kubecost-post-install-jobs
Expand Down
2 changes: 1 addition & 1 deletion services/centralized-kubecost/0.35.1/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: centralized-kubecost-release
Expand Down
2 changes: 1 addition & 1 deletion services/cert-manager/1.12.2/cert-manager-namespace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cert-manager-namespace
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cert-manager-priorityclass-resource-quota
Expand Down
2 changes: 1 addition & 1 deletion services/cert-manager/1.12.2/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cert-manager-release
Expand Down
2 changes: 1 addition & 1 deletion services/cert-manager/1.12.2/root-ca.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cert-manager-root-ca
Expand Down
2 changes: 1 addition & 1 deletion services/dkp-insights-management/0.6.0/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: dkp-insights-management-helmrelease
Expand Down
2 changes: 1 addition & 1 deletion services/dkp-insights/0.6.0/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: dkp-insights-helmrelease
Expand Down
2 changes: 1 addition & 1 deletion services/gatekeeper/3.13.0/constraints.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: gatekeeper-constraints
Expand Down
2 changes: 1 addition & 1 deletion services/gatekeeper/3.13.0/constrainttemplates.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: gatekeeper-constraint-templates
Expand Down
2 changes: 1 addition & 1 deletion services/gatekeeper/3.13.0/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: gatekeeper-release
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: grafana-loki-helmrelease
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: grafana-loki-pre-install
Expand Down
2 changes: 1 addition & 1 deletion services/istio/1.17.2/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: istio-helmrelease
Expand Down
2 changes: 1 addition & 1 deletion services/jaeger/2.46.2/helmrelease.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: jaeger-helmrelease
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ data:
---
kind: ConfigMap
metadata:
name: kommander-flux-0.41.2-d2iq-defaults
name: kommander-flux-2.0.1-d2iq-defaults
namespace: ${releaseNamespace}
Loading
Loading