UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Platform One
Big Bang
P
Packages
Core
opa-gatekeeper
Commits
e33dddf3
Commit
e33dddf3
authored
Apr 12, 2021
by
Branden Cobb
Browse files
Core Package Update
parent
b8775155
Changes
29
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
3 additions
and
942 deletions
+3
-942
deploy/configs/kustomization.yaml
deploy/configs/kustomization.yaml
+0
-4
deploy/constraints/core/all_ns_must_have_owner.yaml
deploy/constraints/core/all_ns_must_have_owner.yaml
+0
-15
deploy/constraints/core/kustomization.yaml
deploy/constraints/core/kustomization.yaml
+0
-25
deploy/contraint-templates/core/k8srequiredlabels_template.yaml
.../contraint-templates/core/k8srequiredlabels_template.yaml
+0
-27
deploy/contraint-templates/core/kustomization.yaml
deploy/contraint-templates/core/kustomization.yaml
+0
-7
deploy/kustomization.yaml
deploy/kustomization.yaml
+0
-10
deploy/opa-gatekeeper/gatekeeper.yaml
deploy/opa-gatekeeper/gatekeeper.yaml
+0
-848
deploy/opa-gatekeeper/kustomization.yaml
deploy/opa-gatekeeper/kustomization.yaml
+0
-4
tests/test-values.yml
tests/test-values.yml
+3
-2
No files found.
deploy/configs/kustomization.yaml
deleted
100644 → 0
View file @
b8775155
commonAnnotations
:
argocd.argoproj.io/sync-wave
:
"
1"
resources
:
-
configs.yaml
deploy/constraints/core/all_ns_must_have_owner.yaml
deleted
100644 → 0
View file @
b8775155
apiVersion
:
constraints.gatekeeper.sh/v1beta1
kind
:
K8sRequiredLabels
metadata
:
name
:
all-must-have-owner
spec
:
enforcementAction
:
dryrun
match
:
kinds
:
-
apiGroups
:
[
"
"
]
kinds
:
[
"
Namespace"
]
parameters
:
message
:
"
All
namespaces
must
have
an
`owner`
label"
labels
:
-
key
:
owner
allowedRegex
:
"
^[a-zA-Z]+$"
deploy/constraints/core/kustomization.yaml
deleted
100644 → 0
View file @
b8775155
commonLabels
:
owner
:
p1
policy-type
:
core
commonAnnotations
:
argocd.argoproj.io/sync-wave
:
"
2"
argocd.argoproj.io/sync-options
:
SkipDryRunOnMissingResource=true
resources
:
-
all_ns_must_have_owner.yaml
patches
:
-
target
:
group
:
constraints.gatekeeper.sh
version
:
v1beta1
patch
:
|-
apiVersion: constraints.gatekeeper.sh/v1beta1
kind: K8sRequiredLabels
metadata:
name: all
spec:
parameters:
exemptNamespaces:
- istio-system
- monitoring
- elastic-system
- logging
- gatekeeper-system
deploy/contraint-templates/core/k8srequiredlabels_template.yaml
deleted
100644 → 0
View file @
b8775155
apiVersion
:
templates.gatekeeper.sh/v1beta1
kind
:
ConstraintTemplate
metadata
:
name
:
k8srequiredlabels
spec
:
crd
:
spec
:
names
:
kind
:
K8sRequiredLabels
validation
:
# Schema for the `parameters` field
openAPIV3Schema
:
properties
:
labels
:
type
:
array
items
:
string
targets
:
-
target
:
admission.k8s.gatekeeper.sh
rego
:
|-
package k8srequiredlabels
violation[{"msg": msg, "details": {"missing_labels": missing}}] {
provided := {label | input.review.object.metadata.labels[label]}
required := {label | label := input.parameters.labels[_]}
missing := required - provided
count(missing) > 0
msg := sprintf("you must provide labels: %v", [missing])
}
deploy/contraint-templates/core/kustomization.yaml
deleted
100644 → 0
View file @
b8775155
commonLabels
:
owner
:
p1
policy-type
:
core
commonAnnotations
:
argocd.argoproj.io/sync-wave
:
"
1"
resources
:
-
k8srequiredlabels_template.yaml
deploy/kustomization.yaml
deleted
100644 → 0
View file @
b8775155
namespace
:
gatekeeper-system
resources
:
-
opa-gatekeeper
# Global configs for gatekeeper
-
configs
# Core constraint templates
-
contraint-templates/core
# Core constraints
# - constraints/core
deploy/opa-gatekeeper/gatekeeper.yaml
deleted
100644 → 0
View file @
b8775155
This diff is collapsed.
Click to expand it.
deploy/opa-gatekeeper/kustomization.yaml
deleted
100644 → 0
View file @
b8775155
commonLabels
:
owner
:
p1
resources
:
-
gatekeeper.yaml
tests/test-values.yml
View file @
e33dddf3
createNamespace
:
false
imagePullSecrets
:
-
name
:
private-registry-mil
image
:
pullSecrets
:
-
name
:
private-registry-mil
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment