<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:19:39 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[FOLIO-2298] Configure Okapi in folio-preview namespace to access modules in folio-default namespace</title>
                <link>https://folio-org.atlassian.net/browse/FOLIO-2298</link>
                <project id="10290" key="FOLIO">FOLIO</project>
                    <description>&lt;p&gt;The okapi instance running in the folio-preview namespace needs to be able to communicate with snapshot and released modules running in the folio-default namespace.    There are at least three components to this: &lt;/p&gt;

&lt;p&gt;1.  folio-preview/okapi requires the module descriptors for each module that has been posted to folio-default/okapi.&lt;br/&gt;
2.  folio-preview/okapi requires the deployment descriptors for each module that has been posted to folio-default/okapi.&lt;br/&gt;
3.  folio-preview/okapi needs to be able to communicate with each module running in the folio-default namespace.  &lt;/p&gt;
</description>
                <environment></environment>
        <key id="81448">FOLIO-2298</key>
            <summary>Configure Okapi in folio-preview namespace to access modules in folio-default namespace</summary>
                <type id="10003" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium">Task</type>
                                            <priority id="10001" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p2.svg">P2</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10003">Done</resolution>
                                                        <assignee accountid="5f9abc1eb45b2e007453f423">John Malconian</assignee>
                                                                <reporter accountid="5f9abc1eb45b2e007453f423">John Malconian</reporter>
                                    <labels>
                            <label>platform-backlog</label>
                    </labels>
                <created>Wed, 2 Oct 2019 18:24:59 +0000</created>
                <updated>Wed, 3 Jun 2020 16:40:11 +0000</updated>
                            <resolved>Fri, 15 Nov 2019 13:56:14 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                <comments>
                                                            <comment id="193653" author="5f9abc1eb45b2e007453f423" created="Wed, 2 Oct 2019 19:02:57 +0000"  >&lt;p&gt;Issue 1:   The easiest way, I think, to sync the module descriptors to folio-preview/okapi with folio-default/okapi is to perform an okapi pull from  folio-default/okapi prior to tenant deployment to folio-preview/okapi.    This step is already part of the tenant deployment.  However, we will need pull from folio-default/okapi instead of folio-registry. &lt;/p&gt;

&lt;p&gt;Issue 2:  Posting the module&apos;s deployment descriptor to folio-preview/okapi&apos;s discovery endpoint is a little trickier since there is no mechanism that sync discovery endpoints between okapis.   Therefore, I think there are two ways to approach this.   The first option would be to query the module&apos;s deployment descriptor at folio-default/okapi,  capture the output, and post it to folio-preview/okapi prior to initializing the tenant on folio-preview/okapi.    The second option would be to post the deployment descriptor to folio-preview/okapi in addition to folio-default/okapi when the module is deployed to the cluster. &lt;/p&gt;

&lt;p&gt;Issue 3: A service definition for each module specifying an &apos;ExternalName&apos; type that is used similar to CNAME aliases.  &lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;kind: Service
apiVersion: v1
metadata:
  name: service-y
  namespace: namespace-a
spec:
  type: ExternalName
  externalName: service-x.namespace-b.svc.cluster.local
  ports:
  - port: 80
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I wonder also if simply modifying module&apos;s deployment descriptor on folio-preview/okapi&apos;s endpoint to include the &apos;fqdn&apos; of the folio-default namespace would work also.  That would be easier,   but I&apos;m not sure if it would work.   Need to verify this first.  &lt;/p&gt;</comment>
                                                            <comment id="193657" author="5cd423bebc70090d6ce241b1" created="Thu, 3 Oct 2019 13:58:08 +0000"  >&lt;p&gt;fwiw I tried something in the Rancher UI to make sure the preview okapi could have a tenant w/a module in the default namespace enabled:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://okapi-preview.ci.folio.org/_/proxy/tenants/previewtest/modules&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;https://okapi-preview.ci.folio.org/_/proxy/tenants/previewtest/modules&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It&apos;s using a service called &quot;mod-inventory-storage-test&quot; on the preview namespace as an alias for the service in the default namespace. On closer inspection, this looks like a Rancher feature, so may not be preferred but wanted to mention it here. &lt;/p&gt;</comment>
                                                            <comment id="193660" author="6291011f9c617b006a6f8d98" created="Tue, 22 Oct 2019 19:37:24 +0000"  >&lt;p&gt;I&apos;m wondering if much of this work would be better served by integrating Okapi with K8s Service Discovery and etcd?&lt;/p&gt;</comment>
                                                            <comment id="193662" author="5f9abc1eb45b2e007453f423" created="Fri, 15 Nov 2019 13:56:14 +0000"  >&lt;p&gt;Functionality has been added to the FOLIO-2011a branch of jenkins-pipeline-libs&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="81406">FOLIO-2268</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10057" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Development Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10144"><![CDATA[Core: Platform]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|hzx6m9:y</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1857">CP: sprint 74</customfieldvalue>
    <customfieldvalue id="1606">CP: sprint 76</customfieldvalue>
    <customfieldvalue id="1419">CP: sprint 73</customfieldvalue>
    <customfieldvalue id="1420">CP: sprint 75</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10044" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 3 Oct 2019 13:58:08 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>