You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -51,40 +73,92 @@ You can then execute your binary: `./target/open-management-portal-git-api-1.0.0
51
73
52
74
If you want to learn more about building native executables, please consult https://quarkus.io/guides/building-native-image-guide .
53
75
54
-
## Add basic JDG to OCP
76
+
## Add Infinispan to OCP via the Infinispan Operator
77
+
78
+
* Cluster admin probably needed for CRD
79
+
80
+
### Create secret
81
+
82
+
Create a secret file named `omp-cache-secret.yaml`. This secret will create an `identities.yaml` file on the cache. Take note of the name that must match the app secret By default the user / pass will be omp / omp as defined in `src/main/resources/application.properties` and the secret below.
The preferred place to store non-sensitive data is in the application.properties.
66
135
67
-
Sensitive fields like git repo location, repository id for residencies, repository id for the config and the GitLab API token are stored in the secrets.
136
+
Sensitive fields like the gitlab token and cluster credentials should be stored in a OpenShift secret at a minimum. Other environment specific information should be stored in environmental variables such as repository id for residencies and repository id for the config.
68
137
This info is stored in `ocp-s11/labs-test/omp-gitlab-configuration`.
69
138
70
139
Deployment template will read from the above secret and inject following env variables. These are controlled from application.properties, so if a different env name is needed, change in the application properties file and the deployment template.
71
140
72
141
*`TEMPLATE_REPOSITORY_ID`
73
142
*`RESIDENCIES_PARENT_REPOSITORIES_ID`
74
143
*`GITLAB_API_URL`
75
-
*`GITLAB_PERSONAL_ACCESS_TOKEN`
144
+
*`GITLAB_PERSONAL_ACCESS_TOKEN` (should be secret and a service account)
145
+
*`CACHE_SERVICE`
146
+
*`CACHE_USER`
147
+
*`CACHE_PASS` (should be secret and match the Infinispan operator secret)
148
+
*`CACHE_USE_AUTH` set to true
149
+
**
76
150
77
151
### OpenShift Applier
78
152
79
-
This project includes an `openshift-applier` inventory. To use it, make sure that you are logged in to the cluster and that you customize the variables in `.applier/inventory/group_vars/all.yml` - namely make sure that `deploy_vars` uses the correct endpoints. Once these are configured, you can deploy the project with:
153
+
This section is not guaranteed to be up to date. This project includes an `openshift-applier` inventory. To use it, make sure that you are logged in to the cluster and that you customize the variables in `.applier/inventory/group_vars/all.yml` - namely make sure that `deploy_vars` uses the correct endpoints. Once these are configured, you can deploy the project with:
0 commit comments