When calling the kubernetes subgenerator and having consul as a service registry, the configuration generated is missing some mandatory parameters (selector for the stateful-set).
Motivation for or Use Case
The YAML configuration generated is missing mandatory parameter.
Reproduce the error
Create JHipster project with Consul as Service registry, use the kubernetes subgenerator, run the following command for unit testing "kubectl apply -f registry/", it will fail at the creation of the statefulset
Overview of the issue
When calling the kubernetes subgenerator and having consul as a service registry, the configuration generated is missing some mandatory parameters (selector for the stateful-set).
Motivation for or Use Case
The YAML configuration generated is missing mandatory parameter.
Reproduce the error
Create JHipster project with Consul as Service registry, use the kubernetes subgenerator, run the following command for unit testing "kubectl apply -f registry/", it will fail at the creation of the statefulset
Related issues
N/A
Suggest a Fix
Add the sts missing field, at spec level as mentioned in the hashicorp documentation: https://www.consul.io/docs/platform/k8s/run.html
JHipster Version(s)
V6.6.0
JHipster configuration
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
openjdk version "11.0.2" 2019-01-15 OpenJDK Runtime Environment 18.9 (build 11.0.2+9) OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
git version 2.21.1 (Apple Git-122.3)
node: v13.6.0
npm: 6.13.4
yeoman: 3.1.0
yarn: 1.21.1
Docker version 19.03.5, build 633a0ea
docker-compose version 1.24.1, build 4667896b
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryN/A
Browsers and Operating System
macos 10.15.3.