github.com/alibaba/sealer@v0.8.6-0.20220430115802-37a2bdaa8173/test/suites/build/fixtures/lite_build/test-plugins.yaml (about) 1 # Copyright © 2021 Alibaba Group Holding Ltd. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 ##plugin from image 16 apiVersion: sealer.aliyun.com/v2alpha1 17 kind: Plugin 18 metadata: 19 name: MyShell 20 spec: 21 action: Originally 22 type: SHELL 23 data: | 24 hostname && echo "Originally from Kubefile" `date` 25 --- 26 apiVersion: sealer.aliyun.com/v2alpha1 27 kind: Plugin 28 metadata: 29 name: MyShell 30 spec: 31 action: PreInit 32 type: SHELL 33 data: | 34 hostname && echo "PreInit from Kubefile" `date` 35 --- 36 apiVersion: sealer.aliyun.com/v2alpha1 37 kind: Plugin 38 metadata: 39 name: MyShell 40 spec: 41 action: PostInstall|PostJoin 42 type: SHELL 43 'on': "sealer-test=true" 44 data: | 45 hostname && echo "PostInstall|PostJoin from Kubefile on sealer-test=true" `date` 46 --- 47 apiVersion: sealer.aliyun.com/v2alpha1 48 kind: Plugin 49 metadata: 50 name: MyShell 51 spec: 52 action: PreClean 53 type: SHELL 54 'on': "sealer-test=true" 55 data: | 56 hostname && echo "PreClean from Kubefile" "on sealer-test=true" `date` 57 --- 58 apiVersion: sealer.aliyun.com/v2alpha1 59 kind: Plugin 60 metadata: 61 name: MyShell 62 spec: 63 action: PostClean 64 type: SHELL 65 data: | 66 hostname && echo "PostClean from Kubefile" `date` "on all" 67 --- 68 apiVersion: sealer.aliyun.com/v2alpha1 69 kind: Plugin 70 metadata: 71 name: MyShell 72 spec: 73 action: PostJoin 74 type: SHELL 75 'on': "sealer-test=true" 76 data: | 77 hostname && ip a && echo "PostJoin from Kubefile" `date` "on sealer-test=true" 78 --- 79 apiVersion: sealer.aliyun.com/v2alpha1 80 kind: Plugin 81 metadata: 82 name: MyShell 83 spec: 84 action: PreJoin 85 type: SHELL 86 data: | 87 hostname && ip a && echo "PreJoin from Kubefile" `date` "on all"