Skip to content

Commit

Permalink
fix (app manifest): Fixed packageType to "Grafana"
Browse files Browse the repository at this point in the history
The packageType attribute was changed from "General" to "Grafana"
  • Loading branch information
Jose Melo authored and joaoopereira committed Dec 5, 2024
1 parent a64cf4f commit d9ad1b5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 42 deletions.
23 changes: 8 additions & 15 deletions cmf-cli/resources/template_feed/init/app_deployment_manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,24 +162,17 @@
<deployContainer:EnvironmentVariable name="GF_SECURITY_ALLOW_EMBEDDING"> true </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_DISABLE_LOGIN_FORM"> true </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_DISABLE_SIGNOUT_MENU"> true </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_USERS_AUTO_ASSIGN_ORG_ROLE">
Viewer </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_USERS_AUTO_ASSIGN_ORG_ROLE"> Viewer </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_USERS_EDITORS_CAN_ADMIN"> true </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_ENABLED"> true </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_HEADER_NAME">
X-FORWARDED-USER </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_HEADER_PROPERTY">
username </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_HEADER_NAME"> X-FORWARDED-USER </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_HEADER_PROPERTY"> username </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_AUTO_SIGN_UP"> true </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_HEADERS">
Role:X-Forwarded-Grafana-Role </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_HEADERS"> Role:X-Forwarded-Grafana-Role </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_BASIC"> false </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="INSTALLATION_ID">{{
Global.GetInstallationId() }}</deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="INSTALLATION_DATA_ROOT_PATH">
/var/opt/envmanager/installation/$(SYSTEM_NAME)</deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="DATABASE_APP_FRAMEWORK_CDM_NAME">{{
Global.Deployable.BaseSystemName }}CDM</deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="INSTALLATION_ID">{{ Global.GetInstallationId() }}</deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="INSTALLATION_DATA_ROOT_PATH"> /var/opt/envmanager/installation/$(SYSTEM_NAME)</deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="DATABASE_APP_FRAMEWORK_CDM_NAME">{{ Global.Deployable.BaseSystemName }}CDM</deployContainer:EnvironmentVariable>

<!-- Env Manager Boot Sync -->
<deployContainer:EnvironmentVariable name="ENV_MANAGER_BOOT_SYNC_ENABLED">true</deployContainer:EnvironmentVariable>
Expand Down Expand Up @@ -269,7 +262,7 @@
internal="/var/lib/grafana/" />
<deployContainer:Volume size="10" name="installation_data"
label="Installation Data"
internal="/var/opt/envmanager/installation"
internal="/var/opt/envmanager/installation"
usage="Reference" />
</deployContainer:Volumes>
</deploy:Step>
Expand Down
30 changes: 7 additions & 23 deletions tests/Fixtures/pack/app/app_deployment_manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,33 +167,17 @@
<deployContainer:EnvironmentVariable name="GF_SECURITY_ALLOW_EMBEDDING"> true </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_DISABLE_LOGIN_FORM"> true </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_DISABLE_SIGNOUT_MENU"> true </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_USERS_AUTO_ASSIGN_ORG_ROLE">
Viewer
</deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_USERS_AUTO_ASSIGN_ORG_ROLE"> Viewer </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_USERS_EDITORS_CAN_ADMIN"> true </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_ENABLED"> true </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_HEADER_NAME">
X-FORWARDED-USER
</deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_HEADER_PROPERTY">
username
</deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_HEADER_NAME"> X-FORWARDED-USER </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_HEADER_PROPERTY"> username </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_AUTO_SIGN_UP"> true </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_HEADERS">
Role:X-Forwarded-Grafana-Role
</deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_PROXY_HEADERS"> Role:X-Forwarded-Grafana-Role </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="GF_AUTH_BASIC"> false </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="INSTALLATION_ID">
{{
Global.GetInstallationId() }}
</deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="INSTALLATION_DATA_ROOT_PATH">
/var/opt/envmanager/installation/$(SYSTEM_NAME)
</deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="DATABASE_APP_FRAMEWORK_CDM_NAME">
{{
Global.Deployable.BaseSystemName }}CDM
</deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="INSTALLATION_ID">{{ Global.GetInstallationId() }} </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="INSTALLATION_DATA_ROOT_PATH"> /var/opt/envmanager/installation/$(SYSTEM_NAME) </deployContainer:EnvironmentVariable>
<deployContainer:EnvironmentVariable name="DATABASE_APP_FRAMEWORK_CDM_NAME"> {{ Global.Deployable.BaseSystemName }}CDM </deployContainer:EnvironmentVariable>

<!-- Env Manager Boot Sync -->
<deployContainer:EnvironmentVariable name="ENV_MANAGER_BOOT_SYNC_ENABLED">true</deployContainer:EnvironmentVariable>
Expand Down
5 changes: 1 addition & 4 deletions tests/Specs/Pack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,7 @@ public void Grafana()
""packageId"": ""Cmf.Custom.Grafana"",
""version"": ""{version}"",
""description"": ""Cmf Custom Grafana Package"",
""packageType"": ""Generic"",
""targetLayer"": ""grafana"",
""isInstallable"": true,
""isUniqueInstall"": true,
""packageType"": ""Grafana"",
""steps"": [
{{
""order"": ""1"",
Expand Down

0 comments on commit d9ad1b5

Please sign in to comment.