-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Oliver Bähler <[email protected]>
- Loading branch information
1 parent
0d6dfd1
commit fcaf6ef
Showing
12 changed files
with
649 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
lib/modules/manager/sveltos/__fixtures__/malformedProfiles.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
# malformed eventtrigger as the source is null | ||
apiVersion: lib.projectsveltos.io/v1beta1 | ||
kind: EventTrigger | ||
spec: | ||
helmCharts: [] | ||
--- | ||
# malformed eventtrigger as the source is empty | ||
apiVersion: lib.projectsveltos.io/v1beta1 | ||
kind: EventTrigger | ||
spec: | ||
helmCharts: null | ||
--- | ||
# malformed clusterprofile as the sources array is empty | ||
apiVersion: config.projectsveltos.io/v1beta1 | ||
kind: ClusterProfile | ||
spec: | ||
helmCharts: [] | ||
--- | ||
# malformed clusterprofile as the source is null | ||
apiVersion: config.projectsveltos.io/v1beta1 | ||
kind: ClusterProfile | ||
spec: | ||
helmCharts: null | ||
--- | ||
# malformed profile as the sources array is empty | ||
apiVersion: config.projectsveltos.io/v1beta1 | ||
kind: Profile | ||
spec: | ||
helmCharts: [] | ||
--- | ||
# malformed profile as the source is null | ||
apiVersion: config.projectsveltos.io/v1beta1 | ||
kind: Profile | ||
spec: | ||
helmCharts: null | ||
|
||
|
21 changes: 21 additions & 0 deletions
21
lib/modules/manager/sveltos/__fixtures__/randomManifest.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: nginx-deployment | ||
labels: | ||
app: nginx | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app: nginx | ||
template: | ||
metadata: | ||
labels: | ||
app: nginx | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx:1.14.2 | ||
ports: | ||
- containerPort: 80 |
49 changes: 49 additions & 0 deletions
49
lib/modules/manager/sveltos/__fixtures__/validClusterProfile.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
apiVersion: config.projectsveltos.io/v1beta1 | ||
kind: ClusterProfile | ||
metadata: | ||
name: baseline | ||
spec: | ||
helmCharts: | ||
- repositoryURL: https://prometheus-community.github.io/helm-charts | ||
repositoryName: prometheus-community | ||
chartName: prometheus-community/prometheus | ||
chartVersion: "23.4.0" | ||
- repositoryURL: https://kyverno.github.io/kyverno/ | ||
repositoryName: kyverno | ||
chartName: kyverno/kyverno | ||
chartVersion: "v3.2.5" | ||
--- | ||
apiVersion: config.projectsveltos.io/v1beta1 | ||
kind: ClusterProfile | ||
metadata: | ||
name: kyverno | ||
spec: | ||
helmCharts: | ||
- repositoryURL: https://kyverno.github.io/kyverno/ | ||
repositoryName: kyverno | ||
chartName: kyverno/kyverno-policies | ||
chartVersion: v3.2.0 | ||
releaseName: kyverno-latest | ||
releaseNamespace: kyverno | ||
helmChartAction: Install | ||
values: | | ||
admissionController: | ||
replicas: 1 | ||
--- | ||
apiVersion: config.projectsveltos.io/v1beta1 | ||
kind: ClusterProfile | ||
metadata: | ||
name: vault | ||
spec: | ||
syncMode: Continuous | ||
helmCharts: | ||
- repositoryURL: oci://registry-1.docker.io/bitnamicharts/vault | ||
repositoryName: oci-vault | ||
chartName: oci://registry-1.docker.io/bitnamicharts/vault | ||
chartVersion: 0.7.2 | ||
- repositoryURL: oci://custom-registry:443/charts/vault-sidecar | ||
repositoryName: oci-custom-vault | ||
chartName: oci://custom-registry:443/charts/vault-sidecar | ||
chartVersion: 0.5.0 | ||
|
48 changes: 48 additions & 0 deletions
48
lib/modules/manager/sveltos/__fixtures__/validEventTrigger.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
apiVersion: lib.projectsveltos.io/v1beta1 | ||
kind: EventTrigger | ||
metadata: | ||
name: baseline | ||
spec: | ||
helmCharts: | ||
- repositoryURL: https://prometheus-community.github.io/helm-charts | ||
repositoryName: prometheus-community | ||
chartName: prometheus-community/prometheus | ||
chartVersion: "23.4.0" | ||
- repositoryURL: https://kyverno.github.io/kyverno/ | ||
repositoryName: kyverno | ||
chartName: kyverno/kyverno | ||
chartVersion: "v3.2.5" | ||
--- | ||
apiVersion: lib.projectsveltos.io/v1beta1 | ||
kind: EventTrigger | ||
metadata: | ||
name: kyverno | ||
spec: | ||
helmCharts: | ||
- repositoryURL: https://kyverno.github.io/kyverno/ | ||
repositoryName: kyverno | ||
chartName: kyverno/kyverno-policies | ||
chartVersion: v3.2.0 | ||
releaseName: kyverno-latest | ||
releaseNamespace: kyverno | ||
helmChartAction: Install | ||
values: | | ||
admissionController: | ||
replicas: 1 | ||
--- | ||
apiVersion: lib.projectsveltos.io/v1beta1 | ||
kind: EventTrigger | ||
metadata: | ||
name: vault | ||
spec: | ||
syncMode: Continuous | ||
helmCharts: | ||
- repositoryURL: oci://registry-1.docker.io/bitnamicharts/vault | ||
repositoryName: oci-vault | ||
chartName: oci://registry-1.docker.io/bitnamicharts/vault | ||
chartVersion: 0.7.2 | ||
- repositoryURL: oci://custom-registry:443/charts/vault-sidecar | ||
repositoryName: oci-custom-vault | ||
chartName: oci://custom-registry:443/charts/vault-sidecar | ||
chartVersion: 0.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
apiVersion: config.projectsveltos.io/v1beta1 | ||
kind: Profile | ||
metadata: | ||
name: baseline | ||
spec: | ||
helmCharts: | ||
- repositoryURL: https://prometheus-community.github.io/helm-charts | ||
repositoryName: prometheus-community | ||
chartName: prometheus-community/prometheus | ||
chartVersion: "23.4.0" | ||
- repositoryURL: https://kyverno.github.io/kyverno/ | ||
repositoryName: kyverno | ||
chartName: kyverno/kyverno | ||
chartVersion: "v3.2.5" | ||
--- | ||
apiVersion: config.projectsveltos.io/v1beta1 | ||
kind: Profile | ||
metadata: | ||
name: kyverno | ||
spec: | ||
helmCharts: | ||
- repositoryURL: https://kyverno.github.io/kyverno/ | ||
repositoryName: kyverno | ||
chartName: kyverno/kyverno-policies | ||
chartVersion: v3.2.0 | ||
releaseName: kyverno-latest | ||
releaseNamespace: kyverno | ||
helmChartAction: Install | ||
values: | | ||
admissionController: | ||
replicas: 1 | ||
--- | ||
apiVersion: config.projectsveltos.io/v1beta1 | ||
kind: Profile | ||
metadata: | ||
name: vault | ||
spec: | ||
syncMode: Continuous | ||
helmCharts: | ||
- repositoryURL: oci://registry-1.docker.io/bitnamicharts/vault | ||
repositoryName: oci-vault | ||
chartName: oci://registry-1.docker.io/bitnamicharts/vault | ||
chartVersion: 0.7.2 | ||
- repositoryURL: oci://custom-registry:443/charts/vault-sidecar | ||
repositoryName: oci-custom-vault | ||
chartName: oci://custom-registry:443/charts/vault-sidecar | ||
chartVersion: 0.5.0 | ||
|
Oops, something went wrong.