aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/so/.helmignore
blob: 7ddbad7ef4ac6458668c57de23c409a9b33f1e4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
components/
: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
<service-logic
    xmlns='http://www.onap.org/sdnc/svclogic'
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.onap.org/sdnc/svclogic ./svclogic.xsd' module='GENERIC-RESOURCE-API' version='${project.version}'>
    <method rpc='port-mirror-get-policy' mode='sync'>
        <block atomic="true">
            <set>
                <parameter name='tmp.policy-name' value='`$db.cap[0].policy-name`' />
            </set>
            <execute plugin='org.onap.ccsdk.sli.plugins.restapicall.RestapiCallNode' method='sendRequest' >
                <parameter name='templateFileName' value="`$prop.restapi.templateDir + '/' + $prop.restapi.pm.getpolicy.templatefile`" />
                <parameter name='restapiUrl' value="`$prop.policy-manager.url + '/pdp/api/getConfig'`" />
                <parameter name='format' value='json' />
                <parameter name='httpMethod' value='POST' />
                <parameter name='responsePrefix' value="policy" />
                <parameter name='customHttpHeaders'
      value="`'Authorization=Basic ' + $prop.policy-manager.authorization + ',ClientAuth=Basic ' + $prop.policy-manager.clientauth + ',Environment=' + $prop.policy-manager.environment `" />
                <outcome value='success'>
                    <block atomic="true"></block>
                </outcome>
                <outcome value='Other'>
                    <return status='failure'>
                        <parameter name='error-code' value='500' />
                        <parameter name='error-message' value='Failed to get policy from Policy Manager' />
                    </return>
                </outcome>
            </execute>
            <execute plugin='org.onap.ccsdk.sli.core.slipluginutils.SliPluginUtils' method='jsonStringToCtx' >
                <parameter name='source' value="policy.config" />
                <parameter name='outputPath' value="tmp.config-ctx" />
                <parameter name='isEscaped' value='false' />
                <outcome value='success'>
                    <block atomic="true"></block>
                </outcome>
                <outcome value='Other'>
                    <return status='failure'>
                        <parameter name='error-code' value='500' />
                        <parameter name='error-message' value='Failed to convert config variable from PolicyManager' />
                    </return>
                </outcome>
            </execute>
            <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="toLower">
                <parameter name="source" value="`$tmp.tenant-context`" />
                <parameter name="outputPath" value="tmp.lc-tenant-context" />
            </execute>
            <switch test='`$tmp.lc-tenant-context`'>
                <outcome value=''>
                    <set>
                        <parameter name='tmp.dest-p-interface' value='`$tmp.config-ctx.content.defaultContext`' />
                    </set>
                </outcome>
                <outcome value='Other'>
                    <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains" emitsOutcome='true'>
                        <parameter name="source" value="`$tmp.lc-tenant-context`" />
                        <parameter name="target" value="prod" />
                        <outcome value='true'>
                            <set>
                                <parameter name='tmp.dest-p-interface' value='`$tmp.config-ctx.content.productionContext`' />
                            </set>
                        </outcome>
                        <outcome value='Other'>
                            <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains" emitsOutcome='true'>
                                <parameter name="source" value="`$tmp.lc-tenant-context`" />
                                <parameter name="target" value="test" />
                                <outcome value='true'>
                                    <set>
                                        <parameter name='tmp.dest-p-interface' value='`$tmp.config-ctx.content.testContext`' />
                                    </set>
                                </outcome>
                                <outcome value='Other'>
                                    <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains" emitsOutcome='true'>
                                        <parameter name="source" value="`$tmp.lc-tenant-context`" />
                                        <parameter name="target" value="dev" />
                                        <outcome value='true'>
                                            <set>
                                                <parameter name='tmp.dest-p-interface' value='`$tmp.config-ctx.content.developmentContext`' />
                                            </set>
                                        </outcome>
                                        <outcome value='Other'>
                                            <execute plugin="org.onap.ccsdk.sli.core.slipluginutils.SliStringUtils" method="contains" emitsOutcome='true'>
                                                <parameter name="source" value="`$tmp.lc-tenant-context`" />
                                                <parameter name="target" value="default" />
                                                <outcome value='true'>
                                                    <set>
                                                        <parameter name='tmp.dest-p-interface' value='`$tmp.config-ctx.content.defaultContext`' />
                                                    </set>
                                                </outcome>
                                                <outcome value='Other'>
                                                    <return status='failure'>
                                                        <parameter name='error-code' value='500' />
                                                        <parameter name='error-message' value="`'Unexpected tenant-context value of ' + $tmp.tenant-context`" />
                                                    </return>
                                                </outcome>
                                            </execute>
                                        </outcome>
                                    </execute>
                                </outcome>
                            </execute>
                        </outcome>
                    </execute>
                </outcome>
            </switch>
            <switch test='`$tmp.dest-p-interface`'>
                <outcome value=''>
                    <return status='failure'>
                        <parameter name='error-code' value='500' />
                        <parameter name='error-message' value="`'Unable to find p-interface in policy ' + tmp.policy-name`" />
                    </return>
                </outcome>
            </switch>
            <return status='success'></return>
        </block>
    </method>
</service-logic>