Skip to content

Commit

Permalink
chore: Bump up Polaris from v3.0 to v3.2 (#447)
Browse files Browse the repository at this point in the history
Resolves: #433
  • Loading branch information
champness committed Mar 23, 2021
1 parent 3504621 commit 89d860a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ kubeBench:
imageRef: docker.io/aquasec/kube-bench:0.5.0

polaris:
imageRef: quay.io/fairwinds/polaris:3.0
imageRef: quay.io/fairwinds/polaris:3.2
config:
checks:
# reliability
Expand Down
2 changes: 1 addition & 1 deletion deploy/static/05-starboard-operator.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data:
trivy.imageRef: docker.io/aquasec/trivy:0.16.0
trivy.mode: Standalone
trivy.serverURL: http://trivy-server.trivy-server:4954
polaris.imageRef: quay.io/fairwinds/polaris:3.0
polaris.imageRef: quay.io/fairwinds/polaris:3.2
polaris.config.yaml: |
checks:
# reliability
Expand Down
2 changes: 1 addition & 1 deletion docs/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The following tables list available configuration settings with their default va
| `kube-bench.imageRef` | `docker.io/aquasec/kube-bench:0.5.0` | kube-bench image reference |
| `kube-hunter.imageRef` | `docker.io/aquasec/kube-hunter:0.4.1` | kube-hunter image reference |
| `kube-hunter.quick` | `"false"` | Whether to use kube-hunter's "quick" scanning mode (subnet 24). Set to `"true"` to enable. |
| `polaris.imageRef` | `quay.io/fairwinds/polaris:3.0` | Polaris image reference |
| `polaris.imageRef` | `quay.io/fairwinds/polaris:3.2` | Polaris image reference |
| `polaris.config.yaml` | [Check the default value here][default-polaris-config] | Polaris configuration file |

| SECRET KEY | DESCRIPTION |
Expand Down
2 changes: 1 addition & 1 deletion itest/starboard/starboard_cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ var (
polarisScanner = v1alpha1.Scanner{
Name: "Polaris",
Vendor: "Fairwinds Ops",
Version: "3.0",
Version: "3.2",
}
)

Expand Down
8 changes: 4 additions & 4 deletions pkg/plugin/polaris/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func TestPlugin_GetScanJobSpec(t *testing.T) {
{
name: "Should return job spec for Deployment",
config: starboard.ConfigData{
"polaris.imageRef": "quay.io/fairwinds/polaris:3.0",
"polaris.imageRef": "quay.io/fairwinds/polaris:3.2",
},
obj: &appsv1.Deployment{
TypeMeta: metav1.TypeMeta{
Expand Down Expand Up @@ -68,7 +68,7 @@ func TestPlugin_GetScanJobSpec(t *testing.T) {
Containers: []corev1.Container{
{
Name: "polaris",
Image: "quay.io/fairwinds/polaris:3.0",
Image: "quay.io/fairwinds/polaris:3.2",
ImagePullPolicy: corev1.PullIfNotPresent,
TerminationMessagePolicy: corev1.TerminationMessageFallbackToLogsOnError,
Resources: corev1.ResourceRequirements{
Expand Down Expand Up @@ -140,7 +140,7 @@ func TestPlugin_ParseConfigAuditResult(t *testing.T) {
}()

config := starboard.ConfigData{
"polaris.imageRef": "quay.io/fairwinds/polaris:3.0",
"polaris.imageRef": "quay.io/fairwinds/polaris:3.2",
}
plugin := polaris.NewPlugin(fixedClock, config)
result, err := plugin.ParseConfigAuditReportData(testReport)
Expand All @@ -149,7 +149,7 @@ func TestPlugin_ParseConfigAuditResult(t *testing.T) {
assert.Equal(t, v1alpha1.Scanner{
Name: "Polaris",
Vendor: "Fairwinds Ops",
Version: "3.0",
Version: "3.2",
}, result.Scanner)
assert.Equal(t, v1alpha1.ConfigAuditSummary{
PassCount: 2,
Expand Down
2 changes: 1 addition & 1 deletion pkg/starboard/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ func GetDefaultConfig() ConfigData {
"kube-hunter.imageRef": "docker.io/aquasec/kube-hunter:0.4.1",
"kube-hunter.quick": "false",

"polaris.imageRef": "quay.io/fairwinds/polaris:3.0",
"polaris.imageRef": "quay.io/fairwinds/polaris:3.2",
"polaris.config.yaml": polarisConfigYAML,
}
}
Expand Down

0 comments on commit 89d860a

Please sign in to comment.