Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Template fixes - 8081 & 8088 #365

Merged
merged 9 commits into from
Dec 19, 2020
40 changes: 20 additions & 20 deletions src-web/components/common/templates/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,34 @@
/* Copyright (c) 2020 Red Hat, Inc. */
'use strict'

import specPodRole from './spec-rolebinding.yaml'
import specPodSecurity from './spec-psp.yaml'
import specPodLimit from './spec-mem-limit.yaml'
import specPodExists from './spec-pod.yaml'
import specRoles from './spec-roles.yaml'
import specNamespace from './spec-namespace.yaml'
import specClustadminrole from './spec-clusteradminrole.yaml'
import specCertmgmtexp from './spec-certmgmtexp.yaml'
import specScc from './spec-scc.yaml'
import specImv from './spec-imagemanifestvuln.yaml'
import specClusteradminrole from './spec-clusteradminrole.yaml'
import specCompOperator from './spec-comp-operator.yaml'
import specContainerMemLimit from './spec-container-mem-limit.yaml'
import specEtcdEncryption from './spec-etcd-encryption.yaml'
import specGatekeeper from './spec-gatekeeper.yaml'
import specCompOperator from './spec-comp-operator.yaml'
import specImagemanifestvuln from './spec-imagemanifestvuln.yaml'
import specNamespace from './spec-namespace.yaml'
import specPodExists from './spec-pod-exists.yaml'
import specPodSecurity from './spec-pod-security.yaml'
import specRolebinding from './spec-rolebinding.yaml'
import specRoles from './spec-roles.yaml'
import specScc from './spec-scc.yaml'

const Choices = {
specPodRole,
specPodSecurity,
specPodLimit,
specPodExists,
specRoles,
specNamespace,
specClustadminrole,
specCertmgmtexp,
specScc,
specImv,
specClusteradminrole,
specCompOperator,
specContainerMemLimit,
specEtcdEncryption,
specGatekeeper,
specCompOperator,
specImagemanifestvuln,
specNamespace,
specPodExists,
specPodSecurity,
specRolebinding,
specRoles,
specScc,
}

export default Choices
35 changes: 0 additions & 35 deletions src-web/components/common/templates/spec-audit.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions src-web/components/common/templates/spec-certmgmtexp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name:
CertificatePolicy
description:
cert management expiration
Certificate management expiration
multiselect:
specs
replacements: # if user select this choice, the template variable names and values to use
Expand All @@ -17,7 +17,7 @@ replacements: # if user select this choice, the template variable names and valu
apiVersion: policy.open-cluster-management.io/v1
kind: CertificatePolicy # cert management expiration
metadata:
name: {{name}}-example
name: {{name}}-cert-expiration
spec:
namespaceSelector:
include: ["default"]
Expand Down
79 changes: 0 additions & 79 deletions src-web/components/common/templates/spec-cis-ocp.yaml

This file was deleted.

102 changes: 0 additions & 102 deletions src-web/components/common/templates/spec-cis.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name:
IamPolicy
description:
limit clusteradminrole and report violation
Limit clusteradmin roles
multiselect:
specs
replacements: # if user select this choice, the template variable names and values to use
Expand All @@ -15,9 +15,9 @@ replacements: # if user select this choice, the template variable names and valu
policyTemplates: |
- objectDefinition:
apiVersion: policy.open-cluster-management.io/v1
kind: IamPolicy # limit clusteradminrole and report violation
kind: IamPolicy # limit clusteradmin roles
metadata:
name: {{name}}-example
name: {{name}}-limit-clusteradmin
spec:
severity: medium
namespaceSelector:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name:
ComplianceOperator
description:
install the Compliance operator
Install the Compliance operator
multiselect:
specs
replacements: # if user select this choice, the template variable names and values to use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name:
LimitRange
description:
limit memory usage
Limit container memory usage
multiselect:
specs
replacements: # if user select this choice, the template variable names and values to use
Expand All @@ -17,7 +17,7 @@ replacements: # if user select this choice, the template variable names and valu
apiVersion: policy.open-cluster-management.io/v1
kind: ConfigurationPolicy
metadata:
name: {{name}}-mem-limit-range
name: {{name}}-container-mem-limit-range
spec:
remediationAction: inform # will be overridden by remediationAction in parent policy
severity: medium
Expand All @@ -30,7 +30,7 @@ replacements: # if user select this choice, the template variable names and valu
apiVersion: v1
kind: LimitRange # limit memory usage
metadata:
name: mem-limit-range
name: container-mem-limit-range
spec:
limits:
- default:
Expand Down
4 changes: 2 additions & 2 deletions src-web/components/common/templates/spec-etcd-encryption.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name:
EtcdEncryption
description:
Enable Etcd Encryption
Enable etcd encryption
multiselect:
specs
replacements: # if user select this choice, the template variable names and values to use
Expand All @@ -17,7 +17,7 @@ replacements: # if user select this choice, the template variable names and valu
apiVersion: policy.open-cluster-management.io/v1
kind: ConfigurationPolicy
metadata:
name: {{name}}-example
name: {{name}}-etcd-encryption
spec:
remediationAction: inform # will be overridden by remediationAction in parent policy
severity: med
Expand Down
2 changes: 1 addition & 1 deletion src-web/components/common/templates/spec-gatekeeper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name:
GatekeeperOperator
description:
install the Gatekeeper operator
Install the Gatekeeper operator
multiselect:
specs
replacements: # if user select this choice, the template variable names and values to use
Expand Down
Loading