diff --git a/manager/testdata/new-blueprints/copy-module.yaml b/manager/testdata/new-blueprints/copy-module.yaml index aff5a7bef..a1bf2a5c3 100644 --- a/manager/testdata/new-blueprints/copy-module.yaml +++ b/manager/testdata/new-blueprints/copy-module.yaml @@ -10,6 +10,7 @@ spec: multi-user: false # Could be multi user depending on naming strategy of deployments chart: name: ghcr.io/mesh-for-data/m4d-implicit-copy-batch:0.1.0 + # StatusIndicators allow to check status of a non-standard resource that can not be computed by helm/kstatus statusIndicators: - kind: BatchTransfer successCondition: status.status == SUCCEEDED diff --git a/manager/testdata/new-blueprints/multi-cluster-conf-module.yaml b/manager/testdata/new-blueprints/multi-cluster-conf-module.yaml new file mode 100644 index 000000000..5c04df996 --- /dev/null +++ b/manager/testdata/new-blueprints/multi-cluster-conf-module.yaml @@ -0,0 +1,23 @@ +# This is an example of a module that deploy (secured) ingress/route in a specific cluster. +# it assumes that an Ingress Controller is already deployed in the cluster. +apiVersion: app.m4d.ibm.com/v1alpha2 +kind: M4DModule +metadata: + name: multi-cluster-conf + namespace: m4d-system + labels: + version: 0.0.1 + name: multi-cluster-conf +spec: + chart: + name: ghcr.io/mesh-for-data/commin-multi-cluster-conf:0.1.0 + # StatusIndicators allow to check status of a non-standard resource that can not be computed by helm/kstatus + statusIndicators: + - kind: Job + successCondition: status.status == SUCCEEDED + failureCondition: status.status == FAILED + errorMessage: status.error + capabilities: + - capability: ingress # on openshift a route will be genereted + scope: cluster + diff --git a/manager/testdata/new-blueprints/read-module.yaml b/manager/testdata/new-blueprints/read-module.yaml index a48276f72..e279a670b 100644 --- a/manager/testdata/new-blueprints/read-module.yaml +++ b/manager/testdata/new-blueprints/read-module.yaml @@ -26,6 +26,7 @@ spec: confChart: name: ghcr.io/mesh-for-data/read-module-conf:0.1.0 values: {} + # StatusIndicators allow to check status of a non-standard resource that can not be computed by helm/kstatus statusIndicators: - kind: ConfigMap successCondition: metadata.labels.configured == SUCCEEDED @@ -41,6 +42,7 @@ spec: dataformat: csv api: endpoint: + # Always equals the release name. It is mandatory if this module exposes a common service. host: common-arrow-flight-read-service # This can e.g. be used for multi-user services selector: "mod: common-arrow-flight-read-service" # Can be set for multi-user services port: 80 # Mandatory for each service diff --git a/manager/testdata/new-blueprints/read-transform-blueprint.yaml b/manager/testdata/new-blueprints/read-transform-blueprint.yaml index 5a97533b1..d051f5923 100644 --- a/manager/testdata/new-blueprints/read-transform-blueprint.yaml +++ b/manager/testdata/new-blueprints/read-transform-blueprint.yaml @@ -11,6 +11,7 @@ spec: workloadSelector: matchLabels: app: demoapp + # List of modules deployed on the cluster. The modules are deployed in parallel. modules: # The names are human readable in this example. In the implementation this will differ. - name: read-data @@ -31,6 +32,9 @@ spec: bucket: srcbucket object: data.parq service: + # Always equals the release name: If this module exposes a common service than the host is the release + # name of the common service, otherwise it is the release name of the deployed module. + # It is mandatory if this module exposes a common service. name: common-arrow-flight-read-service assetID: m4d-notebook-sample/paysim-csv # Differentiator to original asset for multi user arrow flight service? How to best specify? port: 8080 @@ -47,6 +51,7 @@ spec: selector: "mod: common-arrow-flight-read-service" # Selector of the dependency connection: service: + # name is the release name. It equals to M4DModule.spec.api.endpoint.host if such defined. name: common-arrow-flight-read-service assetID: m4d-notebook-sample/paysim-csv port: 8080 @@ -54,6 +59,7 @@ spec: protocol: arrow-flight dataformat: arrow service: + # name is the release name. It equals to M4DModule.spec.api.endpoint.host if such defined. name: common-transform-arrow-flight assetID: m4d-notebook-sample/paysim-csv port: 8080 @@ -85,6 +91,7 @@ status: status: Ready - name: isolation-transform-to-app status: Ready + # status per dataset assets: - name: m4d-notebook-sample/paysim-csv status: Ready @@ -97,4 +104,4 @@ status: status: Ready - name: transform-step status: Ready - conditions: [] \ No newline at end of file + conditions: [] diff --git a/manager/testdata/new-blueprints/transform-module.yaml b/manager/testdata/new-blueprints/transform-module.yaml index b42d76753..e32140a50 100644 --- a/manager/testdata/new-blueprints/transform-module.yaml +++ b/manager/testdata/new-blueprints/transform-module.yaml @@ -34,6 +34,9 @@ spec: level: column api: endpoint: + # Always equals the release name: If this module exposes a common service than the host is the release + # name of the common service, otherwise it is the release name of the deployed module. + # It is mandatory if this module exposes a common service. host: common-transform-arrow-flight # This can e.g. be used for multi-user modules selector: "mod: common-transform-arrow-flight" port: 80 diff --git a/manager/testdata/new-blueprints/write-module.yaml b/manager/testdata/new-blueprints/write-module.yaml index ae90673c5..2ca15edcc 100644 --- a/manager/testdata/new-blueprints/write-module.yaml +++ b/manager/testdata/new-blueprints/write-module.yaml @@ -17,6 +17,7 @@ spec: confChart: name: ghcr.io/mesh-for-data/afwm:0.1.0 values: {} + # StatusIndicators allow to check status of a non-standard resource that can not be computed by helm/kstatus statusIndicators: capabilities: - capability: write @@ -31,9 +32,10 @@ spec: dataformat: csv api: endpoint: + # Always equals the release name. It is mandatory if this module exposes a common service. host: common-arrow-flight-write-service # This can e.g. be used for multi-user modules selector: "mod: common-arrow-flight-write-service" - port: 80 + port: 80 # Mandatory for each service protocol: m4d-arrow-flight dataformat: arrow actions: [] diff --git a/manager/testdata/new-blueprints/write-plotter.yaml b/manager/testdata/new-blueprints/write-plotter.yaml index 7e467a6d8..74efdff50 100644 --- a/manager/testdata/new-blueprints/write-plotter.yaml +++ b/manager/testdata/new-blueprints/write-plotter.yaml @@ -131,6 +131,7 @@ status: status: Ready - name: 04 status: Ready + # status per dataset assets: - name: m4d-notebook-sample/paysim-csv # Endpoint where the asset can be reached. If this was on a different cluster it might point to a different endpoint. @@ -147,4 +148,4 @@ status: conditions: - type: Error status: "False" - message: "This would be a possible error" \ No newline at end of file + message: "This would be a possible error"