Resolve "Expose all configurable parameters during Kubernetes deployment"

Closes #16 (closed) This needs to be merged after MR 18

Merge request reports

Loading

File moved.

+11
Changes for kubernetes/helm/openslice/files/mysql-init/01-databases.sql: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
# create databases
CREATE DATABASE IF NOT EXISTS `{{ .Values.oscreds.mysql.openslicedb | default "osdb" }}`;
CREATE DATABASE IF NOT EXISTS `{{ .Values.oscreds.mysql.keycloak.database | default "keycloak" }}`;

# create portal user and grant rights
CREATE USER '{{ .Values.oscreds.mysql.portal.username | default "portaluser" }}'@'localhost' IDENTIFIED BY '{{ .Values.oscreds.mysql.portal.password | default "12345" }}';
GRANT ALL PRIVILEGES ON *.* TO '{{ .Values.oscreds.mysql.portal.username | default "portaluser" }}'@'%' IDENTIFIED BY '{{ .Values.oscreds.mysql.portal.password | default "12345" }}';

# create keycloak user and grant rights
CREATE USER '{{ .Values.oscreds.mysql.keycloak.username | default "keycloak" }}'@'localhost' IDENTIFIED BY '{{ .Values.oscreds.mysql.keycloak.password | default "password" }}';
GRANT ALL PRIVILEGES ON *.* TO '{{ .Values.oscreds.mysql.keycloak.username | default "keycloak" }}'@'%' IDENTIFIED BY '{{ .Values.oscreds.mysql.keycloak.password | default "password" }}';
+19
Changes for kubernetes/helm/openslice/files/org.etsi.osl.cridge/kubeconfig.yaml: 19 added lines, 0 removed lines.
Original line number Diff line number Diff line
apiVersion: v1
kind: Config
clusters:
- name: development-cluster
  cluster:
    certificate-authority: path/to/ca.crt # Path to certificate authority file
    server: https://123.45.67.89:6443 # Cluster API server address
contexts:
- name: dev-user@development-cluster
  context:
    cluster: development-cluster
    namespace: development # Default namespace
    user: dev-user
current-context: dev-user@development-cluster
users:
- name: dev-user
  user:
    client-certificate: path/to/cert.crt # Path to the client certificate
    client-key: path/to/key.key # Path to the client key
+14
Changes for kubernetes/helm/openslice/files/org.etsi.osl.portal.web/src/js/config.js.default: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
var appConfig = angular.module('portalwebapp.config',[]);

appConfig.factory('APIEndPointService', function() {
  return {      
    TITLE: "Openslice demo",
    WIKI: "{{ .Values.rooturl }}",
    BUGZILLA: "{{ .Values.rooturl }}/bugzilla/",
    STATUS: "{{ .Values.rooturl }}/",
    APIURL: "{{ .Values.rooturl }}",
    WEBURL: "{{ .Values.rooturl }}/nfvportal",
    APIOAUTHURL: "{{ .Values.rooturl }}/auth/realms/openslice",
    APITMFURL: "{{ .Values.rooturl }}/tmf-api/serviceCatalogManagement/v4"
  };
});
+30
Changes for kubernetes/helm/openslice/files/org.etsi.osl.tmf.web/src/assets/config/config.prod.default.json: 30 added lines, 0 removed lines.
Original line number Diff line number Diff line
{	      
  "TITLE": "Openslice demo",
  "PORTALVERSION":"2023-Q3 1.0.0-SNAPSHOT",
  "WIKI": "https://openslice.readthedocs.io/en/stable/",
  "BUGZILLA": "{BASEURL}/bugzilla/",
  "STATUS": "{BASEURL}/",
  "WEBURL": "{BASEURL}",
  "PORTAL_REPO_APIURL": "{BASEURL}/osapi",
  "ASSURANCE_SERVICE_MGMT_APIURL": "{BASEURL}/oas-api",
  "APITMFURL": "{BASEURL}/tmf-api",
  "OAUTH_CONFIG" : {
      "issuer": "{BASEURL}/auth/realms/openslice",
      "loginUrl": "{BASEURL}/auth/realms/openslice/protocol/openid-connect/auth",
      "tokenEndpoint": "{BASEURL}/auth/realms/openslice/protocol/openid-connect/token",
      "redirectUri": "{BASEURL}/redirect",
      "logoutUrl": "{BASEURL}/auth/realms/openslice/protocol/openid-connect/logout", 
      "postLogoutRedirectUri": "{BASEURL}",
      
      "responseType": "code",
      "oidc": false,
      "clientId": "osapiWebClientId",
      "dummyClientSecret": "secret",
          
      "requireHttps": false,
      "useHttpBasicAuth": true,
      "clearHashAfterLogin": false,
    
      "showDebugInformation": true
    }
}
Loading
Loading