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

additional printer columns #138

Merged
merged 1 commit into from
Nov 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 51 additions & 8 deletions charts/external-dns-management/templates/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,48 @@ metadata:
spec:
additionalPrinterColumns:
- JSONPath: .spec.dnsName
description: DNS ObjectName
description: FQDN of DNS Entry
name: DNS
type: string
- JSONPath: .status.providerType
description: Provider type
description: provider type
name: TYPE
type: string
- JSONPath: .status.provider
description: Provider
description: assigned provider (namespace/name)
name: PROVIDER
type: string
- JSONPath: .status.state
description: Status of DNS entry in cloud provider
description: entry status
name: STATUS
type: string
- JSONPath: .metadata.creationTimestamp
description: entry creation timestamp
name: AGE
type: date
- JSONPath: .status.targets
description: effective targets
name: TARGETS
type: string
- JSONPath: .spec.ownerId
description: owner id used to tag entries in external DNS system
name: OWNERID
type: string
- JSONPath: .status.ttl
description: time to live
name: TTL
priority: 2000
type: integer
- JSONPath: .status.zone
description: zone id
name: ZONE
priority: 2000
type: string
- JSONPath: .status.message
description: message describing the reason for the state
name: MESSAGE
priority: 2000
type: string
conversion:
strategy: None
group: dns.gardener.cloud
Expand Down Expand Up @@ -236,10 +260,16 @@ metadata:
spec:
additionalPrinterColumns:
- JSONPath: .spec.ownerId
description: Owner Id
name: OWNERID
name: OwnerId
type: string
- JSONPath: .spec.active
name: Active
type: boolean
- JSONPath: .status.entries.amount
name: Usages
type: integer
- JSONPath: .metadata.creationTimestamp
description: creation timestamp
name: AGE
type: date
conversion:
Expand Down Expand Up @@ -272,16 +302,29 @@ metadata:
spec:
additionalPrinterColumns:
- JSONPath: .spec.type
description: Provider type
name: TYPE
type: string
- JSONPath: .status.state
description: Status of DNS provider
name: STATUS
type: string
- JSONPath: .metadata.creationTimestamp
description: creation timestamp
name: AGE
type: date
- JSONPath: .status.domains.included
description: included domains
name: INCLUDED_DOMAINS
type: string
- JSONPath: .status.zones.included
description: included zones
name: INCLUDED_ZONES
priority: 2000
type: string
- JSONPath: .status.message
description: message describing the reason for the state
name: MESSAGE
priority: 2000
type: string
conversion:
strategy: None
group: dns.gardener.cloud
Expand Down
59 changes: 51 additions & 8 deletions examples/10-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,48 @@ metadata:
spec:
additionalPrinterColumns:
- JSONPath: .spec.dnsName
description: DNS ObjectName
description: FQDN of DNS Entry
name: DNS
type: string
- JSONPath: .status.providerType
description: Provider type
description: provider type
name: TYPE
type: string
- JSONPath: .status.provider
description: Provider
description: assigned provider (namespace/name)
name: PROVIDER
type: string
- JSONPath: .status.state
description: Status of DNS entry in cloud provider
description: entry status
name: STATUS
type: string
- JSONPath: .metadata.creationTimestamp
description: entry creation timestamp
name: AGE
type: date
- JSONPath: .status.targets
description: effective targets
name: TARGETS
type: string
- JSONPath: .spec.ownerId
description: owner id used to tag entries in external DNS system
name: OWNERID
type: string
- JSONPath: .status.ttl
description: time to live
name: TTL
priority: 2000
type: integer
- JSONPath: .status.zone
description: zone id
name: ZONE
priority: 2000
type: string
- JSONPath: .status.message
description: message describing the reason for the state
name: MESSAGE
priority: 2000
type: string
conversion:
strategy: None
group: dns.gardener.cloud
Expand Down Expand Up @@ -232,10 +256,16 @@ metadata:
spec:
additionalPrinterColumns:
- JSONPath: .spec.ownerId
description: Owner Id
name: OWNERID
name: OwnerId
type: string
- JSONPath: .spec.active
name: Active
type: boolean
- JSONPath: .status.entries.amount
name: Usages
type: integer
- JSONPath: .metadata.creationTimestamp
description: creation timestamp
name: AGE
type: date
conversion:
Expand Down Expand Up @@ -263,16 +293,29 @@ metadata:
spec:
additionalPrinterColumns:
- JSONPath: .spec.type
description: Provider type
name: TYPE
type: string
- JSONPath: .status.state
description: Status of DNS provider
name: STATUS
type: string
- JSONPath: .metadata.creationTimestamp
description: creation timestamp
name: AGE
type: date
- JSONPath: .status.domains.included
description: included domains
name: INCLUDED_DOMAINS
type: string
- JSONPath: .status.zones.included
description: included zones
name: INCLUDED_ZONES
priority: 2000
type: string
- JSONPath: .status.message
description: message describing the reason for the state
name: MESSAGE
priority: 2000
type: string
conversion:
strategy: None
group: dns.gardener.cloud
Expand Down
62 changes: 43 additions & 19 deletions examples/11-crd-dnse-val.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,49 @@ spec:
- dnse
singular: dnsentry
additionalPrinterColumns:
- JSONPath: .spec.dnsName
description: DNS ObjectName
name: DNS
type: string
- JSONPath: .status.providerType
description: Provider type
name: TYPE
type: string
- JSONPath: .status.provider
description: Provider
name: PROVIDER
type: string
- JSONPath: .status.state
description: Status of DNS entry in cloud provider
name: STATUS
type: string
- JSONPath: .metadata.creationTimestamp
name: AGE
type: date
- JSONPath: .spec.dnsName
description: FQDN of DNS Entry
name: DNS
type: string
- JSONPath: .status.providerType
description: provider type
name: TYPE
type: string
- JSONPath: .status.provider
description: assigned provider (namespace/name)
name: PROVIDER
type: string
- JSONPath: .status.state
description: entry status
name: STATUS
type: string
- JSONPath: .metadata.creationTimestamp
description: entry creation timestamp
name: AGE
type: date
- JSONPath: .status.targets
description: effective targets
name: TARGETS
type: string
- JSONPath: .spec.ownerId
description: owner id used to tag entries in external DNS system
name: OWNERID
type: string
- JSONPath: .status.ttl
description: time to live
name: TTL
priority: 2000
type: integer
- JSONPath: .status.zone
description: zone id
name: ZONE
priority: 2000
type: string
- JSONPath: .status.message
description: message describing the reason for the state
name: MESSAGE
priority: 2000
type: string
validation:
openAPIV3Schema:
type: object
Expand Down
35 changes: 24 additions & 11 deletions examples/11-crd-dnspr-val.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,30 @@ spec:
- dnspr
singular: dnsprovider
additionalPrinterColumns:
- JSONPath: .spec.type
description: Provider type
name: TYPE
type: string
- JSONPath: .status.state
description: Status of DNS provider
name: STATUS
type: string
- JSONPath: .metadata.creationTimestamp
name: AGE
type: date
- JSONPath: .spec.type
name: TYPE
type: string
- JSONPath: .status.state
name: STATUS
type: string
- JSONPath: .metadata.creationTimestamp
description: creation timestamp
name: AGE
type: date
- JSONPath: .status.domains.included
description: included domains
name: INCLUDED_DOMAINS
type: string
- JSONPath: .status.zones.included
description: included zones
name: INCLUDED_ZONES
priority: 2000
type: string
- JSONPath: .status.message
description: message describing the reason for the state
name: MESSAGE
priority: 2000
type: string
validation:
openAPIV3Schema:
type: object
Expand Down
Loading