-
-
Notifications
You must be signed in to change notification settings - Fork 15
fix(fastmcp-server): align template standards #665
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| {{- include "fastmcp-server.validate" . -}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| suite: validation | ||
| templates: | ||
| - templates/validate.yaml | ||
| tests: | ||
| - it: passes with default values | ||
| asserts: | ||
| - hasDocuments: | ||
| count: 0 | ||
|
|
||
| - it: fails when ingress is enabled without hosts | ||
| set: | ||
| ingress.enabled: true | ||
| ingress.hosts: [] | ||
| asserts: | ||
| - failedTemplate: | ||
| errorMessage: ingress.hosts must contain at least one host when ingress.enabled=true | ||
|
|
||
| - it: fails when gateway API is enabled without parentRefs | ||
| set: | ||
| gatewayAPI.enabled: true | ||
| gatewayAPI.parentRefs: [] | ||
| asserts: | ||
| - failedTemplate: | ||
| errorMessage: gatewayAPI.parentRefs must contain at least one parentRef when gatewayAPI.enabled=true | ||
|
|
||
| - it: fails when a gateway API parentRef has no name | ||
| set: | ||
| gatewayAPI.enabled: true | ||
| gatewayAPI.parentRefs: | ||
| - namespace: gateway-system | ||
| asserts: | ||
| - failedTemplate: | ||
| errorMessage: Each gatewayAPI.parentRefs entry must define a name | ||
|
|
||
| - it: ignores gateway API parentRefs when gateway API is disabled | ||
| set: | ||
| gatewayAPI.enabled: false | ||
| gatewayAPI.parentRefs: | ||
| - namespace: gateway-system | ||
| asserts: | ||
| - hasDocuments: | ||
| count: 0 | ||
|
|
||
| - it: fails when bearer auth has no token or existing secret | ||
| set: | ||
| auth.type: bearer | ||
| auth.bearer.token: "" | ||
| auth.bearer.existingSecret: "" | ||
| asserts: | ||
| - failedTemplate: | ||
| errorMessage: auth.type=bearer requires auth.bearer.token or auth.bearer.existingSecret | ||
|
|
||
| - it: fails when JWT auth is incomplete | ||
| set: | ||
| auth.type: jwt | ||
| auth.jwt.issuer: https://issuer.example.com | ||
| auth.jwt.audience: "" | ||
| auth.jwt.jwksUri: https://issuer.example.com/.well-known/jwks.json | ||
| asserts: | ||
| - failedTemplate: | ||
| errorMessage: auth.type=jwt requires auth.jwt.issuer, auth.jwt.audience, and auth.jwt.jwksUri | ||
|
|
||
| - it: fails when S3 source has no bucket | ||
| set: | ||
| sources.s3.enabled: true | ||
| sources.s3.bucket: "" | ||
| sources.s3.existingSecret: fastmcp-s3 | ||
| asserts: | ||
| - failedTemplate: | ||
| errorMessage: sources.s3.enabled requires sources.s3.bucket | ||
|
|
||
| - it: fails when S3 source has no credentials | ||
| set: | ||
| sources.s3.enabled: true | ||
| sources.s3.bucket: fastmcp | ||
| sources.s3.accessKey: "" | ||
| sources.s3.secretKey: "" | ||
| sources.s3.existingSecret: "" | ||
| asserts: | ||
| - failedTemplate: | ||
| errorMessage: sources.s3.enabled requires sources.s3.existingSecret or both sources.s3.accessKey and sources.s3.secretKey | ||
|
|
||
| - it: fails when Git source has no repository | ||
| set: | ||
| sources.git.enabled: true | ||
| sources.git.repository: "" | ||
| asserts: | ||
| - failedTemplate: | ||
| errorMessage: sources.git.enabled requires sources.git.repository | ||
|
|
||
| - it: fails when autoscaling max is lower than min | ||
| set: | ||
| autoscaling.enabled: true | ||
| autoscaling.minReplicas: 3 | ||
| autoscaling.maxReplicas: 2 | ||
| asserts: | ||
| - failedTemplate: | ||
| errorMessage: autoscaling.maxReplicas must be greater than or equal to autoscaling.minReplicas | ||
|
|
||
| - it: fails when autoscaling has no metrics | ||
| set: | ||
| autoscaling.enabled: true | ||
| autoscaling.targetCPUUtilizationPercentage: null | ||
| autoscaling.targetMemoryUtilizationPercentage: "" | ||
| asserts: | ||
| - failedTemplate: | ||
| errorMessage: autoscaling.enabled requires at least one target metric | ||
|
|
||
| - it: fails when podLabels override selector labels | ||
| set: | ||
| podLabels: | ||
| app.kubernetes.io/name: custom | ||
| asserts: | ||
| - failedTemplate: | ||
| errorMessage: podLabels must not override the selector label app.kubernetes.io/name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.