-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update Makefile and Readme (#56)
Signed-off-by: Daniel Werdermann <[email protected]>
- Loading branch information
Showing
23 changed files
with
177 additions
and
30 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
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
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
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
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
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,18 @@ | ||
{{ template "chart.header" . }} | ||
{{ template "chart.deprecationWarning" . }} | ||
|
||
{{ template "chart.badgesSection" . }} | ||
|
||
{{ template "chart.description" . }} | ||
|
||
This helm chart is maintain and released by the fluxcd-community on a best effort basis. | ||
|
||
{{ template "chart.homepageLine" . }} | ||
|
||
{{ template "chart.maintainersSection" . }} | ||
|
||
{{ template "chart.sourcesSection" . }} | ||
|
||
{{ template "chart.requirementsSection" . }} | ||
|
||
{{ template "chart.valuesSection" . }} |
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
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
74 changes: 74 additions & 0 deletions
74
charts/flux2-multi-tenancy/tests/__snapshot__/kyverno-policy_test.yaml.snap
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,74 @@ | ||
should match snapshot of default values: | ||
1: | | ||
apiVersion: kyverno.io/v1 | ||
kind: ClusterPolicy | ||
metadata: | ||
annotations: | ||
helm.sh/hook: post-install | ||
labels: | ||
app.kubernetes.io/instance: NAMESPACE | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/part-of: flux | ||
helm.sh/chart: flux2-multi-tenancy-0.0.3 | ||
name: RELEASE-NAME | ||
namespace: NAMESPACE | ||
spec: | ||
rules: | ||
- exclude: | ||
resources: | ||
namespaces: | ||
- flux-system | ||
match: | ||
resources: | ||
kinds: | ||
- Kustomization | ||
- HelmRelease | ||
name: serviceAccountName | ||
validate: | ||
message: .spec.serviceAccountName is required | ||
pattern: | ||
spec: | ||
serviceAccountName: ?* | ||
- exclude: | ||
resources: | ||
namespaces: | ||
- flux-system | ||
match: | ||
resources: | ||
kinds: | ||
- Kustomization | ||
name: kustomizationSourceRefNamespace | ||
preconditions: | ||
any: | ||
- key: '{{request.object.spec.sourceRef.namespace}}' | ||
operator: NotEquals | ||
value: "" | ||
validate: | ||
deny: | ||
conditions: | ||
- key: '{{request.object.spec.sourceRef.namespace}}' | ||
operator: NotEquals | ||
value: '{{request.object.metadata.namespace}}' | ||
message: .spec.sourceRef.namespace must be the same as metadata.namespace | ||
- exclude: | ||
resources: | ||
namespaces: | ||
- flux-system | ||
match: | ||
resources: | ||
kinds: | ||
- HelmRelease | ||
name: helmReleaseSourceRefNamespace | ||
preconditions: | ||
any: | ||
- key: '{{request.object.spec.chart.spec.sourceRef.namespace}}' | ||
operator: NotEquals | ||
value: "" | ||
validate: | ||
deny: | ||
conditions: | ||
- key: '{{request.object.spec.chart.spec.sourceRef.namespace}}' | ||
operator: NotEquals | ||
value: '{{request.object.metadata.namespace}}' | ||
message: .spec.chart.spec.sourceRef.namespace must be the same as metadata.namespace | ||
validationFailureAction: enforce |
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,18 @@ | ||
suite: test kyverno deployment | ||
templates: | ||
- kyverno-policy.yaml | ||
tests: | ||
- it: should have kind Secret for k8s >= 1.19 | ||
capabilities: | ||
majorVersion: 1 | ||
minorVersion: 19 | ||
asserts: | ||
- hasDocuments: | ||
count: 1 | ||
- isKind: | ||
of: ClusterPolicy | ||
- isAPIVersion: | ||
of: kyverno.io/v1 | ||
- it: should match snapshot of default values | ||
asserts: | ||
- matchSnapshot: {} |
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
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
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
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
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
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
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
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
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
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
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
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
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