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

Regenerate client code for 2024-10 #86

Conversation

austin-denoble
Copy link
Contributor

Problem

PR was merged today making some slight adjustments to the db control spec to better align with the server impl: https://github.com/pinecone-io/apis/pull/181

Solution

Slightly adjust the PodSpec type and related code to account for the new shape.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Infrastructure change (CI configs, etc)
  • Non-code change (docs, etc)
  • None of the above: (explain here)

Test Plan

just test - CI

PodCount: int32(idx.Spec.Pod.Pods),
Replicas: idx.Spec.Pod.Replicas,
ShardCount: idx.Spec.Pod.Shards,
PodCount: derefOrDefault(idx.Spec.Pod.Pods, 0),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think these should ever realistically be nil when coming back from the server.

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree... maybe the default should be 1 (as that's the count if all other defaults are used)

PodCount: int32(idx.Spec.Pod.Pods),
Replicas: idx.Spec.Pod.Replicas,
ShardCount: idx.Spec.Pod.Shards,
PodCount: derefOrDefault(idx.Spec.Pod.Pods, 0),
Copy link
Contributor

Choose a reason for hiding this comment

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

I agree... maybe the default should be 1 (as that's the count if all other defaults are used)

@austin-denoble austin-denoble merged commit b669b68 into release-candidate/2024-10 Oct 23, 2024
2 checks passed
@austin-denoble austin-denoble deleted the adenoble/regenerate-code-round-whatever branch October 23, 2024 18:38
austin-denoble added a commit that referenced this pull request Oct 23, 2024
## Problem
PR was merged today making some slight adjustments to the db control
spec to better align with the server impl:
pinecone-io/apis#181

## Solution
Slightly adjust the `PodSpec` type and related code to account for the
new shape.

## Type of Change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update
- [ ] Infrastructure change (CI configs, etc)
- [ ] Non-code change (docs, etc)
- [ ] None of the above: (explain here)

## Test Plan
`just test` - CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants