-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Flink supports k8s operator submit task #4902
[WIP] Flink supports k8s operator submit task #4902
Conversation
} | ||
|
||
public FlinkDeployment getFlinkDeployment(String name, String namespace) { | ||
FlinkDeployment FlinkDeployment = new FlinkDeployment(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FlinkDeployment flinkDeployment = ...
CustomResourceDefinitionList crds = | ||
client.apiextensions().v1().customResourceDefinitions().list(); | ||
|
||
String FlinkDeploymentCRDName = CustomResource.getCRDName(FlinkDeployment.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String flinkDeploymentCRDName = ...
public void startFlinkKubernetesOperatorWatcher() { | ||
getFlinkDeploymentClient() | ||
.inNamespace(this.config.getK8sNamespace()) | ||
.withName(this.config.getFlinkAppName()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider replacing with label ticket-id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thanks for reviewing the code
FlinkDeployment FlinkDeployment = new FlinkDeployment(); | ||
ObjectMeta metadata = new ObjectMeta(); | ||
metadata.setName(name); | ||
metadata.setNamespace(namespace); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set some labels here (like "from-app": "linkis"
, "linkis-ticket-id": ${ticketId}
)
* {@link Diffable} classes can be compared with other {@link Diffable} objects for differences. | ||
* | ||
* <p>Inspired by: | ||
* https://github.com/apache/commons-lang/blob/master/src/main/java/org/apache/commons/lang3/builder/Diffable.java |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, thanks for reviewing the code
Flink supports k8s operator submit task