-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved to tekton CustomRun.v1beta1 and upgraded approval task version …
…to v1beta1 to be inline with custom task version
- Loading branch information
1 parent
6d84f78
commit c6f5eba
Showing
42 changed files
with
1,436 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -180,8 +180,24 @@ spec: | |
- name: QUARKUS_OPERATOR_SDK_NAMESPACES | ||
value: default | ||
- name: QUARKUS_AUTOMATIKO_SERVICE_URL | ||
value: http://localhost:9000 | ||
image: automatiko/automatiko-approval-task:0.3.0 | ||
value: http://localhost:9000 | ||
- name: QUARKUS_MAILER_MOCK | ||
value: "true" | ||
- name: QUARKUS_PROFILE | ||
value: withemail | ||
- name: QUARKUS_MAILER_FROM | ||
value: [email protected] | ||
- name: QUARKUS_MAILER_HOST | ||
value: smtp.gmail.com | ||
- name: QUARKUS_MAILER_PORT | ||
value: "587" | ||
- name: QUARKUS_MAILER_USERNAME | ||
value: [email protected] | ||
- name: QUARKUS_MAILER_PASSWORD | ||
value: password | ||
- name: QUARKUS_AUTOMATIKO_ON_INSTANCE_END | ||
value: "keep" | ||
image: automatiko/automatiko-approval-task:0.5.0 | ||
imagePullPolicy: Always | ||
livenessProbe: | ||
failureThreshold: 3 | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
apiVersion: tekton.dev/v1beta1 | ||
kind: Pipeline | ||
metadata: | ||
name: testpipeline2 | ||
spec: | ||
tasks: | ||
- name: deploy-dev-approval-task | ||
taskRef: | ||
apiVersion: tekton.automatiko.io/v1alpha1 | ||
kind: ApprovalTask | ||
name: approvaltask | ||
params: | ||
- name: pipeline | ||
value: "$(context.pipelineRun.name)" | ||
- name: description | ||
value: "Approval from pipeline $(context.pipeline.name) for development environment" | ||
- name: approvers | ||
value: | ||
- "[email protected]" | ||
- name: deploy-dev-approved-task | ||
when: | ||
- input: $(tasks.deploy-dev-approval-task.results.decision) | ||
operator: in | ||
values: [ "true" ] | ||
taskRef: | ||
name: print-decision | ||
runAfter: | ||
- deploy-dev-approval-task | ||
params: | ||
- name: decision | ||
value: "APPROVED" | ||
- name: comment | ||
value: $(tasks.deploy-dev-approval-task.results.comment) | ||
- name: deploy-dev-rejected-task | ||
when: | ||
- input: $(tasks.deploy-dev-approval-task.results.decision) | ||
operator: in | ||
values: [ "false" ] | ||
taskRef: | ||
name: print-decision | ||
runAfter: | ||
- deploy-dev-approval-task | ||
params: | ||
- name: decision | ||
value: "REJECTED" | ||
- name: comment | ||
value: $(tasks.deploy-dev-approval-task.results.comment) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: tekton-dashboard-approvaltasks-extension | ||
rules: | ||
- apiGroups: ["tekton.automatiko.io"] | ||
resources: ["approvaltasks"] | ||
verbs: ["get", "list", "watch"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: tekton-dashboard-approvaltasks-role-binding | ||
roleRef: | ||
kind: ClusterRole | ||
apiGroup: rbac.authorization.k8s.io | ||
name: tekton-dashboard-approvaltasks-extension | ||
subjects: | ||
- kind: ServiceAccount | ||
name: tekton-dashboard | ||
namespace: tekton-pipelines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: dashboard.tekton.dev/v1alpha1 | ||
kind: Extension | ||
metadata: | ||
name: approvaltasks | ||
spec: | ||
apiVersion: tekton.automatiko.io/v1beta1 | ||
name: approvaltasks | ||
displayname: Approval Tasks | ||
namespaced: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Generated by Fabric8 CRDGenerator, manual edits might get overwritten! | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: approvaltasks.tekton.automatiko.io | ||
spec: | ||
group: tekton.automatiko.io | ||
names: | ||
kind: ApprovalTask | ||
plural: approvaltasks | ||
singular: approvaltask | ||
scope: Namespaced | ||
versions: | ||
- name: v1beta1 | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
spec: | ||
properties: | ||
strategy: | ||
enum: | ||
- FOUR_EYES | ||
- MULTI | ||
- SINGLE | ||
type: string | ||
approvers: | ||
items: | ||
type: string | ||
type: array | ||
groups: | ||
items: | ||
type: string | ||
type: array | ||
pipeline: | ||
type: string | ||
description: | ||
type: string | ||
type: object | ||
status: | ||
properties: | ||
results: | ||
properties: | ||
decision: | ||
type: string | ||
comment: | ||
type: string | ||
type: object | ||
status: | ||
type: string | ||
reason: | ||
type: string | ||
approvalUrl: | ||
type: string | ||
message: | ||
type: string | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
Oops, something went wrong.