Skip to content

Conversation

sadasu
Copy link
Contributor

@sadasu sadasu commented Jul 15, 2025

  1. Add a featuregate for AzureClusterHostedDNS
  2. Add LB config to Azure PlatformStatus that can be used to run a CoreDNS based in-cluster DNS.

Identical features were added to GCP and AWS platforms and is now being extended to Azure too.

Copy link
Contributor

openshift-ci bot commented Jul 15, 2025

Hello @sadasu! Some important instructions when contributing to openshift/api:
API design plays an important part in the user experience of OpenShift and as such API PRs are subject to a high level of scrutiny to ensure they follow our best practices. If you haven't already done so, please review the OpenShift API Conventions and ensure that your proposed changes are compliant. Following these conventions will help expedite the api review process for your PR.

@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 15, 2025
@openshift-ci openshift-ci bot requested review from deads2k and JoelSpeed July 15, 2025 18:26
@sadasu sadasu force-pushed the azure-custom-dns branch from ce79b57 to 1c56366 Compare July 15, 2025 18:28
@sadasu sadasu force-pushed the azure-custom-dns branch 2 times, most recently from 49fea39 to ab30eb7 Compare July 16, 2025 20:50
@openshift-ci openshift-ci bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 16, 2025
@sadasu sadasu force-pushed the azure-custom-dns branch from ab30eb7 to e16b1f2 Compare July 16, 2025 21:49
@sadasu
Copy link
Contributor Author

sadasu commented Jul 17, 2025

/retest-required

1 similar comment
@sadasu
Copy link
Contributor Author

sadasu commented Jul 17, 2025

/retest-required

@sadasu sadasu changed the title Add Feature gate and update Infrastructure CR for Azure Cluster Hosted DNS CORS4155: Add Feature gate and update Infrastructure CR for Azure Cluster Hosted DNS Jul 17, 2025
@sadasu sadasu changed the title CORS4155: Add Feature gate and update Infrastructure CR for Azure Cluster Hosted DNS CORS-4155: Add Feature gate and update Infrastructure CR for Azure Cluster Hosted DNS Jul 17, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jul 17, 2025

@sadasu: This pull request references CORS-4155 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.20.0" version, but no target version was set.

In response to this:

  1. Add a featuregate for AzureClusterHostedDNS
  2. Add LB config to Azure PlatformStatus that can be used to run a CoreDNS based in-cluster DNS.

Identical features were added to GCP and AWS platforms and is now being extended to Azure too.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jul 17, 2025
@sadasu
Copy link
Contributor Author

sadasu commented Jul 21, 2025

/retest-required

Copy link
Contributor

@everettraven everettraven left a comment

Choose a reason for hiding this comment

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

Aside from removing the +nullable marker, the API changes looks good to me

Comment on lines 7 to 16
onCreate:
- name: Should be able to create a minimal Infrastructure
initial: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec: {} # No spec is required for a Infrastructure
expected: |
apiVersion: config.openshift.io/v1
kind: Infrastructure
spec: {}
Copy link
Contributor

Choose a reason for hiding this comment

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

Based on the CI failure, this looks like an invalid test case

Copy link
Contributor

Choose a reason for hiding this comment

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

CI failures are actually talking about ControllerConfig which is different, something has broken them though, @sandhya PTAL

Copy link
Contributor Author

Choose a reason for hiding this comment

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

+nullable marker has been removed. Infra CR is embedded within ControllerConfig. I'll take a look at the latest CI failures as soon as they become available.

@sadasu sadasu force-pushed the azure-custom-dns branch 2 times, most recently from fc8afd6 to 409f2a7 Compare July 24, 2025 15:49
@sadasu sadasu force-pushed the azure-custom-dns branch 2 times, most recently from 13a30cb to 14134b3 Compare July 25, 2025 04:37
@openshift-ci openshift-ci bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 25, 2025
@sadasu sadasu force-pushed the azure-custom-dns branch from 4f51346 to 6b2d867 Compare July 25, 2025 14:04
@sadasu sadasu force-pushed the azure-custom-dns branch from 6b2d867 to d589ab4 Compare July 25, 2025 15:57
@sadasu
Copy link
Contributor Author

sadasu commented Jul 26, 2025

/retest-required

@sadasu sadasu force-pushed the azure-custom-dns branch from d589ab4 to 641d603 Compare July 28, 2025 16:20
@sadasu
Copy link
Contributor Author

sadasu commented Jul 28, 2025

@everettraven and @JoelSpeed Could PTAL? Thanks!

@sadasu
Copy link
Contributor Author

sadasu commented Jul 28, 2025

/retest-required

@@ -336,6 +336,14 @@ var (
enableIn(configv1.DevPreviewNoUpgrade, configv1.TechPreviewNoUpgrade).
mustRegister()

FeatureGateAzureClusterHostedDNSInstall = newFeatureGate("AzureClusterHostedDNSInstall").
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does this one need the *Install suffix but the other platform gates did not?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://github.com/openshift/api/blob/master/tools/codegen/cmd/featuregate-test-analyzer.go#L566 requires names of Installer feature gates to contain "Install".
#2423 is starting the work of renaming existing featuregates.

Copy link
Contributor

@everettraven everettraven left a comment

Choose a reason for hiding this comment

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

Besides a small question on the naming of the gate compared to previous ones, this LGTM.

@JoelSpeed feel free to take a look

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 29, 2025
@sadasu sadasu force-pushed the azure-custom-dns branch from 641d603 to ba094a0 Compare July 29, 2025 13:58
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 29, 2025
@everettraven
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 30, 2025
@JoelSpeed
Copy link
Contributor

/lgtm

Copy link
Contributor

openshift-ci bot commented Jul 30, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: everettraven, JoelSpeed, sadasu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 30, 2025
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 4c1f9af and 2 for PR HEAD ba094a0 in total

Copy link
Contributor

openshift-ci bot commented Jul 30, 2025

@sadasu: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@openshift-merge-bot openshift-merge-bot bot merged commit 4a5da13 into openshift:master Jul 30, 2025
27 checks passed
@openshift-bot
Copy link

[ART PR BUILD NOTIFIER]

Distgit: ose-cluster-config-api
This PR has been included in build ose-cluster-config-api-container-v4.20.0-202507302114.p0.g4a5da13.assembly.stream.el9.
All builds following this will include this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants