Skip to content

Commit

Permalink
sentinel fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
anubhavmishra committed Feb 7, 2018
1 parent e4695b9 commit a3d536e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/limit-range/limit-range-validation.policy
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ main = rule {
all kubernetes_limit_ranges() as limit_range {
check_cpu_limit_for(limit_range)
}
}
}
2 changes: 1 addition & 1 deletion examples/namespace/namespace-naming-validation.policy
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ main = rule {
all kubernetes_namespaces() as namespace {
strings.has_prefix(name_for(namespace), my_company_name_prefix)
}
}
}
4 changes: 2 additions & 2 deletions examples/pod-service/service-type-validation.policy
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ service_type_for = func(resource) {
kubernetes_services = func() {
services = []
// Iterate over all the resources in the Terraform plan and
// find “kubernetes_service” resource
// find “kubernetes_service” resource
for tfplan.resources as type, resource {
if type is "kubernetes_service" {
services += [resource]
Expand All @@ -42,4 +42,4 @@ main = rule {
// For each Kubernetes service check the service type is allowed
service_type_for(service) in allowed_service_types
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ main = rule {
// For each replication controller check if the replicas is less than 10
replicas_for(replication_controller) < 10
}
}
}

0 comments on commit a3d536e

Please sign in to comment.