Skip to content

Commit

Permalink
add tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
shaowenchen committed Sep 19, 2024
1 parent e3f2429 commit ef5b999
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pipelines/list-namespaces.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: crd.chenshaowen.com/v1
kind: Pipeline
metadata:
name: list-namespace
namespace: ops-system
spec:
desc: 列出、查看所有的命名空间
variables:
typeRef:
value: "cluster"
required: true
nodeName:
value: "anymaster"
required: true
tasks:
- name: 列出所有命名空间
ref: list-namespaces
13 changes: 13 additions & 0 deletions tasks/list-namespaces.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: crd.chenshaowen.com/v1
kind: Task
metadata:
name: list-namespaces
namespace: ops-system
spec:
desc: list all namespaces in cluster
nodeName: anymaster
typeRef: cluster
steps:
- name: list namespaces
content: |
kubectl get namespaces

0 comments on commit ef5b999

Please sign in to comment.