@backstage-community/plugin-tekton-common 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,36 @@
1
+ # @janus-idp/backstage-plugin-tekton-common
2
+
3
+ ## 1.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fa93564: Migrate Tekton plugin from Janus-IDP community to Backstage community-plugins
8
+
9
+ - The plugin now recommends and supports a new annotation to show Tekton PipelineRuns on the CI/CD tab: `tekton.dev/cicd: "true"`
10
+ - The old annotation `janus-idp.io/tekton` is still supported. Any value there enables the plugin.
11
+ - The plugin doesn't export `TEKTON_CI_ANNOTATION`, please use `TektonAnnotations.CICD` from `@backstage-community/plugin-tekton-common` instead. This is a minor breaking change since an update also requires a npm package change.
12
+
13
+ ## 1.3.1
14
+
15
+ ### Patch Changes
16
+
17
+ - 0e6bfd3: feat: update Backstage to the latest version
18
+
19
+ Update to Backstage 1.32.5
20
+
21
+ ## 1.3.0
22
+
23
+ ### Minor Changes
24
+
25
+ - 8244f28: chore(deps): update to backstage 1.32
26
+
27
+ ## 1.2.0
28
+
29
+ ### Minor Changes
30
+
31
+ - d9551ae: feat(deps): update to backstage 1.31
32
+
33
+ ### Patch Changes
34
+
35
+ - d9551ae: change deps to peer deps in common packages
36
+ - d9551ae: upgrade to yarn v3
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # Tekton Common plugin
2
+
3
+ Welcome to the tekton-common plugin!
4
+
5
+ This plugin contains common utilities for the tekton plugin.
6
+
7
+ # Tekton plugin for Backstage
8
+
9
+ The Tekton plugin enables you to visualize the `PipelineRun` resources available on the Kubernetes cluster.
10
+
11
+ For more information about Tekton plugin, see the [Tekton plugin documentation](https://github.com/backstage/community-plugins/tree/main/workspaces/tekton/plugins/tekton) on GitHub.
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var TektonAnnotations = /* @__PURE__ */ ((TektonAnnotations2) => {
4
+ TektonAnnotations2["CICD"] = "tekton.dev/cicd";
5
+ return TektonAnnotations2;
6
+ })(TektonAnnotations || {});
7
+
8
+ exports.TektonAnnotations = TektonAnnotations;
9
+ //# sourceMappingURL=annotations.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotations.cjs.js","sources":["../src/annotations.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Annotations to enable or configure the Tekton plugin.\n *\n * @public\n */\nexport enum TektonAnnotations {\n /**\n * Enables the CI/CD feature for catalog entities.\n *\n * Key is `tekton.dev/cicd`, value should be set to `\"true\"`.\n *\n * Quoates are required because catalog entity annotation-values must be a string.\n */\n CICD = 'tekton.dev/cicd',\n}\n"],"names":["TektonAnnotations"],"mappings":";;AAoBY,IAAA,iBAAA,qBAAAA,kBAAL,KAAA;AAQL,EAAAA,mBAAA,MAAO,CAAA,GAAA,iBAAA;AARG,EAAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA;;;;"}
@@ -0,0 +1,7 @@
1
+ var TektonAnnotations = /* @__PURE__ */ ((TektonAnnotations2) => {
2
+ TektonAnnotations2["CICD"] = "tekton.dev/cicd";
3
+ return TektonAnnotations2;
4
+ })(TektonAnnotations || {});
5
+
6
+ export { TektonAnnotations };
7
+ //# sourceMappingURL=annotations.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotations.esm.js","sources":["../src/annotations.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Annotations to enable or configure the Tekton plugin.\n *\n * @public\n */\nexport enum TektonAnnotations {\n /**\n * Enables the CI/CD feature for catalog entities.\n *\n * Key is `tekton.dev/cicd`, value should be set to `\"true\"`.\n *\n * Quoates are required because catalog entity annotation-values must be a string.\n */\n CICD = 'tekton.dev/cicd',\n}\n"],"names":["TektonAnnotations"],"mappings":"AAoBY,IAAA,iBAAA,qBAAAA,kBAAL,KAAA;AAQL,EAAAA,mBAAA,MAAO,CAAA,GAAA,iBAAA;AARG,EAAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA;;;;"}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var annotations = require('./annotations.cjs.js');
4
+ var permissions = require('./permissions.cjs.js');
5
+
6
+
7
+
8
+ exports.TektonAnnotations = annotations.TektonAnnotations;
9
+ exports.tektonPermissions = permissions.tektonPermissions;
10
+ exports.tektonViewPermission = permissions.tektonViewPermission;
11
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -0,0 +1,32 @@
1
+ import * as _backstage_plugin_permission_common from '@backstage/plugin-permission-common';
2
+
3
+ /**
4
+ * Annotations to enable or configure the Tekton plugin.
5
+ *
6
+ * @public
7
+ */
8
+ declare enum TektonAnnotations {
9
+ /**
10
+ * Enables the CI/CD feature for catalog entities.
11
+ *
12
+ * Key is `tekton.dev/cicd`, value should be set to `"true"`.
13
+ *
14
+ * Quoates are required because catalog entity annotation-values must be a string.
15
+ */
16
+ CICD = "tekton.dev/cicd"
17
+ }
18
+
19
+ /**
20
+ * Permission to view tekton resources.
21
+ *
22
+ * @public
23
+ */
24
+ declare const tektonViewPermission: _backstage_plugin_permission_common.BasicPermission;
25
+ /**
26
+ * List of all permissions on permission polices.
27
+ *
28
+ * @public
29
+ */
30
+ declare const tektonPermissions: _backstage_plugin_permission_common.BasicPermission[];
31
+
32
+ export { TektonAnnotations, tektonPermissions, tektonViewPermission };
@@ -0,0 +1,3 @@
1
+ export { TektonAnnotations } from './annotations.esm.js';
2
+ export { tektonPermissions, tektonViewPermission } from './permissions.esm.js';
3
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ var pluginPermissionCommon = require('@backstage/plugin-permission-common');
4
+
5
+ const tektonViewPermission = pluginPermissionCommon.createPermission({
6
+ name: "tekton.view.read",
7
+ attributes: {
8
+ action: "read"
9
+ }
10
+ });
11
+ const tektonPermissions = [tektonViewPermission];
12
+
13
+ exports.tektonPermissions = tektonPermissions;
14
+ exports.tektonViewPermission = tektonViewPermission;
15
+ //# sourceMappingURL=permissions.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissions.cjs.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createPermission } from '@backstage/plugin-permission-common';\n\n/**\n * Permission to view tekton resources.\n *\n * @public\n */\nexport const tektonViewPermission = createPermission({\n name: 'tekton.view.read',\n attributes: {\n action: 'read',\n },\n});\n\n/**\n * List of all permissions on permission polices.\n *\n * @public\n */\nexport const tektonPermissions = [tektonViewPermission];\n"],"names":["createPermission"],"mappings":";;;;AAsBO,MAAM,uBAAuBA,uCAAiB,CAAA;AAAA,EACnD,IAAM,EAAA,kBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,MAAQ,EAAA;AAAA;AAEZ,CAAC;AAOY,MAAA,iBAAA,GAAoB,CAAC,oBAAoB;;;;;"}
@@ -0,0 +1,12 @@
1
+ import { createPermission } from '@backstage/plugin-permission-common';
2
+
3
+ const tektonViewPermission = createPermission({
4
+ name: "tekton.view.read",
5
+ attributes: {
6
+ action: "read"
7
+ }
8
+ });
9
+ const tektonPermissions = [tektonViewPermission];
10
+
11
+ export { tektonPermissions, tektonViewPermission };
12
+ //# sourceMappingURL=permissions.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissions.esm.js","sources":["../src/permissions.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createPermission } from '@backstage/plugin-permission-common';\n\n/**\n * Permission to view tekton resources.\n *\n * @public\n */\nexport const tektonViewPermission = createPermission({\n name: 'tekton.view.read',\n attributes: {\n action: 'read',\n },\n});\n\n/**\n * List of all permissions on permission polices.\n *\n * @public\n */\nexport const tektonPermissions = [tektonViewPermission];\n"],"names":[],"mappings":";;AAsBO,MAAM,uBAAuB,gBAAiB,CAAA;AAAA,EACnD,IAAM,EAAA,kBAAA;AAAA,EACN,UAAY,EAAA;AAAA,IACV,MAAQ,EAAA;AAAA;AAEZ,CAAC;AAOY,MAAA,iBAAA,GAAoB,CAAC,oBAAoB;;;;"}
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@backstage-community/plugin-tekton-common",
3
+ "description": "Common functionalities for the tekton plugin",
4
+ "version": "1.4.0",
5
+ "main": "dist/index.cjs.js",
6
+ "types": "dist/index.d.ts",
7
+ "license": "Apache-2.0",
8
+ "publishConfig": {
9
+ "access": "public",
10
+ "main": "dist/index.cjs.js",
11
+ "module": "dist/index.esm.js",
12
+ "types": "dist/index.d.ts"
13
+ },
14
+ "backstage": {
15
+ "role": "common-library",
16
+ "supported-versions": "^1.32.0",
17
+ "pluginId": "tekton",
18
+ "pluginPackage": "@backstage-community/plugin-tekton",
19
+ "pluginPackages": [
20
+ "@backstage-community/plugin-tekton",
21
+ "@backstage-community/plugin-tekton-common"
22
+ ]
23
+ },
24
+ "sideEffects": false,
25
+ "scripts": {
26
+ "build": "backstage-cli package build",
27
+ "lint": "backstage-cli package lint",
28
+ "test": "backstage-cli package test",
29
+ "clean": "backstage-cli package clean",
30
+ "prepack": "backstage-cli package prepack",
31
+ "postpack": "backstage-cli package postpack"
32
+ },
33
+ "devDependencies": {
34
+ "@backstage/cli": "^0.28.0"
35
+ },
36
+ "peerDependencies": {
37
+ "@backstage/plugin-permission-common": "^0.8.1"
38
+ },
39
+ "files": [
40
+ "dist"
41
+ ],
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "git+https://github.com/backstage/community-plugins.git",
45
+ "directory": "workspaces/tekton/plugins/tekton-common"
46
+ },
47
+ "keywords": [
48
+ "support:production",
49
+ "lifecycle:active",
50
+ "kubernetes",
51
+ "tekton",
52
+ "backstage",
53
+ "plugin"
54
+ ],
55
+ "homepage": "https://red.ht/rhdh",
56
+ "bugs": "https://github.com/backstage/community-plugins/issues",
57
+ "maintainers": [
58
+ "christoph-jerolimov",
59
+ "@debsmita1",
60
+ "@divyanshiGupta"
61
+ ],
62
+ "author": "Red Hat",
63
+ "module": "dist/index.esm.js"
64
+ }