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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

sotw: dnspolicy #937

wants to merge 4 commits into from

Commits on Oct 16, 2024

  1. sotw: dnspolicy init

    Add basic setup for DNSPolicy state of the world tasks, dnsrecord types,
    watcher and linker function (Listener -> DNSRecord)
    
    Signed-off-by: Michael Nairn <mnairn@redhat.com>
    mikenairn committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    26d3a47 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 16, 2024
    Configuration menu
    Copy the full SHA
    76839c3 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. sotw dnspolicy: init updates

    * Update dns policy validator in prepration 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 the correct label.
    * Adds predicates to only trigger on events to owned policies (might be pointless)
    
    Signed-off-by: Michael Nairn <mnairn@redhat.com>
    mikenairn committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    8e1afd2 View commit details
    Browse the repository at this point in the history
  2. sotw dnspolicy: delete orphan records updates

    * go mod updaate (main)
    
    Signed-off-by: Michael Nairn <mnairn@redhat.com>
    mikenairn committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    fb6c6a3 View commit details
    Browse the repository at this point in the history