Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Triggers resources to v1beta1 #2614

Merged
merged 1 commit into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/api/clusterTriggerBindings.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2019-2021 The Tekton Authors
Copyright 2019-2022 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 @@ -23,7 +23,7 @@ import {
function getClusterTriggerBindingsAPI({ filters, isWebSocket, name }) {
return getTektonAPI(
'clustertriggerbindings',
{ group: triggersAPIGroup, isWebSocket, version: 'v1alpha1' },
{ group: triggersAPIGroup, isWebSocket, version: 'v1beta1' },
getQueryParams({ filters, name })
);
}
Expand All @@ -37,7 +37,7 @@ export function getClusterTriggerBinding({ name }) {
const uri = getTektonAPI('clustertriggerbindings', {
group: triggersAPIGroup,
name,
version: 'v1alpha1'
version: 'v1beta1'
});
return get(uri);
}
Expand Down
6 changes: 3 additions & 3 deletions src/api/eventListeners.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2019-2021 The Tekton Authors
Copyright 2019-2022 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 @@ -23,7 +23,7 @@ import {
function getEventListenersAPI({ filters, isWebSocket, name, namespace }) {
return getTektonAPI(
'eventlisteners',
{ group: triggersAPIGroup, isWebSocket, namespace, version: 'v1alpha1' },
{ group: triggersAPIGroup, isWebSocket, namespace, version: 'v1beta1' },
getQueryParams({ filters, name })
);
}
Expand All @@ -38,7 +38,7 @@ export function getEventListener({ name, namespace }) {
group: triggersAPIGroup,
name,
namespace,
version: 'v1alpha1'
version: 'v1beta1'
});
return get(uri);
}
Expand Down
6 changes: 3 additions & 3 deletions src/api/triggerBindings.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2019-2021 The Tekton Authors
Copyright 2019-2022 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 @@ -23,7 +23,7 @@ import {
function getTriggerBindingsAPI({ filters, isWebSocket, name, namespace }) {
return getTektonAPI(
'triggerbindings',
{ group: triggersAPIGroup, isWebSocket, namespace, version: 'v1alpha1' },
{ group: triggersAPIGroup, isWebSocket, namespace, version: 'v1beta1' },
getQueryParams({ filters, name })
);
}
Expand All @@ -38,7 +38,7 @@ export function getTriggerBinding({ name, namespace }) {
group: triggersAPIGroup,
name,
namespace,
version: 'v1alpha1'
version: 'v1beta1'
});
return get(uri);
}
Expand Down
6 changes: 3 additions & 3 deletions src/api/triggerTemplates.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2019-2021 The Tekton Authors
Copyright 2019-2022 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 @@ -23,7 +23,7 @@ import {
function getTriggerTemplatesAPI({ filters, isWebSocket, name, namespace }) {
return getTektonAPI(
'triggertemplates',
{ group: triggersAPIGroup, isWebSocket, namespace, version: 'v1alpha1' },
{ group: triggersAPIGroup, isWebSocket, namespace, version: 'v1beta1' },
getQueryParams({ filters, name })
);
}
Expand All @@ -38,7 +38,7 @@ export function getTriggerTemplate({ name, namespace }) {
group: triggersAPIGroup,
name,
namespace,
version: 'v1alpha1'
version: 'v1beta1'
});
return get(uri);
}
Expand Down
6 changes: 3 additions & 3 deletions src/api/triggers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2021 The Tekton Authors
Copyright 2021-2022 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 @@ -23,7 +23,7 @@ import {
function getTriggersAPI({ filters, isWebSocket, name, namespace }) {
return getTektonAPI(
'triggers',
{ group: triggersAPIGroup, isWebSocket, namespace, version: 'v1alpha1' },
{ group: triggersAPIGroup, isWebSocket, namespace, version: 'v1beta1' },
getQueryParams({ filters, name })
);
}
Expand All @@ -38,7 +38,7 @@ export function getTrigger({ name, namespace }) {
group: triggersAPIGroup,
name,
namespace,
version: 'v1alpha1'
version: 'v1beta1'
});
return get(uri);
}
Expand Down