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

sotw: dnspolicy #937

Merged
merged 6 commits into from
Oct 25, 2024
Merged

sotw: dnspolicy #937

merged 6 commits into from
Oct 25, 2024

Commits on Oct 25, 2024

  1. sotw: dnspolicy init

    Add basic setup for DNSPolicy state of the world tasks, dnsrecord types,
    watcher and linker function (Listener -> DNSRecord)
    
    * Update dns policy validator in preparation for status updates, adds
      correct errors for acceptance.
    * Add common labels that get applied to all dnsrecord resources created
      by the kuadrant operator
    * Add filter to topology for dnsrecords to only add records that contain
    
    Signed-off-by: Michael Nairn <mnairn@redhat.com>
    mikenairn committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    50884df View commit details
    Browse the repository at this point in the history
  2. sotw: dnspolicy delete orphan records

    Move all logic to delete orphan dnsrecord resources for a DNSPolicy to
    the sotw reconciler and based all decisions on the current topology.
    
    Orphan record is one that no longer has a valid path between it's
    owner DNSPolicy and itself in the topology. This covers the following
    scenarios:
    
    * Listener is deleted from the Gateway
    * Gateway is deleted
    * Policy is deleted(K8s will also deal with this due to the owner
      relationship)
    * Policy ref is changed
    
    Does not deal with the removal of records based on the state of the
    gateway.
    
    Signed-off-by: Michael Nairn <mnairn@redhat.com>
    mikenairn committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    d1120cd View commit details
    Browse the repository at this point in the history
  3. sotw dnspolicy: status

    Signed-off-by: Michael Nairn <mnairn@redhat.com>
    mikenairn committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    90a8d03 View commit details
    Browse the repository at this point in the history
  4. sotw dnspolicy: dnspolicies reconciliation

    Signed-off-by: Michael Nairn <mnairn@redhat.com>
    mikenairn committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    b40fe8b View commit details
    Browse the repository at this point in the history
  5. sotw dnspolicy: cross cutting updates

    * Add dnsPolicyTypeFilterFunc for reuse across dns policy tasks
    * Add Validate method to DNSPolicy
    * Add context specific errors to state during reconciliation and append
    them to the enforced message on status update.
    
    Signed-off-by: Michael Nairn <mnairn@redhat.com>
    mikenairn committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    46f5400 View commit details
    Browse the repository at this point in the history
  6. Bump policy-machinery v0.6.1

    Requires this fix Kuadrant/policy-machinery#45
    
    Signed-off-by: Michael Nairn <mnairn@redhat.com>
    mikenairn committed Oct 25, 2024
    Configuration menu
    Copy the full SHA
    2469b62 View commit details
    Browse the repository at this point in the history