Skip to content

Conversation

@grantmiller
Copy link
Member

@grantmiller grantmiller commented Dec 6, 2024

Steps on how to set initial values moved to the "Managing Customer License Fields" docs page, which includes all the info about stuff you can do on the License Fields page in the Vendor Portal: https://deploy-preview-2882--replicated-docs-upgrade.netlify.app/vendor/licenses-adding-custom-fields. Note this draws distinction between the built-in fields for customers in the Vendor Portal, and the built-in fields that appear in licenses

"Built-In License Fields" docs page (with the tables of field names) is updated to clarify that these are the fields that appear in the license itself: https://deploy-preview-2882--replicated-docs-upgrade.netlify.app/vendor/licenses-using-builtin-fields

@grantmiller grantmiller requested a review from a team as a code owner December 6, 2024 14:35
@replicated-ci replicated-ci added type::docs Improvements or additions to documentation type::feature labels Dec 6, 2024
@netlify
Copy link

netlify bot commented Dec 6, 2024

Deploy Preview for replicated-docs ready!

Name Link
🔨 Latest commit 85b682a
🔍 Latest deploy log https://app.netlify.com/sites/replicated-docs/deploys/67589588ef1de60008f048cd
😎 Deploy Preview https://deploy-preview-2882--replicated-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Dec 6, 2024

Deploy Preview for replicated-docs-upgrade ready!

Name Link
🔨 Latest commit 85b682a
🔍 Latest deploy log https://app.netlify.com/sites/replicated-docs-upgrade/deploys/67589588264f230008d0fb4d
😎 Deploy Preview https://deploy-preview-2882--replicated-docs-upgrade.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -1,22 +1,38 @@
# Managing Custom License Fields
# Managing Customer License Fields
Copy link
Contributor

@paigecalvert paigecalvert Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ Updated this topic so that it's about managing all types of license fields from the License Fields tab in the Vendor Portal in general. Meaning, the new steps about how to set initial values for built-in fields are moved over to this topic. Previously, this topic just had info about custom fields.

The idea is that you can go to one page in the docs for info about the License Fields Vendor Portal page

import GitOpsNotRecommended from "../partials/gitops/_gitops-not-recommended.mdx"

# Built-in License Fields
# Built-In License Fields
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated this topic to clarify that it's talking about the fields in the license itself. NOT the fields that show up in the Vendor Portal.

There is of course some cross-over in those lists of fields, but the purpose of this page is to show vendors the field names that they can access using the KOTS License context template functions or the SDK API license endpoints

Built-in fields are reserved field names. The following table describes each built-in license field that you can define for a customer.
This topic describes the built-in license fields that appear customer licenses for applications distributed with Replicated.

## Overview
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this conceptual overview to explain what these fields can be used for

<tr>
<td>`replicatedProxyDomain`</td>
<td>The domain used for the Replicated proxy registry. By default, `proxy.replicated.com`. For information about setting a custom domain for the proxy registry, see [Using Custom Domains](/vendor/custom-domains-using).</td>
</tr>
Copy link
Contributor

@paigecalvert paigecalvert Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ I saw this proxy domain field in some licenses that I downloaded from the Vendor Portal, but it was missing from the table. Not sure if it was worth including here but added it just in case

Copy link
Member

@divolgin divolgin Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replicatedProxyDomain won't work. That value is sort of accessible via the LocalImageName function, but that's not relevant here I think. The full list of supported values for LicenseFieldValue is here: https://github.com/replicatedhq/kots/blob/d39bb2bc190c767842cde3620363de100bb5c70c/pkg/template/license_context.go#L41-L74

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and default case in that code covers vendor defined entitlements, with expires_at being the exception that we generate (thus the snake case)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha, thanks. I'll remove the proxy domain field from this table

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And from that list that you linked, it looks like just isDisasterRecoverySupported is missing...which I think is talking about the EC disaster recovery field

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. That list definitely needs to be updated.

type: 'category',
label: 'Querying License Entitlements',
items: [
'vendor/licenses-using-builtin-fields',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ Moved the Built-In License Fields page to the section on querying license fields, where it is applicable

{
type: 'category',
label: 'Customer Licenses',
label: 'Customers and Licenses',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ clarifying that customers and licenses are two different things

@paigecalvert paigecalvert merged commit 67c8917 into main Dec 10, 2024
5 checks passed
@paigecalvert paigecalvert deleted the builtins branch December 10, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type::docs Improvements or additions to documentation type::feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants