Skip to content

Commit

Permalink
feat: Update tekton k8s resources version to v1 (#115)
Browse files Browse the repository at this point in the history
Jira: EPMDPEDP-12975
Related: #115
Change-Id: I285cec36a9df7babc1fa7dc9a717862ed8f60b61
  • Loading branch information
callmevladik committed Dec 6, 2023
1 parent a2d4134 commit 44f548e
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/hooks/useDetectNamespaces/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export const useDetectNamespaces = () => {
Your allowed namespaces are unset. To get started, please set your
namespaces by navigating to the{' '}
</span>
<span>Allowed namespaces are unset. Navigate to </span>
<Link
component="button"
variant="body2"
Expand Down
2 changes: 1 addition & 1 deletion src/k8s/Pipeline/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export const PipelineKubeObjectConfig: KubeObjectConfig = {
pluralForm: 'pipelines',
},
group: 'tekton.dev',
version: 'v1beta1',
version: 'v1',
};
2 changes: 1 addition & 1 deletion src/k8s/PipelineRun/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export const PipelineRunKubeObjectConfig: KubeObjectConfig = {
pluralForm: 'pipelineruns',
},
group: 'tekton.dev',
version: 'v1beta1',
version: 'v1',
};
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('testing createBuildPipelineRunInstance', () => {
});

expect(object).toEqual({
apiVersion: 'tekton.dev/v1beta1',
apiVersion: 'tekton.dev/v1',
kind: 'PipelineRun',
metadata: {
namespace: 'test-namespace',
Expand Down Expand Up @@ -74,8 +74,12 @@ describe('testing createBuildPipelineRunInstance', () => {
pipelineRef: {
name: 'test-git-provider-test-build-tool-test-framework-app-build-test-versioning-type',
},
serviceAccountName: 'tekton',
timeout: '1h0m0s',
taskRunTemplate: {
serviceAccountName: 'tekton',
},
timeouts: {
pipeline: '1h0m0s',
},
workspaces: [
{
name: 'settings',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,12 @@ export const createBuildPipelineRunInstance = ({
pipelineRef: {
name: `${gitProvider}-${codebaseBuildTool}-${codebaseFramework}-${truncatedCodebaseType}-build-${codebaseVersioningType}`,
},
serviceAccountName: 'tekton',
timeout: '1h0m0s',
taskRunTemplate: {
serviceAccountName: 'tekton',
},
timeouts: {
pipeline: '1h0m0s',
},
workspaces: [
{
name: 'settings',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('testing createDeployPipelineRunInstance', () => {
});

expect(object).toEqual({
apiVersion: 'tekton.dev/v1beta1',
apiVersion: 'tekton.dev/v1',
kind: 'PipelineRun',
metadata: {
namespace: 'test-namespace',
Expand Down
2 changes: 1 addition & 1 deletion src/k8s/TaskRun/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export const TaskRunKubeObjectConfig: KubeObjectConfig = {
pluralForm: 'taskruns',
},
group: 'tekton.dev',
version: 'v1beta1',
version: 'v1',
};

0 comments on commit 44f548e

Please sign in to comment.