Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit b809e08

Browse files
authored
Merge pull request #130 from secureCodeBox/remove-experimental-from-crds
Remove "experimental" from CRDs Name Remove some not used files
2 parents 1b1a297 + e0e04d8 commit b809e08

File tree

139 files changed

+242
-316
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+242
-316
lines changed

docs/adr/adr_0002.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ The _secureCodeBox operator_ would process all these CRDs in the namespace of th
7070

7171
[source,yaml]
7272
----
73-
apiVersion: execution.experimental.securecodebox.io/v1
73+
apiVersion: execution.securecodebox.io/v1
7474
kind: ScanCompletionHook
7575
metadata:
7676
name: my-metadata

docs/adr/adr_0003.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ When a finding matches a rule the "scanSpec" section will then be used to create
7171
To customize the scan to match the finding, the [mustache](https://github.com/janl/mustache.js) templating language can be used to reference fields of the finding.
7272

7373
```yaml
74-
apiVersion: "cascading.experimental.securecodebox.io/v1"
74+
apiVersion: "cascading.securecodebox.io/v1"
7575
kind: CascadingRule
7676
metadata:
7777
name: "tls-scans"
@@ -110,7 +110,7 @@ By default no cascading Rules will be used.
110110

111111
```yaml
112112
# Nmap Scan without cascading rules
113-
apiVersion: "execution.experimental.securecodebox.io/v1"
113+
apiVersion: "execution.securecodebox.io/v1"
114114
kind: Scan
115115
metadata:
116116
name: "portscan-berlin-wifi"
@@ -125,7 +125,7 @@ spec:
125125
To enable cascading rules you need to specify a label selector to select the cascading rules you'd like
126126

127127
```yaml
128-
apiVersion: "execution.experimental.securecodebox.io/v1"
128+
apiVersion: "execution.securecodebox.io/v1"
129129
kind: Scan
130130
metadata:
131131
name: "portscan-berlin-wifi"
@@ -145,7 +145,7 @@ spec:
145145
To implicitly enable all cascading rules (not-recommended) a empty label selector can be used
146146

147147
```yaml
148-
apiVersion: "execution.experimental.securecodebox.io/v1"
148+
apiVersion: "execution.securecodebox.io/v1"
149149
kind: Scan
150150
metadata:
151151
name: "portscan-berlin-wifi"
@@ -163,7 +163,7 @@ spec:
163163
The label selectors also allow the more powerful [matchExpression](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#set-based-requirement) selectors:
164164

165165
```yaml
166-
apiVersion: "execution.experimental.securecodebox.io/v1"
166+
apiVersion: "execution.securecodebox.io/v1"
167167
kind: Scan
168168
metadata:
169169
name: "example.com"

docs/user-guide/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ This is implemented using kubernetes label selectors, meaning that scans mark th
6969

7070
```bash
7171
cat <<EOF | kubectl apply -f -
72-
apiVersion: "execution.experimental.securecodebox.io/v1"
72+
apiVersion: "execution.securecodebox.io/v1"
7373
kind: Scan
7474
metadata:
7575
name: "example.com"
@@ -103,7 +103,7 @@ The label selectors also allow the more powerful [matchExpression](https://kuber
103103

104104
```bash
105105
cat <<EOF | kubectl apply -f -
106-
apiVersion: "execution.experimental.securecodebox.io/v1"
106+
apiVersion: "execution.securecodebox.io/v1"
107107
kind: Scan
108108
metadata:
109109
name: "example.com"

hook-sdk/nodejs/hook-wrapper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async function updateFindings(findings) {
102102
}
103103

104104
await k8sApi.patchNamespacedCustomObjectStatus(
105-
"execution.experimental.securecodebox.io",
105+
"execution.securecodebox.io",
106106
"v1",
107107
namespace,
108108
"scans",
@@ -133,7 +133,7 @@ async function main() {
133133
let scan;
134134
try {
135135
const { body } = await k8sApi.getNamespacedCustomObject(
136-
"execution.experimental.securecodebox.io",
136+
"execution.securecodebox.io",
137137
"v1",
138138
namespace,
139139
"scans",

hooks/declarative-subsequent-scans/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This is implemented using kubernetes label selectors, meaning that scans mark th
4848
### Example
4949
```yaml
5050
cat <<EOF | kubectl apply -f -
51-
apiVersion: "execution.experimental.securecodebox.io/v1"
51+
apiVersion: "execution.securecodebox.io/v1"
5252
kind: Scan
5353
metadata:
5454
name: "example.com"
@@ -81,7 +81,7 @@ The label selectors also allow the more powerful matchExpression selectors:
8181

8282
```yaml
8383
cat <<EOF | kubectl apply -f -
84-
apiVersion: "execution.experimental.securecodebox.io/v1"
84+
apiVersion: "execution.securecodebox.io/v1"
8585
kind: Scan
8686
metadata:
8787
name: "example.com"

hooks/declarative-subsequent-scans/README.md.gotmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This is implemented using kubernetes label selectors, meaning that scans mark th
4848
### Example
4949
```yaml
5050
cat <<EOF | kubectl apply -f -
51-
apiVersion: "execution.experimental.securecodebox.io/v1"
51+
apiVersion: "execution.securecodebox.io/v1"
5252
kind: Scan
5353
metadata:
5454
name: "example.com"
@@ -81,7 +81,7 @@ The label selectors also allow the more powerful matchExpression selectors:
8181

8282
```yaml
8383
cat <<EOF | kubectl apply -f -
84-
apiVersion: "execution.experimental.securecodebox.io/v1"
84+
apiVersion: "execution.securecodebox.io/v1"
8585
kind: Scan
8686
metadata:
8787
name: "example.com"

hooks/declarative-subsequent-scans/hook.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let sslyzeCascadingRules = undefined;
55

66
beforeEach(() => {
77
parentScan = {
8-
apiVersion: "execution.experimental.securecodebox.io/v1",
8+
apiVersion: "execution.securecodebox.io/v1",
99
kind: "Scan",
1010
metadata: {
1111
name: "nmap-foobar.com",
@@ -20,7 +20,7 @@ beforeEach(() => {
2020

2121
sslyzeCascadingRules = [
2222
{
23-
apiVersion: "cascading.experimental.securecodebox.io/v1",
23+
apiVersion: "cascading.securecodebox.io/v1",
2424
kind: "CascadingRule",
2525
metadata: {
2626
name: "tls-scans",

hooks/declarative-subsequent-scans/scan-helpers.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export async function startSubsequentSecureCodeBoxScan({
7272
}
7373

7474
const scanDefinition = {
75-
apiVersion: "execution.experimental.securecodebox.io/v1",
75+
apiVersion: "execution.securecodebox.io/v1",
7676
kind: "Scan",
7777
metadata: {
7878
generateName: `${name}-`,
@@ -89,7 +89,7 @@ export async function startSubsequentSecureCodeBoxScan({
8989
},
9090
ownerReferences: [
9191
{
92-
apiVersion: "execution.experimental.securecodebox.io/v1",
92+
apiVersion: "execution.securecodebox.io/v1",
9393
blockOwnerDeletion: true,
9494
controller: true,
9595
kind: "Scan",
@@ -110,7 +110,7 @@ export async function startSubsequentSecureCodeBoxScan({
110110
try {
111111
// Submitting the Scan to the kubernetes api
112112
await k8sApiCRD.createNamespacedCustomObject(
113-
"execution.experimental.securecodebox.io",
113+
"execution.securecodebox.io",
114114
"v1",
115115
namespace,
116116
"scans",
@@ -137,7 +137,7 @@ export async function getCascadingRulesForScan(scan: Scan) {
137137
);
138138

139139
const response: any = await k8sApiCRD.listNamespacedCustomObject(
140-
"cascading.experimental.securecodebox.io",
140+
"cascading.securecodebox.io",
141141
"v1",
142142
namespace,
143143
"cascadingrules",

hooks/declarative-subsequent-scans/templates/declerative-subsequent-scans-hook.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: "execution.experimental.securecodebox.io/v1"
1+
apiVersion: "execution.securecodebox.io/v1"
22
kind: ScanCompletionHook
33
metadata:
44
name: {{ include "declarative-subsequent-scans.fullname" . }}

hooks/declarative-subsequent-scans/templates/role.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ metadata:
77
namespace: {{ .Release.Namespace }}
88
rules:
99
- apiGroups:
10-
- execution.experimental.securecodebox.io
10+
- execution.securecodebox.io
1111
resources:
1212
- scans
1313
verbs:
1414
- get
1515
- create
1616
- apiGroups:
17-
- execution.experimental.securecodebox.io
17+
- execution.securecodebox.io
1818
resources:
1919
- scans/status
2020
verbs:
2121
- get
2222
- patch
2323
- apiGroups:
24-
- cascading.experimental.securecodebox.io
24+
- cascading.securecodebox.io
2525
resources:
2626
- cascadingrules
2727
verbs:

0 commit comments

Comments
 (0)