Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional Pod Controller Scans #166

Merged
merged 32 commits into from
Jul 31, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
eb3741c
Additions
Jul 6, 2019
bbec130
Added additionally supported Controllers to test config
Jul 16, 2019
b92d7c7
Added docs pages per request
nickfw Jul 23, 2019
c7702e6
Merge branch 'master' into nh/add-more-controller-support
nickfw Jul 23, 2019
18b9f6d
Copyright rename
nickfw Jul 23, 2019
8d3c08e
Adjusted office hours name
nickfw Jul 23, 2019
824d210
Adjustments
nickfw Jul 23, 2019
355b8da
Adjusted docs movement which apparently affects the dashboard :?
nickfw Jul 23, 2019
2f72309
Added functionality to webhook
nickfw Jul 23, 2019
4dc3b0c
Added testing for getting supported controllers from string
nickfw Jul 23, 2019
f0b7ce9
Adjustments
nickfw Jul 24, 2019
4ac9257
Added RBAC changes
nickfw Jul 24, 2019
6f73ffb
Adjusted version
nickfw Jul 24, 2019
77293c4
Adjusted version in main.go
nickfw Jul 24, 2019
8f7def8
added testing for binary image
nickfw Jul 24, 2019
5204b14
Adjustements getting tag filter back
nickfw Jul 24, 2019
832142c
Adjusted sha
nickfw Jul 24, 2019
c066dea
Merge branch 'master' into nh/add-more-controller-support
Jul 25, 2019
7963b3c
Merge branch 'master' into nh/add-more-controller-support
nickfw Jul 31, 2019
641ed8c
Adjusted naming to match master
nickfw Jul 31, 2019
05ae1e8
matching license naming
nickfw Jul 31, 2019
770017f
adjusted copyright info
nickfw Jul 31, 2019
b815b54
Added new supported type to tests
nickfw Jul 31, 2019
fb8e5ed
Added supported controllers to webhook
nickfw Jul 31, 2019
15b8ef2
Adjusted version in webhook accidentally
nickfw Jul 31, 2019
bbdd924
Added refactor of webhook registration
nickfw Jul 31, 2019
f16bc3d
Adjusted naming of webhooks to conform to DNS-1123
nickfw Jul 31, 2019
59531c8
Adjust method of registration
nickfw Jul 31, 2019
9e398a2
Adjusted webhook and dashboard plus fixed view of new controllers
nickfw Jul 31, 2019
ea06a36
Adjusted request
nickfw Jul 31, 2019
b64c03c
Merge branch 'master' into nh/add-more-controller-support
Jul 31, 2019
c168c01
Added requested change
nickfw Jul 31, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adjusted naming to match master
  • Loading branch information
nickfw committed Jul 31, 2019
commit 641ed8c309d23f25e267025a9c84fcf8bd5671f1
8 changes: 4 additions & 4 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ or run against local YAML files.

## Configuration

Polaris supports a wide range of validations covering a number of Kubernetes best practices. Here's a sample configuration file that includes all currently supported checks. The [default configuration](https://github.com/reactiveops/polaris/blob/master/examples/config.yaml) contains a number of those checks. This repository also includes a sample [full configuration file](https://github.com/reactiveops/polaris/blob/master/examples/config-full.yaml) that enables all available checks.
Polaris supports a wide range of validations covering a number of Kubernetes best practices. Here's a sample configuration file that includes all currently supported checks. The [default configuration](https://github.com/fairwindsops/polaris/blob/master/examples/config.yaml) contains a number of those checks. This repository also includes a sample [full configuration file](https://github.com/fairwindsops/polaris/blob/master/examples/config-full.yaml) that enables all available checks.

Each check can be assigned a `severity`. Only checks with a severity of `error` or `warning` will be validated. The results of these validations are visible on the dashboard. In the case of the validating webhook, only failures with a severity of `error` will result in a change being rejected.

Expand Down Expand Up @@ -73,13 +73,13 @@ There are several ways to install and use Polaris. Below outline ways to install
## kubectl
### Dashboard
```
kubectl apply -f https://github.com/reactiveops/polaris/releases/latest/download/dashboard.yaml
kubectl apply -f https://github.com/fairwindsops/polaris/releases/latest/download/dashboard.yaml
kubectl port-forward --namespace polaris svc/polaris-dashboard 8080:80
```

### Webhook
```
kubectl apply -f https://github.com/reactiveops/polaris/releases/latest/download/webhook.yaml
kubectl apply -f https://github.com/fairwindsops/polaris/releases/latest/download/webhook.yaml
```

