-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
117 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,12 +22,12 @@ RUN set -x \ | |
FROM registry.cloudogu.com/official/base:3.14.2-2 | ||
LABEL maintainer="[email protected]" \ | ||
NAME="official/nginx" \ | ||
VERSION="1.21.5-2" | ||
VERSION="1.21.5-3" | ||
|
||
ENV CES_CONFD_VERSION=0.5.1 \ | ||
CES_CONFD_TAR_SHA256="f8776bc473beeacda8ff502861906bb9ab6eeda365513290116697cc6f68eee8" \ | ||
WARP_MENU_VERSION=1.3.0 \ | ||
WARP_MENU_TAR_SHA256="f1ebc305ac03a2b59d8eb9b5624a26a3e5803bb8b6969df271c702bdb257792c" \ | ||
ENV CES_CONFD_VERSION=0.6.0 \ | ||
CES_CONFD_TAR_SHA256="069d45503149d67585e7ff15ce5cb1fe125c4cda4f69230dbf65851ccd88ad58" \ | ||
WARP_MENU_VERSION=1.4.0 \ | ||
WARP_MENU_TAR_SHA256="51febb14ce984bf6f7486d212b3ef8a8fa38ff594bac7d764347778b6eb681a9" \ | ||
CES_ABOUT_VERSION=0.2.2 \ | ||
CES_ABOUT_TAR_SHA256="9926649be62d8d4667b2e7e6d1e3a00ebec1c4bbc5b80a0e830f7be21219d496" \ | ||
CES_THEME_VERSION=v0.7.0 \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Support-Einträge für das Warp-Menü konfigurieren | ||
|
||
Das warp-menu generiert die Einträge im Menü über eine sogenannte menu.json. | ||
Diese wird in der ces-confd erstellt. In dieser sind die dynamischen dogu-Einträge und die Support-Einträge enthalten. | ||
Die Supporteinträge können über die configuration.yaml.tpl in diesem Repository geändert werden. | ||
|
||
Wenn Einträge im warp-menu nicht gerendert werden sollen, kann der etcd-Schlüssel `/config/_global/disabled_warpmenu_support_entries` mit einer Liste von Schlüsseln versehen werden, die nicht gerendert werden sollen. | ||
|
||
Zum Beispiel, wenn die folgenden Einträge in der configuration.yaml unter dem Schlüssel `support` angegeben sind: | ||
``` | ||
warp: | ||
... | ||
Unterstützung: | ||
- Bezeichner: docsCloudoguComUrl | ||
extern: wahr | ||
href: https://path/to/extern/site.com | ||
- Bezeichner: aboutCloudoguToken | ||
extern: falsch | ||
href: /pfad/zu/intern/site | ||
- Bezeichner: myCloudogu | ||
extern: wahr | ||
href: https://path/to/extern/site.com | ||
``` | ||
|
||
und die ersten beiden sollten NICHT angezeigt werden, dann kann man den etcd-Schlüssel auf etwas wie folgt setzen: | ||
`etcdctl set /config/_global/disabled_warpmenu_support_entries '["docsCloudoguComUrl", "aboutCloudoguToken"]'`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Configure support entries for the warp menu | ||
|
||
The warp-menu generates the entries in the menu via a so-called menu.json. | ||
This is built in the ces-confd. In this the dynamic dogu entries and the support entries are contained. | ||
The support entries can be changed via the configuration.yaml.tpl in this repository. | ||
|
||
If entries in the warp-menu should not be rendered the etcd key `/config/_global/disabled_warpmenu_support_entries` can be provided with a list of keys which will not be rendered. | ||
|
||
For example, if the following entries are specified in the configuration.yaml under the key `support`: | ||
``` | ||
warp: | ||
... | ||
support: | ||
- identifier: docsCloudoguComUrl | ||
external: true | ||
href: https://path/to/extern/site.com | ||
- identifier: aboutCloudoguToken | ||
external: false | ||
href: /pfad/to/intern/site | ||
- identifier: myCloudogu | ||
external: true | ||
href: https://path/to/extern/site.com | ||
``` | ||
|
||
and the first two should NOT be displayed than you can set the etcd-key to sth. like: | ||
`etcdctl set /config/_global/disabled_warpmenu_support_entries '["docsCloudoguComUrl", "aboutCloudoguToken"]'`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
integrationTests/cypress/integration/nginx_2_custom_support_entries.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Feature: display support entries | ||
Scenario: opening the warp menu when a etcd-key is set | ||
Given the warp menu is open | ||
Then the warp menu category 'Support' contains a link to docs and no link to mycloudogu or the about page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const { | ||
Given | ||
} = require("cypress-cucumber-preprocessor/steps"); | ||
|
||
|
||
Given(/^the warp menu is open$/, function () { | ||
cy.visit(Cypress.config().baseUrl + Cypress.env('casPath')); | ||
cy.get('*[class^=" warp-menu-column-toggle"]').children('*[id^="warp-menu-warpbtn"]').click(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters