From 7c2b3a66605a51482bc5277df428464a4869e05b Mon Sep 17 00:00:00 2001 From: Jef Spaleta Date: Wed, 27 Jan 2021 17:29:53 -0900 Subject: [PATCH] updated directory structure to make handlersets an explicit subdirectory --- README.md | 12 +++++++----- .../ci-namespace/handlers/{alert => }/aws-sns.yaml | 0 .../ci-namespace/handlers/{alert => }/pushover.yaml | 0 .../alert/set.yaml => handlersets/alert.yaml} | 0 .../test-namespace/handlers/{alert => }/aws-sns.yaml | 0 .../handlers/{alert => }/pushover.yaml | 0 .../alert/set.yaml => handlersets/alert.yaml} | 0 7 files changed, 7 insertions(+), 5 deletions(-) rename ci-namespaces/ci-namespace/handlers/{alert => }/aws-sns.yaml (100%) rename ci-namespaces/ci-namespace/handlers/{alert => }/pushover.yaml (100%) rename ci-namespaces/ci-namespace/{handlers/alert/set.yaml => handlersets/alert.yaml} (100%) rename namespaces/test-namespace/handlers/{alert => }/aws-sns.yaml (100%) rename namespaces/test-namespace/handlers/{alert => }/pushover.yaml (100%) rename namespaces/test-namespace/{handlers/alert/set.yaml => handlersets/alert.yaml} (100%) diff --git a/README.md b/README.md index 1a02c18..ef8dde6 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,11 @@ namespaces │   └── true.yaml ├── filters │   └── fatigue-check.yaml + ├── handlersets + │   └── alert.yaml ├── handlers - │   └── alert - │   ├── aws-sns.yaml - │   ├── pushover.yaml - │   └── set.yaml + │   ├── aws-sns.yaml + │   └── pushover.yaml └── mutators └── check-status.yaml ``` @@ -32,7 +32,9 @@ namespaces Using this example, this action would process the `test-namespace`, pruning the namespace resources according to `matching_label`, `matching_condition`, and `managed_resources`settings ### Optionally Preparing namespaces -If the `namespaces.yaml` file exists in the working directory (normally the top level of your repository) then this action will be used to create sensu namespaces before attempting to process the namespaces directory. +If the `namespaces.yaml` file exists in the working directory (normally the top level of your repository) then this action will be used to create sensu namespaces before attempting to process the namespaces directory. + +Note: Namespaces are a cluster level resource, so in order to use the namespaces creation capability the sensu user will need cluser level role based access to create namespaces. ## Configuration ### Required settings diff --git a/ci-namespaces/ci-namespace/handlers/alert/aws-sns.yaml b/ci-namespaces/ci-namespace/handlers/aws-sns.yaml similarity index 100% rename from ci-namespaces/ci-namespace/handlers/alert/aws-sns.yaml rename to ci-namespaces/ci-namespace/handlers/aws-sns.yaml diff --git a/ci-namespaces/ci-namespace/handlers/alert/pushover.yaml b/ci-namespaces/ci-namespace/handlers/pushover.yaml similarity index 100% rename from ci-namespaces/ci-namespace/handlers/alert/pushover.yaml rename to ci-namespaces/ci-namespace/handlers/pushover.yaml diff --git a/ci-namespaces/ci-namespace/handlers/alert/set.yaml b/ci-namespaces/ci-namespace/handlersets/alert.yaml similarity index 100% rename from ci-namespaces/ci-namespace/handlers/alert/set.yaml rename to ci-namespaces/ci-namespace/handlersets/alert.yaml diff --git a/namespaces/test-namespace/handlers/alert/aws-sns.yaml b/namespaces/test-namespace/handlers/aws-sns.yaml similarity index 100% rename from namespaces/test-namespace/handlers/alert/aws-sns.yaml rename to namespaces/test-namespace/handlers/aws-sns.yaml diff --git a/namespaces/test-namespace/handlers/alert/pushover.yaml b/namespaces/test-namespace/handlers/pushover.yaml similarity index 100% rename from namespaces/test-namespace/handlers/alert/pushover.yaml rename to namespaces/test-namespace/handlers/pushover.yaml diff --git a/namespaces/test-namespace/handlers/alert/set.yaml b/namespaces/test-namespace/handlersets/alert.yaml similarity index 100% rename from namespaces/test-namespace/handlers/alert/set.yaml rename to namespaces/test-namespace/handlersets/alert.yaml