-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prior to this commit the API fields for remote resolution were just stubs with no functionality. This commit adds support for resolving pipelineRefs from public git repos using the tektoncd/resolution project. This feature is in alpha and relies on a new CRD called a ResourceRequest.
- Loading branch information
1 parent
cd4704c
commit adc127a
Showing
140 changed files
with
7,195 additions
and
580 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# Copyright 2022 The Tekton Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: resolutionrequests.resolution.tekton.dev | ||
labels: | ||
resolution.tekton.dev/release: devel | ||
spec: | ||
group: resolution.tekton.dev | ||
scope: Namespaced | ||
names: | ||
kind: ResolutionRequest | ||
plural: resolutionrequests | ||
singular: resolutionrequest | ||
categories: | ||
- all | ||
- tekton | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
schema: | ||
openAPIV3Schema: | ||
type: object | ||
properties: | ||
spec: | ||
description: Spec holds the parameters for the request. | ||
type: object | ||
properties: | ||
params: | ||
type: object | ||
x-kubernetes-preserve-unknown-fields: true | ||
status: | ||
description: Status receives the data of a completed request. | ||
type: object | ||
properties: | ||
data: | ||
description: The resolved contents of the requested resource in-lined as a string. | ||
type: string | ||
annotations: | ||
description: Annotations is additional Status fields for the Resource to save some additional State as well as convey more information to the user. This is roughly akin to Annotations on any k8s resource, just the reconciler conveying richer information outwards. | ||
type: object | ||
x-kubernetes-preserve-unknown-fields: true | ||
conditions: | ||
description: Conditions the latest available observations of a resource's current state. | ||
type: array | ||
items: | ||
description: Conditions describe the success and completion state of the resource request. | ||
type: object | ||
required: | ||
- status | ||
- type | ||
properties: | ||
lastTransitionTime: | ||
description: LastTransitionTime is the last time the condition transitioned from one status to another. We use VolatileTime in place of metav1.Time to exclude this from creating equality.Semantic differences (all other things held constant). | ||
type: string | ||
format: date-time | ||
message: | ||
description: A human readable message indicating details about the transition. | ||
type: string | ||
reason: | ||
description: The reason for the condition's last transition. | ||
type: string | ||
severity: | ||
description: Severity with which to treat failures of this type of condition. When this is not specified, it defaults to Error. | ||
type: string | ||
status: | ||
description: Status of the condition, one of True, False, Unknown. | ||
type: string | ||
type: | ||
description: Type of condition. | ||
type: string | ||
observedGeneration: | ||
description: ObservedGeneration is the 'Generation' of the Service that was last processed by the controller. | ||
type: integer | ||
format: int64 | ||
additionalPrinterColumns: | ||
- name: Succeeded | ||
type: string | ||
jsonPath: ".status.conditions[?(@.type=='Succeeded')].status" | ||
- name: Reason | ||
type: string | ||
jsonPath: ".status.conditions[?(@.type=='Succeeded')].reason" |
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
Oops, something went wrong.