### Example Kustomize Directory Structure (Bash) Source: https://github.com/projectsveltos/addon-controller/blob/main/README.md This bash output shows a typical directory structure for Kustomize resources that might be referenced by a Sveltos ClusterProfile. It includes standard Kustomize files like 'kustomization.yaml' along with resource definitions like 'deployment.yaml', 'service.yaml', and 'configmap.yaml'. ```bash ├── deployment.yaml ├── kustomization.yaml └── service.yaml └── configmap.yaml ``` -------------------------------- ### Deploying Kustomize Resources with Sveltos ClusterProfile (YAML) Source: https://github.com/projectsveltos/addon-controller/blob/main/README.md This ClusterProfile targets clusters with the label 'env: fv'. It configures Sveltos to continuously deploy Kubernetes resources defined via a Kustomization reference pointing to a GitRepository named 'flux-system' in the 'flux-system' namespace, specifically using the './helloWorld/' path and deploying to the 'eng' target namespace. ```yaml apiVersion: config.projectsveltos.io/v1beta1 kind: ClusterProfile metadata: name: flux-system spec: clusterSelector: matchLabels: env: fv syncMode: Continuous kustomizationRefs: - namespace: flux-system name: flux-system kind: GitRepository path: ./helloWorld/ targetNamespace: eng ``` -------------------------------- ### Run Integration Tests (Kind) - Projectsveltos - Shell Source: https://github.com/projectsveltos/addon-controller/blob/main/CONTRIBUTING.md Runs integration tests within a local Kubernetes cluster (Kind) to verify the functionality of changes in a realistic environment. ```Shell make kind-test ``` -------------------------------- ### Run Unit Tests - Projectsveltos - Shell Source: https://github.com/projectsveltos/addon-controller/blob/main/CONTRIBUTING.md Executes the project's unit tests to verify the correctness of code changes locally before submitting a pull request. ```Shell make test ``` -------------------------------- ### Deploying Kyverno Helm Chart and Resources with Sveltos ClusterProfile (YAML) Source: https://github.com/projectsveltos/addon-controller/blob/main/README.md This ClusterProfile targets CAPI Clusters with the label 'env: prod'. It configures Sveltos to continuously deploy the Kyverno helm chart (v3.0.1) and Kubernetes resources defined in the 'default/storage-class' Secret and 'default/contour-gateway' ConfigMap to matching clusters. ```yaml apiVersion: config.projectsveltos.io/v1beta1 kind: ClusterProfile metadata: name: deploy-kyverno spec: clusterSelector: matchLabels: env: prod syncMode: Continuous helmCharts: - repositoryURL: https://kyverno.github.io/kyverno/ repositoryName: kyverno chartName: kyverno/kyverno chartVersion: v3.0.1 releaseName: kyverno-latest releaseNamespace: kyverno helmChartAction: Install values: | admissionController: replicas: 3 policyRefs: - name: storage-class namespace: default kind: Secret - name: contour-gateway namespace: default kind: ConfigMap ``` -------------------------------- ### Run Lint Checks - Projectsveltos - Shell Source: https://github.com/projectsveltos/addon-controller/blob/main/CONTRIBUTING.md Executes the project's linting checks to ensure code quality and style compliance before submitting a pull request. ```Shell make lint ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.