@backstage-community/plugin-tekton 3.33.0 → 3.33.2

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  ### Dependencies
2
2
 
3
+ ## 3.33.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 536b783: Updated dependency `@kubernetes/client-node` to `1.4.0`.
8
+ - Updated dependencies [536b783]
9
+ - @backstage-community/plugin-tekton-react@0.1.2
10
+
11
+ ## 3.33.1
12
+
13
+ ### Patch Changes
14
+
15
+ - 6cfc39f: Resolved deprecation warnings
16
+
3
17
  ## 3.33.0
4
18
 
5
19
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"ClusterSelector.esm.js","sources":["../../../src/components/common/ClusterSelector.tsx"],"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 { useContext, useState } from 'react';\n\nimport { Select, SelectedItems } from '@backstage/core-components';\nimport { BackstageTheme } from '@backstage/theme';\n\nimport { makeStyles, Typography } from '@material-ui/core';\n\nimport { TektonResourcesContext } from '../../hooks/TektonResourcesContext';\n\nimport './ClusterSelector.css';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { tektonTranslationRef } from '../../translations';\n\nconst useStyles = makeStyles<BackstageTheme>(theme => ({\n label: {\n color: theme.palette.text.primary,\n fontSize: '1rem',\n paddingRight: '10px',\n fontWeight: 'bold',\n },\n}));\n\nexport const ClusterSelector = () => {\n const classes = useStyles();\n const {\n clusters: k8sClusters,\n selectedCluster,\n setSelectedCluster: setClusterContext,\n } = useContext(TektonResourcesContext);\n const { t } = useTranslationRef(tektonTranslationRef);\n const clusterOptions = k8sClusters.map(cluster => ({\n value: cluster,\n label: cluster,\n }));\n\n const curCluster =\n selectedCluster && k8sClusters?.length > 0\n ? k8sClusters[selectedCluster]\n : k8sClusters?.[0];\n\n const [clusterSelected, setClusterSelected] =\n useState<SelectedItems>(curCluster);\n\n const onClusterChange = (arg: SelectedItems) => {\n const index = k8sClusters.findIndex(cluster => cluster === arg);\n setClusterContext(index);\n setClusterSelected(arg);\n };\n return (\n <div className=\"bs-tkn-cluster-selector\">\n <Typography className={classes.label}>\n {t('clusterSelector.label')}\n </Typography>\n <Select\n onChange={onClusterChange}\n label=\"\"\n items={clusterOptions}\n selected={clusterSelected}\n margin=\"dense\"\n />\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;AA4BA,MAAM,SAAA,GAAY,WAA2B,CAAA,KAAA,MAAU;AAAA,EACrD,KAAA,EAAO;AAAA,IACL,KAAA,EAAO,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK,OAAA;AAAA,IAC1B,QAAA,EAAU,MAAA;AAAA,IACV,YAAA,EAAc,MAAA;AAAA,IACd,UAAA,EAAY;AAAA;AAEhB,CAAA,CAAE,CAAA;AAEK,MAAM,kBAAkB,MAAM;AACnC,EAAA,MAAM,UAAU,SAAA,EAAU;AAC1B,EAAA,MAAM;AAAA,IACJ,QAAA,EAAU,WAAA;AAAA,IACV,eAAA;AAAA,IACA,kBAAA,EAAoB;AAAA,GACtB,GAAI,WAAW,sBAAsB,CAAA;AACrC,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,iBAAA,CAAkB,oBAAoB,CAAA;AACpD,EAAA,MAAM,cAAA,GAAiB,WAAA,CAAY,GAAA,CAAI,CAAA,OAAA,MAAY;AAAA,IACjD,KAAA,EAAO,OAAA;AAAA,IACP,KAAA,EAAO;AAAA,GACT,CAAE,CAAA;AAEF,EAAA,MAAM,UAAA,GACJ,mBAAmB,WAAA,EAAa,MAAA,GAAS,IACrC,WAAA,CAAY,eAAe,CAAA,GAC3B,WAAA,GAAc,CAAC,CAAA;AAErB,EAAA,MAAM,CAAC,eAAA,EAAiB,kBAAkB,CAAA,GACxC,SAAwB,UAAU,CAAA;AAEpC,EAAA,MAAM,eAAA,GAAkB,CAAC,GAAA,KAAuB;AAC9C,IAAA,MAAM,KAAA,GAAQ,WAAA,CAAY,SAAA,CAAU,CAAA,OAAA,KAAW,YAAY,GAAG,CAAA;AAC9D,IAAA,iBAAA,CAAkB,KAAK,CAAA;AACvB,IAAA,kBAAA,CAAmB,GAAG,CAAA;AAAA,EACxB,CAAA;AACA,EAAA,uBACE,IAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,yBAAA,EACb,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,cAAW,SAAA,EAAW,OAAA,CAAQ,KAAA,EAC5B,QAAA,EAAA,CAAA,CAAE,uBAAuB,CAAA,EAC5B,CAAA;AAAA,oBACA,GAAA;AAAA,MAAC,MAAA;AAAA,MAAA;AAAA,QACC,QAAA,EAAU,eAAA;AAAA,QACV,KAAA,EAAM,EAAA;AAAA,QACN,KAAA,EAAO,cAAA;AAAA,QACP,QAAA,EAAU,eAAA;AAAA,QACV,MAAA,EAAO;AAAA;AAAA;AACT,GAAA,EACF,CAAA;AAEJ;;;;"}
1
+ {"version":3,"file":"ClusterSelector.esm.js","sources":["../../../src/components/common/ClusterSelector.tsx"],"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 { useContext, useState } from 'react';\n\nimport { Select, SelectedItems } from '@backstage/core-components';\n\nimport { makeStyles, Typography, Theme } from '@material-ui/core';\n\nimport { TektonResourcesContext } from '../../hooks/TektonResourcesContext';\n\nimport './ClusterSelector.css';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { tektonTranslationRef } from '../../translations';\n\nconst useStyles = makeStyles<Theme>(theme => ({\n label: {\n color: theme.palette.text.primary,\n fontSize: '1rem',\n paddingRight: '10px',\n fontWeight: 'bold',\n },\n}));\n\nexport const ClusterSelector = () => {\n const classes = useStyles();\n const {\n clusters: k8sClusters,\n selectedCluster,\n setSelectedCluster: setClusterContext,\n } = useContext(TektonResourcesContext);\n const { t } = useTranslationRef(tektonTranslationRef);\n const clusterOptions = k8sClusters.map(cluster => ({\n value: cluster,\n label: cluster,\n }));\n\n const curCluster =\n selectedCluster && k8sClusters?.length > 0\n ? k8sClusters[selectedCluster]\n : k8sClusters?.[0];\n\n const [clusterSelected, setClusterSelected] =\n useState<SelectedItems>(curCluster);\n\n const onClusterChange = (arg: SelectedItems) => {\n const index = k8sClusters.findIndex(cluster => cluster === arg);\n setClusterContext(index);\n setClusterSelected(arg);\n };\n return (\n <div className=\"bs-tkn-cluster-selector\">\n <Typography className={classes.label}>\n {t('clusterSelector.label')}\n </Typography>\n <Select\n onChange={onClusterChange}\n label=\"\"\n items={clusterOptions}\n selected={clusterSelected}\n margin=\"dense\"\n />\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;AA2BA,MAAM,SAAA,GAAY,WAAkB,CAAA,KAAA,MAAU;AAAA,EAC5C,KAAA,EAAO;AAAA,IACL,KAAA,EAAO,KAAA,CAAM,OAAA,CAAQ,IAAA,CAAK,OAAA;AAAA,IAC1B,QAAA,EAAU,MAAA;AAAA,IACV,YAAA,EAAc,MAAA;AAAA,IACd,UAAA,EAAY;AAAA;AAEhB,CAAA,CAAE,CAAA;AAEK,MAAM,kBAAkB,MAAM;AACnC,EAAA,MAAM,UAAU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EJ;;;;"}
package/dist/index.d.ts CHANGED
@@ -60,10 +60,10 @@ declare const tektonTranslationRef: _backstage_core_plugin_api_alpha.Translation
60
60
  readonly "pipelineRunList.vulnerabilitySeverityTitle.high": "High";
