Skip to content

Commit 2c9cf4f

Browse files
nader-ziadaknative-prow-robot
authored andcommitted
Cleanup of clusterTask type and config yaml
- added copyright notice to yaml files in config/ - removed labels left over from kubebuilder generation from yaml files - fixed ClusterTask type in list items - add correct optional type in taskRun type Signed-off-by: Nader Ziada <[email protected]>
1 parent 80ebc69 commit 2c9cf4f

9 files changed

+82
-22
lines changed

config/300-clustertask.yaml

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1+
# Copyright 2018 The Knative Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
114
apiVersion: apiextensions.k8s.io/v1beta1
215
kind: CustomResourceDefinition
316
metadata:
4-
creationTimestamp: null
5-
labels:
6-
controller-tools.k8s.io: "1.0"
717
name: clustertasks.pipeline.knative.dev
818
spec:
919
group: pipeline.knative.dev

config/300-pipeline.yaml

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1+
# Copyright 2018 The Knative Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
114
apiVersion: apiextensions.k8s.io/v1beta1
215
kind: CustomResourceDefinition
316
metadata:
4-
creationTimestamp: null
5-
labels:
6-
controller-tools.k8s.io: "1.0"
717
name: pipelines.pipeline.knative.dev
818
spec:
919
group: pipeline.knative.dev

config/300-pipelinerun.yaml

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1+
# Copyright 2018 The Knative Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
114
apiVersion: apiextensions.k8s.io/v1beta1
215
kind: CustomResourceDefinition
316
metadata:
4-
creationTimestamp: null
5-
labels:
6-
controller-tools.k8s.io: "1.0"
717
name: pipelineruns.pipeline.knative.dev
818
spec:
919
group: pipeline.knative.dev

config/300-resource.yaml

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1+
# Copyright 2018 The Knative Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
114
apiVersion: apiextensions.k8s.io/v1beta1
215
kind: CustomResourceDefinition
316
metadata:
4-
creationTimestamp: null
5-
labels:
6-
controller-tools.k8s.io: "1.0"
717
name: pipelineresources.pipeline.knative.dev
818
spec:
919
group: pipeline.knative.dev

config/300-task.yaml

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1+
# Copyright 2018 The Knative Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
114
apiVersion: apiextensions.k8s.io/v1beta1
215
kind: CustomResourceDefinition
316
metadata:
4-
creationTimestamp: null
5-
labels:
6-
controller-tools.k8s.io: "1.0"
717
name: tasks.pipeline.knative.dev
818
spec:
919
group: pipeline.knative.dev

config/300-taskrun.yaml

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1+
# Copyright 2018 The Knative Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
114
apiVersion: apiextensions.k8s.io/v1beta1
215
kind: CustomResourceDefinition
316
metadata:
4-
creationTimestamp: null
5-
labels:
6-
controller-tools.k8s.io: "1.0"
717
name: taskruns.pipeline.knative.dev
818
spec:
919
group: pipeline.knative.dev

pkg/apis/pipeline/v1alpha1/cluster_task_types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ type ClusterTaskList struct {
6868
metav1.TypeMeta `json:",inline"`
6969
// +optional
7070
metav1.ListMeta `json:"metadata,omitempty"`
71-
Items []Task `json:"items"`
71+
Items []ClusterTask `json:"items"`
7272
}

pkg/apis/pipeline/v1alpha1/taskrun_types.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ type TaskRunSpec struct {
4848
ServiceAccount string `json:"serviceAccount,omitempty"`
4949
// no more than one of the TaskRef and TaskSpec may be specified.
5050
// +optional
51-
TaskRef *TaskRef `json:"taskRef"`
51+
TaskRef *TaskRef `json:"taskRef,omitempty"`
5252
//+optional
53-
TaskSpec *TaskSpec `json:"taskSpec"`
53+
TaskSpec *TaskSpec `json:"taskSpec,omitempty"`
5454
}
5555

5656
// TaskRunInputs holds the input values that this task was invoked with.

pkg/apis/pipeline/v1alpha1/zz_generated.deepcopy.go

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)