From a3d536ed8536b3775178bf79c1369ac6306b9669 Mon Sep 17 00:00:00 2001 From: Anubhav Mishra Date: Wed, 7 Feb 2018 14:17:58 -0800 Subject: [PATCH] sentinel fmt --- examples/limit-range/limit-range-validation.policy | 2 +- examples/namespace/namespace-naming-validation.policy | 2 +- examples/pod-service/service-type-validation.policy | 4 ++-- .../replication-controller-replica-count.policy | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/limit-range/limit-range-validation.policy b/examples/limit-range/limit-range-validation.policy index 453f69f..b842efa 100644 --- a/examples/limit-range/limit-range-validation.policy +++ b/examples/limit-range/limit-range-validation.policy @@ -43,4 +43,4 @@ main = rule { all kubernetes_limit_ranges() as limit_range { check_cpu_limit_for(limit_range) } -} +} \ No newline at end of file diff --git a/examples/namespace/namespace-naming-validation.policy b/examples/namespace/namespace-naming-validation.policy index 5dab089..f7015a0 100644 --- a/examples/namespace/namespace-naming-validation.policy +++ b/examples/namespace/namespace-naming-validation.policy @@ -39,4 +39,4 @@ main = rule { all kubernetes_namespaces() as namespace { strings.has_prefix(name_for(namespace), my_company_name_prefix) } -} +} \ No newline at end of file diff --git a/examples/pod-service/service-type-validation.policy b/examples/pod-service/service-type-validation.policy index 387b32b..59f4805 100644 --- a/examples/pod-service/service-type-validation.policy +++ b/examples/pod-service/service-type-validation.policy @@ -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] @@ -42,4 +42,4 @@ main = rule { // For each Kubernetes service check the service type is allowed service_type_for(service) in allowed_service_types } -} +} \ No newline at end of file diff --git a/examples/replication-controller/replication-controller-replica-count.policy b/examples/replication-controller/replication-controller-replica-count.policy index bc8dc48..db25932 100644 --- a/examples/replication-controller/replication-controller-replica-count.policy +++ b/examples/replication-controller/replication-controller-replica-count.policy @@ -39,4 +39,4 @@ main = rule { // For each replication controller check if the replicas is less than 10 replicas_for(replication_controller) < 10 } -} +} \ No newline at end of file