Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
3,922 changes: 2,225 additions & 1,697 deletions test/e2e/case38_install_operator_test.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ spec:
remediationAction: enforce
severity: medium
complianceType: musthave
operatorGroup:
name: manual-upgrades-operator-group
namespace: operator-policy-testns
targetNamespaces:
- operator-policy-testns
subscription:
channel: strimzi-0.36.x
name: strimzi-kafka-operator
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: policy.open-cluster-management.io/v1beta1
kind: OperatorPolicy
metadata:
name: oppol-mustnothave-apicast
labels:
policy.open-cluster-management.io/cluster-name: "managed"
policy.open-cluster-management.io/cluster-namespace: "managed"
ownerReferences:
- apiVersion: policy.open-cluster-management.io/v1
kind: Policy
name: parent-policy
uid: 12345678-90ab-cdef-1234-567890abcdef # must be replaced before creation
spec:
remediationAction: inform
severity: medium
complianceType: mustnothave
subscription:
channel: stable
name: apicast-community-operator
namespace: operator-policy-testns
source: operatorhubio-catalog
sourceNamespace: olm
upgradeApproval: Automatic
removalBehavior:
operatorGroups: DeleteIfUnused
subscriptions: Delete
clusterServiceVersions: Delete
customResourceDefinitions: Delete
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ spec:
severity: medium
complianceType: mustnothave
subscription:
channel: stable-3.10
name: project-quay
channel: stable
name: apicast-community-operator
namespace: operator-policy-testns
source: operatorhubio-catalog
sourceNamespace: olm
startingCSV: quay-operator.v3.10.0
startingCSV: apicast-community-operator.v0.7.1
versions:
- quay-operator.v3.10.0
- apicast-community-operator.v0.7.1
upgradeApproval: Automatic
removalBehavior:
operatorGroups: DeleteIfUnused
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ spec:
channel: stable
name: project--does-not-exist
namespace: operator-policy-testns
source: grc-mock-source
source: operatorhubio-catalog
sourceNamespace: olm
upgradeApproval: None
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ spec:
complianceType: musthave
subscription:
channel: stable
name: example-operator
name: authorino-operator
namespace: operator-policy-testns
source: grc-mock-source
source: operatorhubio-catalog
sourceNamespace: olm
startingCSV: example-operator.v0.0.3
startingCSV: authorino-operator.v0.15.0
versions:
- example-operator.v0.0.3
- authorino-operator.v0.15.0
upgradeApproval: Automatic
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ spec:
complianceType: musthave
subscription:
channel: stable
name: example-operator
name: authorino-operator
namespace: operator-policy-testns
source: grc-mock-source
source: operatorhubio-catalog
sourceNamespace: olm
upgradeApproval: Automatic
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ spec:
severity: medium
complianceType: musthave
subscription:
channel: stable-3.10
name: project-quay
channel: stable
name: apicast-community-operator
namespace: operator-policy-testns
source: operatorhubio-catalog
sourceNamespace: olm
startingCSV: quay-operator.v3.10.0
startingCSV: apicast-community-operator.v0.7.1
versions:
- '{{ if false }}some value to test empty string is discarded{{ end }}'
- '{{ if true }}quay-operator.v3.10.0{{ end }}'
- '{{ if true }}apicast-community-operator.v0.7.1{{ end }}'
- '{{ if false }}some other value to test empty string is discarded{{ end }}'
upgradeApproval: None
Loading