github.com/sealerio/sealer@v0.11.1-0.20240507115618-f4f89c5853ae/test/suites/apply/fixtures/config_plugin_for_test.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  apiVersion: sealer.io/v1
    16  kind: Config
    17  metadata:
    18    name: mysql-config
    19  spec:
    20    path: etc/mysql.yaml
    21    data: |
    22      test
    23  ---
    24  apiVersion: sealer.io/v1
    25  kind: Config
    26  metadata:
    27    name: redis-config
    28  spec:
    29    path: etc/redis.yaml
    30    data: |
    31      test
    32  ---
    33  apiVersion: sealer.io/v1
    34  kind: Plugin
    35  metadata:
    36    name: clusterfile_originally
    37  spec:
    38    type: SHELL
    39    action: Originally
    40    data: |
    41      hostname && echo "$env: OriginallyShell was successfully run from Clusterfile"
    42  ---
    43  apiVersion: sealer.io/v1
    44  kind: Plugin
    45  metadata:
    46    name: clusterfile_prejoin
    47  spec:
    48    type: SHELL
    49    action: PreJoin
    50    data: |
    51      hostname && echo "$env: PreJoin from Clusterfile was successfully run from Clusterfile"
    52  ---
    53  apiVersion: sealer.aliyun.com/v2alpha1
    54  kind: Plugin
    55  metadata:
    56    name: clusterfile_PostInstall_PostJoin
    57  spec:
    58    action: PostInstall|PostJoin
    59    type: SHELL
    60    'on': "sealer-test=true"
    61    data: |
    62      hostname && echo "PostInstall|PostJoin from Clusterfile on sealer-test=true" `date`
    63  ---
    64  apiVersion: sealer.io/v1
    65  kind: Plugin
    66  metadata:
    67    name: clusterfile_postjoin
    68  spec:
    69    type: SHELL
    70    action: PostJoin
    71    data: |
    72      hostname && echo "$env: PostJoin was successfully run from Clusterfile"
    73  ---
    74  apiVersion: sealer.io/v1
    75  kind: Plugin
    76  metadata:
    77    name: clusterfile_preclean
    78  spec:
    79    type: SHELL
    80    action: PreClean
    81    data: |
    82      hostname && echo "$env: PreClean was successfully run from Clusterfile"
    83  ---
    84  apiVersion: sealer.io/v1
    85  kind: Plugin
    86  metadata:
    87    name: clusterfile_postclean
    88  spec:
    89    type: SHELL
    90    action: PostClean
    91    data: |
    92      hostname && echo "$env: PostJoin was successfully run from Clusterfile"
    93  ---
    94  apiVersion: sealer.io/v1
    95  kind: Plugin
    96  metadata:
    97    name: clusterfile_postinstall
    98  spec:
    99    type: SHELL
   100    action: PostInstall
   101    data: |
   102      echo "$env: PostInstallShell was successfully run from Clusterfile"
   103  # ---
   104  # apiVersion: sealer.io/v1
   105  # kind: Plugin
   106  # metadata:
   107  #   name: LABEL
   108  # spec:
   109  #   type: LABEL
   110  #   action: PreGuest
   111  #   data: |
   112  #     172.17.102.186 ssd=true
   113  # ---
   114  # apiVersion: sealer.io/v1
   115  # kind: Plugin
   116  # metadata:
   117  #   name: taint
   118  # spec:
   119  #   type: TAINT
   120  #   action: PreGuest
   121  #   data: |
   122  #     172.16.0.249 node-role.kubernetes.io/master:NoSchedule-
   123  #     172.16.0.249 sealer-test=true:NoSchedule