Skip to content

Commit eaee443

Browse files
committed
feat(ci): validate ExposedApp CSV, add missing provider info
Signed-off-by: Chris Laprun <[email protected]>
1 parent 2a7afbf commit eaee443

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ jobs:
188188
- name: Install Operator Lifecycle Manager and Operator SDK into Kind
189189
run: operator-sdk olm install --version v0.23.0
190190

191+
- name: Validate OLM ExposedApp bundle
192+
run: |
193+
cd samples/exposedapp
194+
operator-sdk bundle validate target/bundle/quarkus-operator-sdk-samples-exposedapp/ --select-optional suite=operatorframework
195+
191196
- name: Run Joke sample using Quarkus DEV mode
192197
run: |
193198
SCRIPTS=$(pwd)/.github/scripts

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
import io.fabric8.kubernetes.api.model.networking.v1.Ingress;
1414
import io.javaoperatorsdk.operator.api.reconciler.*;
1515
import io.javaoperatorsdk.operator.api.reconciler.dependent.Dependent;
16+
import io.quarkiverse.operatorsdk.annotations.CSVMetadata;
1617

1718
@ControllerConfiguration(namespaces = WATCH_CURRENT_NAMESPACE, name = "exposedapp", dependents = {
1819
@Dependent(type = DeploymentDependent.class),
1920
@Dependent(name = "service", type = ServiceDependent.class),
2021
@Dependent(type = IngressDependent.class, readyPostcondition = IngressDependent.class)
2122
})
23+
@CSVMetadata(provider = @CSVMetadata.Provider(name = "Christophe Laprun", url = "https://github.com/metacosm"))
2224
public class ExposedAppReconciler implements Reconciler<ExposedApp>,
2325
ContextInitializer<ExposedApp> {
2426

0 commit comments

Comments
 (0)