Skip to content

Conversation

@chenyuzhi459
Copy link
Contributor

What is the purpose of the change

Fix can not setup other values for parameter rest-service.exposed.type when using ingress

Brief change log

Only if using ingress and the rest-service.exposed.type=null, operator will setup as ClusterIp when

Verifying this change

Unit tests + manual verification

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API, i.e., is any changes to the CustomResourceDescriptors: (no)
  • Core observer or reconciler logic that is regularly executed: (no)

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable)

@chenyuzhi459 chenyuzhi459 force-pushed the 36264/fix_customize_rest-service-exposed-type branch from 458aa09 to 9d9d42c Compare September 26, 2024 12:42
protected FlinkConfigBuilder applyIngressDomain() {
// Web UI
if (spec.getIngress() != null) {
if (spec.getIngress() != null
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can get rid of applyIngressDomain() altogether, this default configuration is already applied in method applyFlinkConfiguration(), where it's only set if the configuration is not yet set by the user.

Copy link
Contributor Author

@chenyuzhi459 chenyuzhi459 Oct 12, 2024

Choose a reason for hiding this comment

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

Thanks, I have removed applyIngressDomain() and tested it works as expected

@chenyuzhi459 chenyuzhi459 force-pushed the 36264/fix_customize_rest-service-exposed-type branch from a024636 to 6fd4d0f Compare October 12, 2024 09:27
@gyfora gyfora merged commit 4d5b2c9 into apache:main Oct 13, 2024
233 checks passed
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.

3 participants