Skip to content

Commit

Permalink
[kubernetes] 🐛 sidecar lifecyle. wip #79 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
annProg committed May 9, 2019
1 parent 6e56618 commit eae0739
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 0 deletions.
120 changes: 120 additions & 0 deletions kubernetes/datamodel.kubernetes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3352,6 +3352,126 @@
<duplicates/>
</field>
</fields>
<lifecycle>
<highlight_scale>
<item id="warning">
<rank>1</rank>
<color>HIGHLIGHT_CLASS_CRITICAL</color>
<icon>images/error.png</icon>
</item>
<item id="new">
<rank>2</rank>
<color>HIGHLIGHT_CLASS_WARNING</color>
<icon>images/new.png</icon>
</item>
</highlight_scale>
<attribute>status</attribute>
<stimuli>
<stimulus id="ev_online" xsi:type="StimulusUserAction"/>
<stimulus id="ev_offline" xsi:type="StimulusUserAction"/>
<stimulus id="ev_new" xsi:type="StimulusUserAction"/>
</stimuli>
<states>
<state id="new">
<highlight>
<code>new</code>
</highlight>
<flags>
<attribute id="org_id">
<read_only/>
</attribute>
<attribute id="controller_list">
<read_only/>
</attribute>
<attribute id="change_log">
<must_prompt/>
</attribute>
<attribute id="image_tag">
<must_prompt/>
</attribute>
</flags>
<transitions>
<transition id="ev_online">
<target>production</target>
<actions/>
</transition>
<transition id="ev_offline">
<target>stock</target>
<actions/>
</transition>
</transitions>
</state>
<state id="production">
<inherit_flags_from>new</inherit_flags_from>
<flags>
<attribute id="version">
<read_only/>
</attribute>
<attribute id="image">
<read_only/>
</attribute>
<attribute id="image_tag">
<read_only/>
</attribute>
<attribute id="cpu_request">
<read_only/>
</attribute>
<attribute id="cpu_limit">
<read_only/>
</attribute>
<attribute id="mem_request">
<read_only/>
</attribute>
<attribute id="containerport">
<read_only/>
</attribute>
<attribute id="move2production">
<read_only/>
</attribute>
<attribute id="secret">
<read_only/>
</attribute>
<attribute id="command">
<read_only/>
</attribute>
<attribute id="args">
<read_only/>
</attribute>
<attribute id="change_log">
<read_only/>
</attribute>
<attribute id="probe_list">
<read_only/>
</attribute>
</flags>
<transitions>
<transition id="ev_offline">
<target>stock</target>
<actions/>
</transition>
<transition id="ev_new">
<target>new</target>
<actions/>
</transition>
</transitions>
</state>
<state id="stock">
<inherit_flags_from>new</inherit_flags_from>
<flags>
<attribute id="change_log">
<must_prompt/>
<must_change/>
</attribute>
</flags>
<transitions>
<transition id="ev_new">
<target>new</target>
<actions/>
</transition>
</transitions>
</state>
</states>
</lifecycle>
<methods>
<method id="DoCheckToWrite" _delta="define">
<static>false</static>
Expand Down
3 changes: 3 additions & 0 deletions kubernetes/zh.dict.kubernetes.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@
'Class:SideCarVer' => 'SideCar版本',
'Class:SideCarVer/Attribute:controller_list' => 'Kubernetes服务',
'Class:SideCarVer/Attribute:controller_list+' => '使用此SideCar的Kubernetes服务',
'Class:SideCarVer/Stimulus:ev_online' => '发布',
'Class:SideCarVer/Stimulus:ev_new' => '测试',
'Class:SideCarVer/Stimulus:ev_offline' => '废弃',
'Class:AppTemplate' => '服务模板',
'Class:AppTemplateVer' => '服务模板版本',

Expand Down

0 comments on commit eae0739

Please sign in to comment.