Skip to content

Commit 7cddc15

Browse files
committed
feat(ci): validate all bundles except Joke that OLM v1 doesn't like
Signed-off-by: Chris Laprun <[email protected]>
1 parent d33574a commit 7cddc15

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/build-for-quarkus-version.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,11 @@ jobs:
187187
- name: Install Operator Lifecycle Manager and Operator SDK into Kind
188188
run: operator-sdk olm install --version v0.23.0
189189

190-
- name: Validate OLM ExposedApp bundle
190+
# Joke sample currently doesn't validate with OLM v1 because it bundles required Joke CRD, which v1 thinks should be owned
191+
- name: Validate OLM bundles (excluding Joke sample)
191192
run: |
192-
cd samples/exposedapp
193-
operator-sdk bundle validate target/bundle/quarkus-operator-sdk-samples-exposedapp/ --select-optional suite=operatorframework
193+
cd samples/
194+
find . -type d -name bundle | grep -v joke | xargs -I {} find {} -type d -maxdepth 1 -mindepth 1 | xargs -I {} operator-sdk bundle validate {} --select-optional suite=operatorframework
194195
195196
- name: Run Joke sample using Quarkus DEV mode
196197
run: |

samples/exposedapp/src/main/java/io/halkyon/ExposedAppReconciler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@Dependent(name = "service", type = ServiceDependent.class),
2121
@Dependent(type = IngressDependent.class, readyPostcondition = IngressDependent.class)
2222
})
23-
@CSVMetadata(displayName = "ExposedApp operator", description = "A sample operator that shows how to use JOSDK's main features with the Quarkus extension", provider = @CSVMetadata.Provider(name = "Christophe Laprun", url = "https://github.com/metacosm"))
23+
@CSVMetadata(displayName = "ExposedApp operator", description = "A sample operator that shows how to use JOSDK's main features with the Quarkus extension")
2424
public class ExposedAppReconciler implements Reconciler<ExposedApp>,
2525
ContextInitializer<ExposedApp> {
2626

0 commit comments

Comments
 (0)