Skip to content

Commit

Permalink
[Imporve] Request.namesapce and request.clusterId dont't allow to be …
Browse files Browse the repository at this point in the history
…empty
  • Loading branch information
caicancai committed Jun 19, 2024
1 parent 2d5e002 commit fb7a02f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ class FlinkK8sApplicationBuildPipeline(request: FlinkK8sApplicationBuildRequest)
val dockerConf = request.dockerConfig
val baseImageTag = request.flinkBaseImage.trim
val pushImageTag = {
if (request.k8sNamespace.isEmpty || request.clusterId.isEmpty) {
throw new IllegalArgumentException("k8sNamespace and clusterId cannot be empty")
}
val expectedImageTag = s"streampark-flinkjob-${request.k8sNamespace}-${request.clusterId}"
compileTag(expectedImageTag, dockerConf.registerAddress, dockerConf.imageNamespace)
}
Expand Down

0 comments on commit fb7a02f

Please sign in to comment.