Skip to content

Commit

Permalink
Merge pull request #162 from 0xff-dev/main
Browse files Browse the repository at this point in the history
fix: change the task name of the component rating
  • Loading branch information
bjwswang authored Feb 19, 2024
2 parents 41ab42b + e141869 commit 5288790
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion charts/kubebb-core/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ annotations:
core.kubebb.k8s.com.cn/restricted-namespaces: "kubebb-system"
description: Kubebb Core provides core implementations on Component Lifecycle Management.Our design and development follows operator pattern which extends kubernetes APIs.
type: application
version: v0.1.24
version: v0.1.25
appVersion: v0.1.6
icon: https://avatars.githubusercontent.com/u/85277200
keywords:
Expand Down
14 changes: 9 additions & 5 deletions charts/kubebb-core/templates/pipeline-reliability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: {{ .Release.Name }}-reliability-helm-lint
name: rating-reliability-linting
annotations:
rating.core.kubebb.k8s.com.cn/type: reliability
rating.core.kubebb.k8s.com.cn/weight: "1"
Expand Down Expand Up @@ -32,7 +32,7 @@ spec:
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: {{ .Release.Name }}-reliability
name: rating-reliability-pipeline
annotations:
tekton.dev/tags: {{ .Release.Name }}-reliability
tekton.dev/displayName: "{{ .Release.Name }}"
Expand All @@ -46,26 +46,30 @@ spec:
- name: COMPONENT_NAME
description: >-
component name
type: string
- name: REPOSITORY_NAME
description: repository name
default: "kubebb"
type: string
- name: VERSION
description: component version
type: string
- name: URL
description: the full URL of the component tgz file.
type: string
results:
- name: HELM_LINT
value: $(tasks.{{ .Release.Name }}-helm-lint.results.LINT)
value: $(tasks.rating-reliability-linting.results.LINT)
tasks:
- name: {{ .Release.Name }}-helm-lint
- name: rating-reliability-linting
retries: 2
taskRef:
resolver: cluster
params:
- name: kind
value: task
- name: name
value: {{ .Release.Name }}-reliability-helm-lint
value: rating-reliability-linting
- name: namespace
value: {{ .Release.Namespace }}
params:
Expand Down
15 changes: 10 additions & 5 deletions charts/kubebb-core/templates/pipeline-security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: {{ .Release.Name }}-security-rback
name: rating-security-rback
annotations:
rating.core.kubebb.k8s.com.cn/type: security
rating.core.kubebb.k8s.com.cn/weight: "1"
Expand All @@ -16,6 +16,7 @@ spec:
- name: version
type: string
- name: repository
type: string
results:
- name: RBACCM
type: string
Expand Down Expand Up @@ -49,7 +50,7 @@ spec:
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: {{ .Release.Name }}-security
name: rating-security-pipeline
annotations:
tekton.dev/tags: {{ .Release.Name }}-security
tekton.dev/displayName: "{{ .Release.Name }}"
Expand All @@ -63,26 +64,30 @@ spec:
- name: COMPONENT_NAME
description: >-
component name
type: string
- name: REPOSITORY_NAME
description: repository name
default: "kubebb"
type: string
- name: VERSION
description: component version
type: string
- name: URL
description: the full URL of the component tgz file.
type: string
results:
- name: RBACCM
value: $(tasks.{{ .Release.Name }}-rback.results.RBACCM)
value: $(tasks.rating-security-rback.results.RBACCM)
tasks:
- name: {{ .Release.Name }}-rback
- name: rating-security-rback
retries: 2
taskRef:
resolver: cluster
params:
- name: kind
value: task
- name: name
value: {{ .Release.Name }}-security-rback
value: rating-security-rback
- name: namespace
value: {{ .Release.Namespace }}
params:
Expand Down

0 comments on commit 5288790

Please sign in to comment.