ApplicationProperties.java 1021 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 deploymentHost;
  11. private K8s k8s = new K8s();
  12. private Git git = new Git();
  13. private Docker docker = new Docker();
  14. @Data
  15. public static class K8s {
  16. private String apiServer;
  17. private String token;
  18. private boolean validateSSL = false;
  19. private boolean debug = true;
  20. private String imageRegistry;
  21. }
  22. @Data
  23. public static class Git {
  24. private String username;
  25. private String password;
  26. }
  27. @Data
  28. public static class Docker {
  29. private String host;
  30. private String registry;
  31. private String registryUsername;
  32. private String registryPassword;
  33. }
  34. }