-
Notifications
You must be signed in to change notification settings - Fork 8
feat: maestro client implemented in adapter framework #37
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
openshift-merge-bot
merged 3 commits into
openshift-hyperfleet:main
from
xueli181114:HYPERFLEET-564
Feb 5, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| # HyperFleet Adapter Deployment Configuration | ||
| # | ||
| # This file contains ONLY infrastructure and deployment-related settings: | ||
| # - Client connections (Maestro, HyperFleet API, Kubernetes) | ||
| # - Authentication and TLS configuration | ||
| # - Connection timeouts and retry policies | ||
| # | ||
| # NOTE: This is a SAMPLE configuration file for reference and local development. | ||
| # It is NOT automatically packaged with the container image (see Dockerfile). | ||
| # | ||
| # In production, provide configuration via one of these methods: | ||
| # 1. ADAPTER_CONFIG_PATH environment variable pointing to a config file (highest priority) | ||
| # 2. ConfigMap mounted at /etc/adapter/config/adapter-deployment-config.yaml | ||
| # | ||
| # Example Kubernetes deployment: | ||
| # env: | ||
| # - name: ADAPTER_CONFIG_PATH | ||
| # value: /etc/adapter/config/adapter-deployment-config.yaml | ||
| # volumeMounts: | ||
| # - name: config | ||
| # mountPath: /etc/adapter/config | ||
| # | ||
| # For business logic configuration (params, preconditions, resources, post-actions), | ||
| # use a separate business config file. See configs/adapter-config-template.yaml | ||
|
|
||
| apiVersion: hyperfleet.redhat.com/v1alpha1 | ||
| kind: AdapterDeploymentConfig | ||
| metadata: | ||
| name: hyperfleet-adapter | ||
| namespace: hyperfleet-system | ||
| labels: | ||
| hyperfleet.io/component: adapter | ||
|
|
||
| spec: | ||
| adapter: | ||
| version: "0.1.0" | ||
|
|
||
| # Client configurations for external services | ||
| clients: | ||
| # Maestro transport client configuration | ||
| maestro: | ||
| # gRPC server address | ||
| # Environment variable: HYPERFLEET_MAESTRO_GRPC_SERVER_ADDRESS | ||
| # Flag: --maestro-grpc-server-address | ||
| grpcServerAddress: "maestro-grpc.maestro.svc.cluster.local:8090" | ||
|
|
||
| # HTTPS server address for REST API operations (optional) | ||
| # Environment variable: HYPERFLEET_MAESTRO_HTTP_SERVER_ADDRESS | ||
| httpServerAddress: "https://maestro-api.maestro.svc.cluster.local" | ||
|
|
||
| # Source identifier for CloudEvents routing (must be unique across adapters) | ||
| # Environment variable: HYPERFLEET_MAESTRO_SOURCE_ID | ||
| sourceId: "hyperfleet-adapter" | ||
|
|
||
| # Client identifier (defaults to sourceId if not specified) | ||
| # Environment variable: HYPERFLEET_MAESTRO_CLIENT_ID | ||
| clientId: "hyperfleet-adapter-client" | ||
|
|
||
| # Authentication configuration | ||
| auth: | ||
| type: "tls" # TLS certificate-based mTLS | ||
|
|
||
| tlsConfig: | ||
| # gRPC TLS configuration | ||
| # Certificate paths (mounted from Kubernetes secrets) | ||
| # Environment variable: HYPERFLEET_MAESTRO_CA_FILE | ||
| caFile: "/etc/maestro/certs/grpc/ca.crt" | ||
|
|
||
| # Environment variable: HYPERFLEET_MAESTRO_CERT_FILE | ||
| certFile: "/etc/maestro/certs/grpc/client.crt" | ||
|
|
||
| # Environment variable: HYPERFLEET_MAESTRO_KEY_FILE | ||
| keyFile: "/etc/maestro/certs/grpc/client.key" | ||
|
|
||
| # Server name for TLS verification | ||
| # Environment variable: HYPERFLEET_MAESTRO_SERVER_NAME | ||
| serverName: "maestro-grpc.maestro.svc.cluster.local" | ||
|
|
||
| # HTTP API TLS configuration (may use different CA than gRPC) | ||
| # If not set, falls back to caFile for backwards compatibility | ||
| # Environment variable: HYPERFLEET_MAESTRO_HTTP_CA_FILE | ||
| httpCaFile: "/etc/maestro/certs/https/ca.crt" | ||
|
|
||
| # Connection settings | ||
| timeout: "30s" | ||
| retryAttempts: 3 | ||
| retryBackoff: "exponential" | ||
|
|
||
| # Keep-alive for long-lived gRPC connections | ||
| keepalive: | ||
| time: "30s" | ||
| timeout: "10s" | ||
| permitWithoutStream: true | ||
|
|
||
| # HyperFleet HTTP API client | ||
| hyperfleetApi: | ||
| timeout: 2s | ||
| retryAttempts: 3 | ||
| retryBackoff: exponential | ||
|
|
||
| # Kubernetes client (for direct K8s resources) | ||
| kubernetes: | ||
| apiVersion: "v1" | ||
| # Uses in-cluster service account by default | ||
| # Or set kubeconfig path via KUBECONFIG environment variable |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document
HYPERFLEET_API_TOKENhere if the template requires it.Integration tests now set this variable; if it’s required for API auth, the env var table should include it (with default/required status).
📌 Suggested doc update
| `HYPERFLEET_API_VERSION` | API version for HyperFleet API | (from config) | +| `HYPERFLEET_API_TOKEN` | API token for HyperFleet API authentication | (required) |📝 Committable suggestion
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xueli181114, understood! I'll skip that suggestion.🧠 Learnings used