Skip to content

Commit

Permalink
add owner ID to DNS Record spec
Browse files Browse the repository at this point in the history
  • Loading branch information
philbrookes committed Mar 15, 2024
1 parent bcd4ba8 commit 42d4ea6
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
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.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=dns-operator
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.33.0
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.34.1
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v4

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 42d4ea6

Please sign in to comment.