Skip to content

Commit

Permalink
Remove PipelineResources
Browse files Browse the repository at this point in the history
Remove support for PipelineResources from the Dashboard. They have been deprecated
since Tekton Pipelines v0.30.0 in November 2021.

This also involves updating the Import Resources functionality to use a Task
instead of PipelineResources (git). The Task uses the git-init image also used
by the git-clone Task in the catalog.
  • Loading branch information
AlanGreene authored and tekton-robot committed Jan 13, 2023
1 parent 896eb37 commit 09ef68e
Show file tree
Hide file tree
Showing 73 changed files with 329 additions and 3,652 deletions.
7 changes: 6 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2020-2022 The Tekton Authors
Copyright 2020-2023 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
Expand Down Expand Up @@ -56,6 +56,11 @@ module.exports = {
test: /\.scss$/,
use: ['style-loader', 'css-loader', 'sass-loader'],
include: path.resolve(__dirname, '../'),
}, {
test: /\.yaml$/,
type: 'json',
loader: 'yaml-loader',
options: { asJSON: true }
});

return config;
Expand Down
3 changes: 1 addition & 2 deletions base/200-clusterrole-tenant.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2022 The Tekton Authors
# Copyright 2019-2023 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.
Expand Down Expand Up @@ -48,7 +48,6 @@ rules:
- taskruns
- pipelines
- pipelineruns
- pipelineresources
- runs
verbs:
- get
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2019 The Tekton Authors
Copyright 2023 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
Expand All @@ -10,5 +10,8 @@ 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.
*/
/* istanbul ignore file */
export default from './PipelineResources';

module.exports = {
metadata: {},
spec: {}
};
4 changes: 0 additions & 4 deletions docs/dev/localization/Japanese/term.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ completed 完了
fail 失敗
location 場所
available 利用可能
output Resources 出力リソース
input Resources 入力リソース
input 入力
Pending 保留
accepted 使用可能
Expand Down Expand Up @@ -153,8 +151,6 @@ Taskruns Taskrun
ClusterTask ClusterTask
ClusterTasks ClusterTask
ClusterTriggerBinding ClusterTriggerBinding
PipelineResource PipelineResource
PipelineResources PipelineResource
Secret Secret
Secrets Secret
URL URL
Expand Down
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2019-2022 The Tekton Authors
Copyright 2019-2023 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
Expand Down Expand Up @@ -35,6 +35,7 @@ module.exports = {
'<rootDir>/config_frontend/__mocks__/svgMock.js',
'\\.(png|svg|woff|woff2)$':
'<rootDir>/config_frontend/__mocks__/fileMock.js',
'\\.yaml$': '<rootDir>/config_frontend/__mocks__/resourceMock.js',
'\\.(css|scss)$': '<rootDir>/config_frontend/__mocks__/styleMock.js'
},
restoreMocks: true,
Expand Down
3 changes: 1 addition & 2 deletions overlays/patches/read-write/clusterrole-tenant-patch.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020-2022 The Tekton Authors
# Copyright 2020-2023 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.
Expand All @@ -23,7 +23,6 @@
- taskruns
- pipelines
- pipelineruns
- pipelineresources
- runs
verbs:
- create
Expand Down
57 changes: 56 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.11.1",
"webpack-merge": "^5.8.0"
"webpack-merge": "^5.8.0",
"yaml-loader": "^0.8.0"
},
"engines": {
"node": "^16.18.1",
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 09ef68e

Please sign in to comment.