Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ChengJie1053
Copy link
Member

Flink supports k8s operator submit task

}

public FlinkDeployment getFlinkDeployment(String name, String namespace) {
FlinkDeployment FlinkDeployment = new FlinkDeployment();
Copy link
Member

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);
Copy link
Member

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())
Copy link
Member

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

Copy link
Member Author

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);
Copy link
Member

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to update

Copy link
Member Author

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

@ChengJie1053 ChengJie1053 changed the title Flink supports k8s operator submit task [WIP] Flink supports k8s operator submit task Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants