Skip to content

Commit

Permalink
[FLINK-15816][k8s] Limit kubernetes.cluster-id to a maximum of 40 cha…
Browse files Browse the repository at this point in the history
…racters
  • Loading branch information
alpreu committed Nov 17, 2021
1 parent ef5fb7a commit 7f0824c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<td><h5>kubernetes.cluster-id</h5></td>
<td style="word-wrap: break-word;">(none)</td>
<td>String</td>
<td>The cluster-id, which should be no more than 45 characters, is used for identifying a unique Flink cluster. The id must only contain lowercase alphanumeric characters and "-". The required format is <code class="highlighter-rouge">[a-z]([-a-z0-9]*[a-z0-9])</code>. If not set, the client will automatically generate it with a random ID.</td>
<td>The cluster-id, which should be no more than 40 characters, is used for identifying a unique Flink cluster. The id must only contain lowercase alphanumeric characters and "-". The required format is <code class="highlighter-rouge">[a-z]([-a-z0-9]*[a-z0-9])</code>. If not set, the client will automatically generate it with a random ID.</td>
</tr>
<tr>
<td><h5>kubernetes.config.file</h5></td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public class KubernetesConfigOptions {
.withDescription(
Description.builder()
.text(
"The cluster-id, which should be no more than 45 characters, is used for identifying a unique Flink cluster. "
"The cluster-id, which should be no more than 40 characters, is used for identifying a unique Flink cluster. "
+ "The id must only contain lowercase alphanumeric characters and \"-\". "
+ "The required format is %s. "
+ "If not set, the client will automatically generate it with a random ID.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public class Constants {

public static final String HEADLESS_SERVICE_CLUSTER_IP = "None";

public static final int MAXIMUM_CHARACTERS_OF_CLUSTER_ID = 45;
public static final int MAXIMUM_CHARACTERS_OF_CLUSTER_ID = 40;

public static final String RESTART_POLICY_OF_NEVER = "Never";

Expand Down

0 comments on commit 7f0824c

Please sign in to comment.