Skip to content

Commit

Permalink
add yaml generate: pod, hpa(+hpaModels), swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
pbcccbeatboard-strato committed Aug 29, 2024
1 parent b4ea220 commit efbb132
Show file tree
Hide file tree
Showing 4 changed files with 2,391 additions and 1,079 deletions.
1 change: 0 additions & 1 deletion src/main/java/kr/co/mcmp/manifest/K8SHPADTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public class K8SHPADTO {

public String hpaName;
public String namespace;
public List<V1Container> containers;
public Map<String, String> labels;

public TargetRef target;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/kr/co/mcmp/manifest/YamlGenerateController.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public String generateConfigmapYaml(K8SDeployDTO k8sDto){

@Operation(summary = "yaml generate for HPA")
@PostMapping("/hpa")
public String generateHPAYaml(K8SDeployDTO k8sDto){
return null;
public String generateHPAYaml(K8SHPADTO hpaDto){
return yamlGenSvc.generateHPAYaml(hpaDto);
}


Expand Down
4 changes: 2 additions & 2 deletions src/main/java/kr/co/mcmp/manifest/YamlGenerateService.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public String generateConfigmapYaml(){
return "";
}

public String generateHPAYaml(){
return "";
public String generateHPAYaml(K8SHPADTO hpaDto){
return yamlGen.getHpaYaml(hpaDto);
}

public String generateServiceYaml(){
Expand Down
Loading

0 comments on commit efbb132

Please sign in to comment.