| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- package cn.seecoder.paas.util;
- import lombok.Data;
- import org.springframework.boot.context.properties.ConfigurationProperties;
- import org.springframework.context.annotation.Configuration;
- @Data
- @Configuration
- @ConfigurationProperties("paas")
- public class ApplicationProperties {
- private String deploymentNamespace;
- private String pvcStorageClassName;
- private String deploymentHost;
- private K8s k8s = new K8s();
- private Git git = new Git();
- private Docker docker = new Docker();
- @Data
- public static class K8s {
- private String apiServer;
- private String token;
- private boolean validateSSL = false;
- private boolean debug = true;
- private String imageRegistry;
- }
- @Data
- public static class Git {
- private String username;
- private String password;
- }
- @Data
- public static class Docker {
- private String host;
- private String registry;
- private String registryUsername;
- private String registryPassword;
- }
- }
|