## Helm
Expand All @@ -102,7 +102,7 @@ helm upgrade --install polaris reactiveops-stable/polaris --namespace polaris \

## Local Binary
### Installation
Binary releases are available on the [releases page](https://github.com/reactiveops/polaris/releases) or can be installed with [Homebrew](https://brew.sh/):
Binary releases are available on the [releases page](https://github.com/fairwindsops/polaris/releases) or can be installed with [Homebrew](https://brew.sh/):
```
brew tap reactiveops/tap
brew install reactiveops/tap/polaris
Expand Down
2 changes: 1 addition & 1 deletion pkg/kube/resources_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/reactiveops/polaris/test"
"github.com/fairwindsops/polaris/test"
"github.com/stretchr/testify/assert"
)

Expand Down
8 changes: 4 additions & 4 deletions pkg/validator/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
package validator

import (
conf "github.com/reactiveops/polaris/pkg/config"
"github.com/reactiveops/polaris/pkg/kube"
"github.com/reactiveops/polaris/pkg/validator/controllers"
controller "github.com/reactiveops/polaris/pkg/validator/controllers"
conf "github.com/fairwindsops/polaris/pkg/config"
"github.com/fairwindsops/polaris/pkg/kube"
"github.com/fairwindsops/polaris/pkg/validator/controllers"
controller "github.com/fairwindsops/polaris/pkg/validator/controllers"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/validator/controllers/cronjob.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package controllers

import (
"github.com/reactiveops/polaris/pkg/config"
"github.com/fairwindsops/polaris/pkg/config"
kubeAPIBatchV1beta1 "k8s.io/api/batch/v1beta1"
kubeAPICoreV1 "k8s.io/api/core/v1"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/validator/controllers/daemonset.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package controllers

import (
"github.com/reactiveops/polaris/pkg/config"
"github.com/fairwindsops/polaris/pkg/config"
kubeAPIAppsV1 "k8s.io/api/apps/v1"
kubeAPICoreV1 "k8s.io/api/core/v1"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/validator/controllers/deployment.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package controllers

import (
"github.com/reactiveops/polaris/pkg/config"
"github.com/fairwindsops/polaris/pkg/config"
kubeAPIAppsV1 "k8s.io/api/apps/v1"
kubeAPICoreV1 "k8s.io/api/core/v1"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/validator/controllers/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package controllers
import (
"fmt"

"github.com/reactiveops/polaris/pkg/config"
"github.com/reactiveops/polaris/pkg/kube"
"github.com/fairwindsops/polaris/pkg/config"
"github.com/fairwindsops/polaris/pkg/kube"
kubeAPICoreV1 "k8s.io/api/core/v1"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/validator/controllers/job.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package controllers

import (
"github.com/reactiveops/polaris/pkg/config"
"github.com/fairwindsops/polaris/pkg/config"
kubeAPIBatchV1 "k8s.io/api/batch/v1"
kubeAPICoreV1 "k8s.io/api/core/v1"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/validator/controllers/replicationcontroller.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package controllers

import (
"github.com/reactiveops/polaris/pkg/config"
"github.com/fairwindsops/polaris/pkg/config"
kubeAPICoreV1 "k8s.io/api/core/v1"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/validator/controllers/statefulsets.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package controllers

import (
"github.com/reactiveops/polaris/pkg/config"
"github.com/fairwindsops/polaris/pkg/config"
kubeAPIAppsV1 "k8s.io/api/apps/v1"
kubeAPICoreV1 "k8s.io/api/core/v1"
)
Expand Down
4 changes: 2 additions & 2 deletions pkg/validator/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package validator
import (
"fmt"

"github.com/reactiveops/polaris/pkg/config"
conf "github.com/reactiveops/polaris/pkg/config"
"github.com/fairwindsops/polaris/pkg/config"
conf "github.com/fairwindsops/polaris/pkg/config"
corev1 "k8s.io/api/core/v1"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/webhook/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"net/http"
"os"

conf "github.com/reactiveops/polaris/pkg/config"
validator "github.com/reactiveops/polaris/pkg/validator"
"github.com/reactiveops/polaris/pkg/validator/controllers"
conf "github.com/fairwindsops/polaris/pkg/config"
validator "github.com/fairwindsops/polaris/pkg/validator"
"github.com/fairwindsops/polaris/pkg/validator/controllers"
"github.com/sirupsen/logrus"
admissionregistrationv1beta1 "k8s.io/api/admissionregistration/v1beta1"
appsv1 "k8s.io/api/apps/v1"
Expand Down