Skip to content

Commit

Permalink
[Misc] Operator: Domain types added
Browse files Browse the repository at this point in the history
Introduce Domain, ClusterDomain types for enhanced networking
  • Loading branch information
Pavan-SAP committed Jan 27, 2025
1 parent 9b54951 commit 0e5c19d
Show file tree
Hide file tree
Showing 26 changed files with 1,731 additions and 0 deletions.
16 changes: 16 additions & 0 deletions crds/sme.sap.com_capapplications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,21 @@ spec:
type: object
btpAppName:
type: string
domainRefs:
items:
properties:
kind:
enum:
- Domain
- ClusterDomain
type: string
name:
type: string
required:
- kind
- name
type: object
type: array
domains:
properties:
dnsTarget:
Expand Down Expand Up @@ -103,6 +118,7 @@ spec:
required:
- btp
- btpAppName
- domainRefs
- domains
- globalAccountId
- provider
Expand Down
125 changes: 125 additions & 0 deletions crds/sme.sap.com_clusterdomains.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.1
name: clusterdomains.sme.sap.com
spec:
group: sme.sap.com
names:
kind: ClusterDomain
listKind: ClusterDomainList
plural: clusterdomains
shortNames:
- cldom
singular: clusterdomain
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
- jsonPath: .status.state
name: State
type: string
name: v1alpha1
schema:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
properties:
dnsMode:
enum:
- Node
- Wildcard
- Subdomain
type: string
dnsTarget:
pattern: ^[a-z0-9-.]+$
type: string
domain:
pattern: ^[a-z0-9-.]+$
type: string
ingressSelector:
additionalProperties:
type: string
type: object
tlsMode:
enum:
- Simple
- Mutual
type: string
required:
- dnsMode
- dnsTarget
- domain
- ingressSelector
- tlsMode
type: object
status:
properties:
conditions:
items:
properties:
lastTransitionTime:
format: date-time
type: string
message:
maxLength: 32768
type: string
observedGeneration:
format: int64
minimum: 0
type: integer
reason:
maxLength: 1024
minLength: 1
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
type: string
status:
enum:
- "True"
- "False"
- Unknown
type: string
type:
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
required:
- lastTransitionTime
- message
- reason
- status
- type
type: object
type: array
observedGeneration:
format: int64
type: integer
state:
enum:
- ""
- Ready
- Error
- Processing
- Deleting
type: string
required:
- state
type: object
required:
- metadata
- spec
type: object
served: true
storage: true
subresources:
status: {}
125 changes: 125 additions & 0 deletions crds/sme.sap.com_domains.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.17.1
name: domains.sme.sap.com
spec:
group: sme.sap.com
names:
kind: Domain
listKind: DomainList
plural: domains
shortNames:
- dom
singular: domain
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
- jsonPath: .status.state
name: State
type: string
name: v1alpha1
schema:
openAPIV3Schema:
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
properties:
dnsMode:
enum:
- Node
- Wildcard
- Subdomain
type: string
dnsTarget:
pattern: ^[a-z0-9-.]+$
type: string
domain:
pattern: ^[a-z0-9-.]+$
type: string
ingressSelector:
additionalProperties:
type: string
type: object
tlsMode:
enum:
- Simple
- Mutual
type: string
required:
- dnsMode
- dnsTarget
- domain
- ingressSelector
- tlsMode
type: object
status:
properties:
conditions:
items:
properties:
lastTransitionTime:
format: date-time
type: string
message:
maxLength: 32768
type: string
observedGeneration:
format: int64
minimum: 0
type: integer
reason:
maxLength: 1024
minLength: 1
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
type: string
status:
enum:
- "True"
- "False"
- Unknown
type: string
type:
maxLength: 316
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
type: string
required:
- lastTransitionTime
- message
- reason
- status
- type
type: object
type: array
observedGeneration:
format: int64
type: integer
state:
enum:
- ""
- Ready
- Error
- Processing
- Deleting
type: string
required:
- state
type: object
required:
- metadata
- spec
type: object
served: true
storage: true
subresources:
status: {}
Loading

0 comments on commit 0e5c19d

Please sign in to comment.