Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP feat(sdk): add values schema #3009

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

DexterYan
Copy link
Member

No description provided.

@DexterYan DexterYan requested a review from a team as a code owner January 28, 2025 03:13
@DexterYan DexterYan marked this pull request as draft January 28, 2025 03:13
@replicated-ci replicated-ci added the type::docs Improvements or additions to documentation label Jan 28, 2025
Copy link

netlify bot commented Jan 28, 2025

Deploy Preview for replicated-docs ready!

Name Link
🔨 Latest commit c1c55ee
🔍 Latest deploy log https://app.netlify.com/sites/replicated-docs/deploys/6799adfdcb8c8a00083a904a
😎 Deploy Preview https://deploy-preview-3009--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.

Copy link

netlify bot commented Jan 28, 2025

Deploy Preview for replicated-docs-upgrade ready!

Name Link
🔨 Latest commit c1c55ee
🔍 Latest deploy log https://app.netlify.com/sites/replicated-docs-upgrade/deploys/6799adfd92ca85000826a216
😎 Deploy Preview https://deploy-preview-3009--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.

Copy link
Member

@adamancini adamancini left a comment

Choose a reason for hiding this comment

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

some small nitpicks, and 1 new ask:

there is also a top-level key replicated that has values we inject:

replicated:
  enabled: true
  appName: powerdns
  channelID: 2jKkegBMseH5wJMR02vPYcC6Aii
  channelName: Unstable
  channelSequence: 33
  integration:
    enabled: true
  license: {}
  parentChartURL: oci://registry.replicated.com/powerdns/unstable/powerdns-authoritative
  releaseCreatedAt: "2024-11-25T20:38:22Z"
  releaseNotes: 'CLI release of adamancini/library-chart-pattern triggered by ada [SHA: 1457889-dirty] [25 Nov 24 15:38 EST]'
  releaseSequence: 88
  replicatedAppEndpoint: https://replicated.app
  versionLabel: Unstable-1457889-dirty

replicated.license contains a License object:

 apiVersion: kots.io/v1beta1
    kind: License
    metadata:
        name: somebigbank
    spec:
        appSlug: powerdns
        channelID: 2jKkegBMseH5wJMR02vPYcC6Aii
        channelName: Unstable
        channels:
            - channelID: 2jbelsjWVVHmP3xQ0EnNhA2qXua
              channelName: adamancini/library-chart-pattern
              channelSlug: adamancini-library-chart-pattern
              endpoint: https://replicated.app
              replicatedProxyDomain: proxy.replicated.com
            - channelID: 2jKkegBMseH5wJMR02vPYcC6Aii
              channelName: Unstable
              channelSlug: unstable
              endpoint: https://replicated.app
              isDefault: true
              replicatedProxyDomain: proxy.replicated.com
            - channelID: 2jnDLb5ihJNtfWG3l447jQG4H5K
              channelName: library-chart-pattern
              channelSlug: library-chart-pattern
              endpoint: https://replicated.app
              replicatedProxyDomain: proxy.replicated.com
            - channelID: 2nRKXG7AJ07JXuDIQqyiaksUkgJ
              channelName: Dev
              channelSlug: dev
              endpoint: https://replicated.app
              replicatedProxyDomain: proxy.replicated.com
        customerEmail: ada@replicated.com
        customerName: some big bank
        endpoint: https://replicated.app
        entitlements:
            expires_at:
                description: License Expiration
                signature: {}
                title: Expiration
                value: ""
                valueType: String
        isAirgapSupported: true
        isDisasterRecoverySupported: true
        isEmbeddedClusterDownloadEnabled: true
        isKotsInstallEnabled: true
        isSnapshotSupported: true
        isSupportBundleUploadSupported: true
        licenseID: 2jbfVR0m7tIy1tDec5ktplXuYvx
        licenseSequence: 16
        licenseType: dev
        replicatedProxyDomain: proxy.replicated.com
        signature: ey..J9
  parentChartURL: oci://registry.replicated.com/powerdns/unstable/powerdns-authoritative
  releaseCreatedAt: "2024-11-25T20:38:22Z"
  releaseNotes: 'CLI release of adamancini/library-chart-pattern triggered by ada [SHA: 1457889-dirty] [25 Nov 24 15:38 EST]'
  releaseSequence: 88
  replicatedAppEndpoint: https://replicated.app
  versionLabel: Unstable-1457889-dirty

Here is an example of how to use the `global.replicated` values schema in your application:

```yaml
dockerconfigjson: '{{ .Values.global.replicated.dockerconfigjson }}'
Copy link
Member

Choose a reason for hiding this comment

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

I can see the intent here, but this is probably not how I would show a sample of using this dockerconfigjson key - at face value, yeah it does make sense, it's syntactically correct, but I think putting it into context is a better example: https://docs.replicated.com/vendor/helm-image-registry#enable-the-proxy-registry

# Add image URL in the values file
apiImageRepository: proxy.replicated.com/proxy/my-app/quay.io/my-org/api
apiImageTag: v1.0.1
```
Copy link
Member

Choose a reason for hiding this comment

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

for style, sections between code blocks should have a newline in between them:

```

In your deployment manifest you can reference ....

```yaml

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.

3 participants