Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 28 additions & 14 deletions .github/workflows/block-apps.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Block PRs on apps supernova, huereka, greenhouse and greenhouse-management and libs communicator, oauth, policy-engine, messages-provider and juno-ui-components
name: Block PRs on apps and libs migrated to cloudoperators

on:
pull_request:
Expand Down Expand Up @@ -68,24 +68,38 @@ jobs:
evaluate-changes:
needs: changes
runs-on: [ubuntu-latest]
env:
APPS: "supernova heureka greenhouse greenhouse-management exampleapp template"
LIBS: "communicator oauth policy-engine messages-provider juno-ui-components url-state-provider url-state-router utils"
steps:
- name: Show inputs
run: |
echo apps: ${{ needs.changes.outputs.apps }}
echo libs: ${{ needs.changes.outputs.libs }}
echo app changes: ${{ needs.changes.outputs.app-changes }}
echo lib changes: ${{ needs.changes.outputs.lib-changes }}
- name: Check if changes belongs to apps supernova, huereka, greenhouse or greenhouse-management or libs communicator, oauth, policy-engine, messages-provider or juno-ui-components
if: |
contains(needs.changes.outputs.app-changes, 'supernova') ||
contains(needs.changes.outputs.app-changes, 'huereka') ||
contains(needs.changes.outputs.app-changes, 'greenhouse') ||
contains(needs.changes.outputs.app-changes, 'greenhouse-management') ||
contains(needs.changes.outputs.lib-changes, 'communicator') ||
contains(needs.changes.outputs.lib-changes, 'policy-engine') ||
contains(needs.changes.outputs.lib-changes, 'oauth') ||
contains(needs.changes.outputs.lib-changes, 'messages-provider') ||
contains(needs.changes.outputs.lib-changes, 'juno-ui-components')

- name: Check if changes belong to restricted apps or libs
id: check-changes
run: |
echo "::error not allowed to make changes to supernova, huereka, greenhouse or greenhouse-management apps or communicator, oauth, policy-engine, messages-provider or juno-ui-components libs"
exit 1
check_changes() {
local changes=$1
local list=$2
local type=$3
for item in $list; do
if [[ $changes == *"$item"* ]]; then
echo "Not allowed to make changes to specified $type: $item"
exit 1
fi
done
echo "No restricted changes found in $type"
return 0
}

app_changes="${{ needs.changes.outputs.app-changes }}"
lib_changes="${{ needs.changes.outputs.lib-changes }}"

check_changes "$app_changes" "$APPS" "app"
check_changes "$lib_changes" "$LIBS" "lib"

echo "Changes are allowed."
2 changes: 2 additions & 0 deletions apps/assets-overview/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Assets Overview

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)

This app displays all available Juno apps using the manifest.json file. The manifest.json file is located on the assets server and contains various data, including the path to the build of the app.

This app uses the same techniques as all Juno apps and is integrated in the same way via widget-loader. It serves both as an overview of available apps and as an example of what such an app can look like.
Expand Down
2 changes: 2 additions & 0 deletions apps/auth/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Auth App

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)

This app implements the OIDC flow to login the user.

## Usage
Expand Down
2 changes: 2 additions & 0 deletions apps/dashboard/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Global Dashboard

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)

This app implements the global landing apge for Converged Cloud (CC). It offers a region and domain selection so that the user can navigate directly to the CC Dashboard in the desired region.
2 changes: 2 additions & 0 deletions apps/playground/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Payground app

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
2 changes: 2 additions & 0 deletions apps/user-activity/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# User-activity App

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)

This app tracks the user activity (using event listeners as per example `mousemove`) to notify per broadcast events when the user has been inactive for a default period of 1800 seconds or again active. All other apps listening to the broadcast events can react accordingly and set the application to standby or reactivate and so save resources or reduce the amount of request during the inactive period.

Please visit the section **scrip tag** to see all available **props** and their **default values**.
Expand Down
2 changes: 2 additions & 0 deletions apps/volta/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# VOLTA UI

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)

This mircro frontent uses the Volta API to manage own certificates providing:

- Create signed certificates
Expand Down
2 changes: 2 additions & 0 deletions apps/whois/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# WHOIS UI

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)

This is the micro frontend app for the whois service. Whois allows you to get detailed information about a specific IP in Converged Cloud.
2 changes: 2 additions & 0 deletions apps/widget-loader/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Widget Loader

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)

The Widget Loader streamlines the efficient loading of diverse applications. It initiates the process by loading an import map, serving as a comprehensive repository of dependencies for all assets. This import map is a collection of key-value pairs, where keys represent package names, and corresponding values indicate URLs leading to the package sources. It lays the foundation for subsequent loading steps, ensuring the runtime availability of all dependencies and enabling multiple applications to efficiently share libraries.

## Usage
Expand Down
12 changes: 8 additions & 4 deletions ci/pipeline.yaml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,29 @@
"widget-loader": { type: "app", path: "apps/widget-loader"},
"dashboard": { type: "app", path: "apps/dashboard"},
# "supernova": { type: "app", path: "apps/supernova"},
"exampleapp": { type: "app", path: "apps/exampleapp"},
# "exampleapp": { type: "app", path: "apps/exampleapp"},
# "greenhouse": { type: "app", path: "apps/greenhouse" },
# "greenhouse-management":{ type: "app", path: "apps/greenhouse-management" },
# "heureka": { type: "app", path: "apps/heureka"},
"playground": { type: "app", path: "apps/playground"},
# "juno-ui-components": { type: "lib", path: "libs/juno-ui-components"},
# "messages-provider": { type: "lib", path: "libs/messages-provider"},
# "policy-engine": { type: "lib", path: "libs/policy-engine"},
"url-state-provider": { type: "lib", path: "libs/url-state-provider"},
"url-state-router": { type: "lib", path: "libs/url-state-router"},
"utils": { type: "lib", path: "libs/utils"},
# "url-state-provider": { type: "lib", path: "libs/url-state-provider"},
# "url-state-router": { type: "lib", path: "libs/url-state-router"},
# "utils": { type: "lib", path: "libs/utils"},
}

CLOUDOPERATOR_ASSETS = {
"exampleapp": { type: "app", path: "apps/exampleapp"},
"communicator": { type: "lib", path: "libs/communicator"},
"messages-provider": { type: "lib", path: "libs/messages-provider"},
"juno-ui-components": { type: "lib", path: "libs/juno-ui-components"},
"policy-engine": { type: "lib", path: "libs/policy-engine"},
"oauth": { type: "lib", path: "libs/oauth"},
"url-state-provider": { type: "lib", path: "libs/url-state-provider"},
"url-state-router": { type: "lib", path: "libs/url-state-router"},
"utils": { type: "lib", path: "libs/utils"},
}

HA_REGIONS = ["eu-de-1","eu-de-2","eu-nl-1","ap-ae-1","ap-jp-2","ap-au-1","la-br-1","na-us-1","na-us-2"]
Expand Down