-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76bfe4e
commit 883c95c
Showing
14 changed files
with
105 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
accelerators/kubernetes/ocp/gcp/01_htpasswd_identity_provider/oauth.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: v1 | ||
items: | ||
- apiVersion: config.openshift.io/v1 | ||
kind: OAuth | ||
metadata: | ||
annotations: | ||
include.release.openshift.io/ibm-cloud-managed: "true" | ||
include.release.openshift.io/self-managed-high-availability: "true" | ||
include.release.openshift.io/single-node-developer: "true" | ||
release.openshift.io/create-only: "true" | ||
creationTimestamp: "2022-06-01T06:55:19Z" | ||
generation: 1 | ||
name: cluster | ||
ownerReferences: | ||
- apiVersion: config.openshift.io/v1 | ||
kind: ClusterVersion | ||
name: version | ||
uid: 8a116173-10df-4edd-811d-3ba835e2a6e8 | ||
resourceVersion: "1734" | ||
uid: 184c4371-5f2f-4d41-aa6b-d0373186b29c | ||
spec: | ||
identityProviders: | ||
- name: my_htpasswd_provider | ||
mappingMethod: claim | ||
type: HTPasswd | ||
htpasswd: | ||
fileData: | ||
name: htpass-secret | ||
kind: List | ||
metadata: | ||
resourceVersion: "" | ||
selfLink: "" |
9 changes: 9 additions & 0 deletions
9
...tors/kubernetes/ocp/gcp/01_htpasswd_identity_provider/sample_htpasswd_provider_oauth.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
spec: | ||
identityProviders: | ||
- name: my_htpasswd_provider | ||
mappingMethod: claim | ||
type: HTPasswd | ||
htpasswd: | ||
fileData: | ||
name: htpass-secret |
12 changes: 0 additions & 12 deletions
12
accelerators/kubernetes/ocp/gcp/02_day2_customisation/finos-setting.yaml
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
accelerators/kubernetes/ocp/gcp/02_day2_customisation/periodic-e8.yaml
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
accelerators/kubernetes/ocp/gcp/02_day2_customisation/periodic-setting.yaml
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
accelerators/kubernetes/ocp/gcp/02_day2_customisation/test.yaml
This file was deleted.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
accelerators/kubernetes/ocp/gcp/03_day2_customisation/00-namespace-object.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
labels: | ||
openshift.io/cluster-monitoring: "true" | ||
name: openshift-compliance |
8 changes: 8 additions & 0 deletions
8
accelerators/kubernetes/ocp/gcp/03_day2_customisation/01-operator-group-object.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: operators.coreos.com/v1 | ||
kind: OperatorGroup | ||
metadata: | ||
name: compliance-operator | ||
namespace: openshift-compliance | ||
spec: | ||
targetNamespaces: | ||
- openshift-compliance |
11 changes: 11 additions & 0 deletions
11
accelerators/kubernetes/ocp/gcp/03_day2_customisation/02-subscription-object.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: compliance-operator-sub | ||
namespace: openshift-compliance | ||
spec: | ||
channel: "release-0.1" | ||
installPlanApproval: Automatic | ||
name: compliance-operator | ||
source: redhat-operators | ||
sourceNamespace: openshift-marketplace |
8 changes: 8 additions & 0 deletions
8
accelerators/kubernetes/ocp/gcp/03_day2_customisation/03-finos-ocp4-profilebundle.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: compliance.openshift.io/v1alpha1 | ||
kind: ProfileBundle | ||
metadata: | ||
name: ocp4-finos | ||
namespace: openshift-compliance | ||
spec: | ||
contentFile: ssg-ocp4-ds.xml | ||
contentImage: quay.io/jhrozek/ocp4-openscap-content:finos-wip |
8 changes: 8 additions & 0 deletions
8
accelerators/kubernetes/ocp/gcp/03_day2_customisation/04-finos-rhcos4-profilebundle.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: compliance.openshift.io/v1alpha1 | ||
kind: ProfileBundle | ||
metadata: | ||
name: rhcos4-finos | ||
namespace: openshift-compliance | ||
spec: | ||
contentFile: ssg-rhcos4-ds.xml | ||
contentImage: quay.io/jhrozek/ocp4-openscap-content:finos-wip |
13 changes: 5 additions & 8 deletions
13
...es/ocp/gcp/02_day2_customisation/cis.yaml → ...on/05-scansetting-finos-ocp4-default.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
apiVersion: compliance.openshift.io/v1alpha1 | ||
kind: ScanSettingBinding | ||
metadata: | ||
name: cis | ||
namespace: openshift-compliance | ||
name: finos-compliance-ocp4 | ||
profiles: | ||
# Node checks | ||
- name: ocp4-cis-nodes | ||
- name: ocp4-finos-finos | ||
kind: Profile | ||
apiGroup: compliance.openshift.io/v1alpha1 | ||
# Platform checks | ||
- name: ocp4-cis | ||
- name: ocp4-finos-finos-node | ||
kind: Profile | ||
apiGroup: compliance.openshift.io/v1alpha1 | ||
settingsRef: | ||
name: finos-setting | ||
name: default-auto-apply | ||
kind: ScanSetting | ||
apiGroup: compliance.openshift.io/v1alpha1 | ||
apiGroup: compliance.openshift.io/v1alpha1 |
12 changes: 12 additions & 0 deletions
12
...erators/kubernetes/ocp/gcp/03_day2_customisation/06-scansetting-finos-rhcos4-default.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: compliance.openshift.io/v1alpha1 | ||
kind: ScanSettingBinding | ||
metadata: | ||
name: finos-compliance-rhcos4 | ||
profiles: | ||
- name: rhcos4-finos-finos | ||
kind: Profile | ||
apiGroup: compliance.openshift.io/v1alpha1 | ||
settingsRef: | ||
name: default-auto-apply | ||
kind: ScanSetting | ||
apiGroup: compliance.openshift.io/v1alpha1 |