# Copyright (C) 2021 Nicolas Lamirault <nicolas.lamirault@gmail.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# TODO: https://github.com/portefaix/portefaix/issues/1125
# ---
# apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
# kind: Kustomization
# metadata:
# name: kyverno
# namespace: flux-system
# spec:
# interval: 10m0s
# sourceRef:
# kind: GitRepository
# name: flux-system
# path: ./kubernetes/overlays/k3s/homelab/kyverno/kyverno
# prune: true
# healthChecks:
# - apiVersion: apps/v1
# kind: Deployment
# name: kyverno
# namespace: kyverno
https://github.com/portefaix/portefaix/issues/1125
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: kyverno
namespace: flux-system
spec:
interval: 10m0s
sourceRef:
kind: GitRepository
name: flux-system
path: ./kubernetes/overlays/k3s/homelab/kyverno/kyverno
prune: true
healthChecks:
kind: Deployment
name: kyverno
namespace: kyverno
https://github.com/portefaix/portefaix/blob/ce13ffcf0bfa9a2f4051f6e4a52bed8cd57f1a26/clusters/k3s/homelab/kyverno.yaml#L15
b27c09be1140adba0dec8e6527d46a91025b710b