61
61
  readonly "pipelineRunList.vulnerabilitySeverityTitle.low": "Low";
62
62
  readonly "pipelineRunList.tableHeaderTitle.name": "NAME";
63
+ readonly "pipelineRunList.tableHeaderTitle.startTime": "STARTED";
63
64
  readonly "pipelineRunList.tableHeaderTitle.status": "STATUS";
64
65
  readonly "pipelineRunList.tableHeaderTitle.taskStatus": "TASK STATUS";
65
66
  readonly "pipelineRunList.tableHeaderTitle.vulnerabilities": "VULNERABILITIES";
66
- readonly "pipelineRunList.tableHeaderTitle.startTime": "STARTED";
67
67
  readonly "pipelineRunList.tableHeaderTitle.duration": "DURATION";
68
68
  readonly "pipelineRunList.tableHeaderTitle.actions": "ACTIONS";
69
69
  readonly "pipelineRunList.tablePagination.rowsPerPageOptionLabel": "{{num}} rows";
@@ -1 +1 @@
1
- {"version":3,"file":"isTektonCIAvailable.esm.js","sources":["../../src/utils/isTektonCIAvailable.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 { Entity } from '@backstage/catalog-model';\n\nimport { TektonAnnotations } from '@backstage-community/plugin-tekton-common';\n\n/** @deprecated */\nconst DEPRECATED_JANUS_IDP_ANNOTATION = 'janus-idp.io/tekton';\n\n/**\n * Returns true if the entity supports the Tekton CI/CD feature and\n * the Tekton CI/CD card should be shown on the CI/CD tab.\n *\n * This means that the catalog entity has one of this annotations set:\n *\n * 1. `tekton.dev/ci-cd: \"true\"` or\n * 2. `janus-idp.io/tekton` is defined (any value is accepted).\n *\n * @public\n */\nexport const isTektonCIAvailable = (entity: Entity): boolean =>\n entity.metadata.annotations?.[TektonAnnotations.CICD] === 'true' ||\n Boolean(entity.metadata.annotations?.[DEPRECATED_JANUS_IDP_ANNOTATION]);\n"],"names":[],"mappings":";;AAoBA,MAAM,+BAAA,GAAkC,qBAAA;AAajC,MAAM,mBAAA,GAAsB,CAAC,MAAA,KAClC,MAAA,CAAO,SAAS,WAAA,GAAc,iBAAA,CAAkB,IAAI,CAAA,KAAM,UAC1D,OAAA,CAAQ,MAAA,CAAO,QAAA,CAAS,WAAA,GAAc,+BAA+B,CAAC;;;;"}
1
+ {"version":3,"file":"isTektonCIAvailable.esm.js","sources":["../../src/utils/isTektonCIAvailable.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 { Entity } from '@backstage/catalog-model';\n\nimport { TektonAnnotations } from '@backstage-community/plugin-tekton-common';\n\nconst DEPRECATED_JANUS_IDP_ANNOTATION = 'janus-idp.io/tekton';\n\n/**\n * Returns true if the entity supports the Tekton CI/CD feature and\n * the Tekton CI/CD card should be shown on the CI/CD tab.\n *\n * This means that the catalog entity has one of this annotations set:\n *\n * 1. `tekton.dev/ci-cd: \"true\"` or\n * 2. `janus-idp.io/tekton` is defined (any value is accepted).\n *\n * @public\n */\nexport const isTektonCIAvailable = (entity: Entity): boolean =>\n entity.metadata.annotations?.[TektonAnnotations.CICD] === 'true' ||\n Boolean(entity.metadata.annotations?.[DEPRECATED_JANUS_IDP_ANNOTATION]);\n"],"names":[],"mappings":";;AAmBA,MAAM,+BAAA,GAAkC,qBAAA;AAajC,MAAM,mBAAA,GAAsB,CAAC,MAAA,KAClC,MAAA,CAAO,SAAS,WAAA,GAAc,iBAAA,CAAkB,IAAI,CAAA,KAAM,UAC1D,OAAA,CAAQ,MAAA,CAAO,QAAA,CAAS,WAAA,GAAc,+BAA+B,CAAC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-tekton",
3
- "version": "3.33.0",
3
+ "version": "3.33.2",
4
4
  "main": "./dist/index.esm.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -61,7 +61,7 @@
61
61
  "dependencies": {
62
62
  "@aonic-ui/pipelines": "^3.1.0",
63
63
  "@backstage-community/plugin-tekton-common": "^1.16.0",
64
- "@backstage-community/plugin-tekton-react": "^0.1.0",
64
+ "@backstage-community/plugin-tekton-react": "^0.1.2",
65
65
  "@backstage/catalog-model": "^1.7.6",
66
66
  "@backstage/core-components": "^0.18.3",
67
67
  "@backstage/core-plugin-api": "^1.12.0",
@@ -72,7 +72,7 @@
72
72
  "@backstage/plugin-permission-react": "^0.4.38",
73
73
  "@backstage/theme": "^0.7.0",
74
74
  "@backstage/ui": "^0.9.1",
75
- "@kubernetes/client-node": "1.0.0-rc7",
75
+ "@kubernetes/client-node": "1.4.0",
76
76
  "@material-ui/core": "^4.9.13",
77
77
  "@material-ui/icons": "^4.11.3",
78
78
  "@material-ui/lab": "^4.0.0-alpha.45",