ApplicationProperties.java 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. package cn.seecoder.paas.util;
  2. import lombok.Data;
  3. import org.springframework.boot.context.properties.ConfigurationProperties;
  4. import org.springframework.context.annotation.Configuration;
  5. @Data
  6. @Configuration
  7. @ConfigurationProperties("paas")
  8. public class ApplicationProperties {
  9. private String deploymentNamespace;
  10. private String pvcStorageClassName;
  11. private String deploymentHost;
  12. private K8s k8s = new K8s();
  13. private Git git = new Git();
  14. private Docker docker = new Docker();
  15. @Data
  16. public static class K8s {
  17. private String apiServer;
  18. private String token;
  19. private boolean validateSSL = false;
  20. private boolean debug = true;
  21. private String imageRegistry;
  22. }
  23. @Data
  24. public static class Git {
  25. private String username;
  26. private String password;
  27. }
  28. @Data
  29. public static class Docker {
  30. private String host;
  31. private String registry;
  32. private String registryUsername;
  33. private String registryPassword;
  34. }
  35. }