generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Allow --local-crds
flag to receive multiple values
#101
Merged
k8s-ci-robot
merged 2 commits into
kubernetes-sigs:main
from
doom:allow-local-crds-flag-to-receive-multiple-values
Apr 10, 2024
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.5.0 | ||
api-approved.kubernetes.io: "https://github.com/kubernetes-sigs/external-dns/pull/2007" | ||
creationTimestamp: null | ||
name: dnsendpoints.externaldns.k8s.io | ||
spec: | ||
group: externaldns.k8s.io | ||
names: | ||
kind: DNSEndpoint | ||
listKind: DNSEndpointList | ||
plural: dnsendpoints | ||
singular: dnsendpoint | ||
scope: Namespaced | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: DNSEndpointSpec defines the desired state of DNSEndpoint | ||
properties: | ||
endpoints: | ||
items: | ||
description: Endpoint is a high-level way of a connection between a service and an IP | ||
properties: | ||
dnsName: | ||
description: The hostname of the DNS record | ||
type: string | ||
labels: | ||
additionalProperties: | ||
type: string | ||
description: Labels stores labels defined for the Endpoint | ||
type: object | ||
providerSpecific: | ||
description: ProviderSpecific stores provider specific config | ||
items: | ||
description: ProviderSpecificProperty holds the name and value of a configuration which is specific to individual DNS providers | ||
properties: | ||
name: | ||
type: string | ||
value: | ||
type: string | ||
type: object | ||
type: array | ||
recordTTL: | ||
description: TTL for the record | ||
format: int64 | ||
type: integer | ||
recordType: | ||
description: RecordType type of record, e.g. CNAME, A, SRV, TXT etc | ||
type: string | ||
setIdentifier: | ||
description: Identifier to distinguish multiple records with the same name and type (e.g. Route53 records with routing policies other than 'simple') | ||
type: string | ||
targets: | ||
description: The targets the DNS record points to | ||
items: | ||
type: string | ||
type: array | ||
type: object | ||
type: array | ||
type: object | ||
status: | ||
description: DNSEndpointStatus defines the observed state of DNSEndpoint | ||
properties: | ||
observedGeneration: | ||
description: The generation observed by the external-dns controller. | ||
format: int64 | ||
type: integer | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to stop if any of the directory fails? I think we do
But do we want to report all errors if multiple directories fail? I suspect so too, thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree for a better user experience we likely should accumulate and report all errors at once.
However it seems the current strategy for this function is to fail as soon as any error is encountered (e.g. first file that cannot be read). Perhaps we could revisit it outside of this PR ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sgtm