All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ca.bitcoco.jsk.globalConfig.README.md Maven / Gradle / Ivy

The newest version!

### Application properties setting (required)
Lots of features such as operation which need service name will depend on this value
```
bitcoco.jsk.versioning.serviceName=testService
bitcoco.jsk.versioning.version=1.2
bitcoco.jsk.versioning.chartVersion=1.0.46
bitcoco.jsk.versioning.env=stage
bitcoco.jsk.versioning.podName=testService-sdfe3-546dg7
bitcoco.jsk.versioning.region=us
bitcoco.jsk.versioning.nodeName=minikube
```

### All version value can also be overwritten in main entry if required (not recommend)
```
@SpringBootApplication
public class JskApplication {

    public static void main(String[] args) {
        Versioning.env = "as";
        SpringApplication.run(JskApplication.class, args);
    }

}
```

#### Considering manageability, the most versioning config will come from environment variable, such as helm chart config map.

So in production ready service, it will mostly look like:
```
bitcoco.jsk.versioning.serviceName=${SERVICE_NAME:testService}
bitcoco.jsk.versioning.version=${SERVICE_VERSION:1.2}
...

```




© 2015 - 2025 Weber Informatics LLC | Privacy Policy