Skip to content

Commit

Permalink
Add test case for OKE
Browse files Browse the repository at this point in the history
Rendered from template version: main (b5c430d)
  • Loading branch information
simu committed May 15, 2024
1 parent e482050 commit 17ea1ca
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .cruft.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"template": "https://github.com/projectsyn/commodore-component-template.git",
"commit": "a4aff6a9d004c1aad085a875c7759c8f8f1e0d3d",
"commit": "b5c430d9f4b4a4542f8ee6debf5f06d8c6a98374",
"checkout": "main",
"context": {
"cookiecutter": {
"name": "openshift4-operators",
"slug": "openshift4-operators",
"parameter_key": "openshift4_operators",
"test_cases": "openshift-operators-redhat openshift-operators openshift-operators-custom operator-subscription affinity-override",
"test_cases": "openshift-operators-redhat openshift-operators openshift-operators-custom operator-subscription affinity-override operator-subscription-oke",
"add_lib": "y",
"add_pp": "n",
"add_golden": "y",
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
- openshift-operators-custom
- operator-subscription
- affinity-override
- operator-subscription-oke
defaults:
run:
working-directory: ${{ env.COMPONENT_NAME }}
Expand All @@ -56,6 +57,7 @@ jobs:
- openshift-operators-custom
- operator-subscription
- affinity-override
- operator-subscription-oke
defaults:
run:
working-directory: ${{ env.COMPONENT_NAME }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile.vars.mk
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ KUBENT_IMAGE ?= ghcr.io/doitintl/kube-no-trouble:latest
KUBENT_DOCKER ?= $(DOCKER_CMD) $(DOCKER_ARGS) $(root_volume) --entrypoint=/app/kubent $(KUBENT_IMAGE)

instance ?= openshift-operators-redhat
test_instances = tests/openshift-operators-redhat.yml tests/openshift-operators.yml tests/openshift-operators-custom.yml tests/operator-subscription.yml tests/affinity-override.yml
test_instances = tests/openshift-operators-redhat.yml tests/openshift-operators.yml tests/openshift-operators-custom.yml tests/operator-subscription.yml tests/affinity-override.yml tests/operator-subscription-oke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: v1
kind: Namespace
metadata:
annotations:
openshift.io/node-selector: ''
labels:
name: operator-subscription-oke
openshift.io/cluster-monitoring: 'false'
openshift.io/user-monitoring: 'false'
name: operator-subscription-oke
---
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
annotations: {}
labels:
name: operator-subscription-oke
name: operator-subscription-oke
namespace: operator-subscription-oke
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
annotations: {}
labels:
name: foo
name: foo
namespace: operator-subscription-oke
spec:
channel: stable
installPlanApproval: Manual
name: foo
source: certified-operators
sourceNamespace: openshift-marketplace
14 changes: 14 additions & 0 deletions tests/operator-subscription-oke.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
applications:
- openshift4-operators as operator-subscription-oke

parameters:
facts:
distribution: oke

operator_subscription_oke:
useCustomNamespace: true
subscription:
name: foo
channel: stable
spec:
installPlanApproval: Manual

0 comments on commit 17ea1ca

Please sign in to comment.