-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also adjusts CSV reporting to handle when the CSV exists but the subscription does not, by using a label that OLM adds to these objects. The authorino operator was chosen because it has more than one CRD, but not too many to make a concise test. Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
- Loading branch information
1 parent
59a18f8
commit e4f2726
Showing
4 changed files
with
250 additions
and
21 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
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
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
23 changes: 23 additions & 0 deletions
23
test/resources/case38_operator_install/operator-policy-authorino.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,23 @@ | ||
apiVersion: policy.open-cluster-management.io/v1beta1 | ||
kind: OperatorPolicy | ||
metadata: | ||
name: oppol-authorino | ||
annotations: | ||
policy.open-cluster-management.io/parent-policy-compliance-db-id: "124" | ||
policy.open-cluster-management.io/policy-compliance-db-id: "64" | ||
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: musthave | ||
subscription: | ||
channel: stable | ||
name: authorino-operator | ||
namespace: operator-policy-testns | ||
installPlanApproval: Automatic | ||
source: operatorhubio-catalog | ||
sourceNamespace: olm |