Skip to content

Commit

Permalink
Merge pull request #59 from philbrookes/gh-492
Browse files Browse the repository at this point in the history
add owner ID to DNS Record spec
  • Loading branch information
philbrookes authored Mar 15, 2024
2 parents bcd4ba8 + 16bc8da commit 515b614
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
4 changes: 4 additions & 0 deletions api/v1alpha1/dnsrecord_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ import (
// DNSRecordSpec defines the desired state of DNSRecord
type DNSRecordSpec struct {

// OwnerID is a unique string used to identify all endpoints created by this kuadrant
// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="OwnerID is immutable"
// +optional
OwnerID *string `json:"ownerID,omitempty"`
// rootHost is the single root for all endpoints in a DNSRecord.
//If rootHost is set, it is expected all defined endpoints are children of or equal to this rootHost
// +optional
Expand Down
2 changes: 1 addition & 1 deletion bundle/manifests/dns-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ metadata:
capabilities: Basic Install
categories: Integration & Delivery
containerImage: quay.io/kuadrant/dns-operator:latest
createdAt: "2024-03-11T14:53:47Z"
createdAt: "2024-03-15T11:01:46Z"
description: A Kubernetes Operator to manage the lifecycle of DNS resources
operators.operatorframework.io/builder: operator-sdk-v1.33.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v4
Expand Down
7 changes: 7 additions & 0 deletions bundle/manifests/kuadrant.io_dnsrecords.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ spec:
required:
- name
type: object
ownerID:
description: OwnerID is a unique string used to identify all endpoints
created by this kuadrant
type: string
x-kubernetes-validations:
- message: OwnerID is immutable
rule: self == oldSelf
rootHost:
description: "rootHost is the single root for all endpoints in a DNSRecord.
If rootHost is set, it is expected all defined endpoints are children
Expand Down
7 changes: 7 additions & 0 deletions config/crd/bases/kuadrant.io_dnsrecords.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ spec:
required:
- name
type: object
ownerID:
description: OwnerID is a unique string used to identify all endpoints
created by this kuadrant
type: string
x-kubernetes-validations:
- message: OwnerID is immutable
rule: self == oldSelf
rootHost:
description: "rootHost is the single root for all endpoints in a DNSRecord.
If rootHost is set, it is expected all defined endpoints are children
Expand Down

0 comments on commit 515b614

Please sign in to comment.