Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,10 @@ jobs:
secrets: inherit
with:
version: ${{ github.ref_name }}

repository-dispatch:
needs: check_release
uses: ./.github/workflows/repository-dispatch.yml
secrets: inherit
with:
version: ${{ needs.check_release.outputs.version }}
53 changes: 53 additions & 0 deletions .github/workflows/repository-dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
# yamllint disable rule:truthy rule:line-length
name: Trigger Infrahub SDK update in other repositories

on:
workflow_dispatch:
inputs:
runs-on:
description: "The OS to run the job on"
required: false
default: "ubuntu-22.04"
type: string
version:
type: string
required: false
description: The string to extract semver from.
default: ''
workflow_call:
inputs:
runs-on:
description: "The OS to run the job on"
required: false
default: "ubuntu-22.04"
type: string
version:
type: string
required: false
description: The string to extract semver from.
default: ''

jobs:
repository-dispatch:
runs-on: ubuntu-22.04
strategy:
matrix:
# Either a literal path, or the name of a secret...
repo:
- "opsmill/infrahub-demo-dc-fabric"
- "INFRAHUB_CUSTOMER1_REPOSITORY"

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GH_UPDATE_PACKAGE_OTTO }}
# if matrix.repo contains a slash, use it literally; otherwise look up the secret named by matrix.repo
repository: ${{ contains(matrix.repo, '/') && matrix.repo || secrets[matrix.repo] }}
event-type: trigger-infrahub-sdk-python-update
client-payload: |
{"version":"${{ inputs.version }}"}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang

<!-- towncrier release notes start -->

## [1.11.1](https://github.com/opsmill/infrahub-sdk-python/tree/v1.11.1) - 2025-04-28

### Changed

- Set the HFID on related nodes for cardinality many relationships, and add HFID support to the RelationshipManager `add`, `extend` and `remove` methods.

## [1.11.0](https://github.com/opsmill/infrahub-sdk-python/tree/v1.11.0) - 2025-04-17

### Deprecated
Expand Down

This file was deleted.

10 changes: 5 additions & 5 deletions docs/docs/python-sdk/topics/object_file.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ Object files are meant to be used in an idempotent way and as such they work bet

## Load Object files into Infrahub

Object files can be loaded into Infrahub using the `infrahub object load` command.
Object files can be loaded into Infrahub using the `infrahubctl object load` command.

```bash
infrahub object load <path_to_object_file>
infrahubctl object load <path_to_object_file>
```

Multiple object files can be loaded at once by specifying the path to multiple files or by specifying a directory.
Expand All @@ -40,10 +40,10 @@ Also, if some objects present in different files are identical and dependent on

### Validate the format of object files

The object file can be validated using the `infrahub object validate` command.
The object file can be validated using the `infrahubctl object validate` command.

```bash
infrahub object validate <path_to_object_file>
infrahubctl object validate <path_to_object_file>
```

## Object file format
Expand Down Expand Up @@ -185,7 +185,7 @@ Metadata support is planned for future releases. Currently, the Object file does

1. **Objects not being created**: Ensure that the YAML syntax is correct and that the file follows the required format.
2. **Dependency errors**: When objects depend on each other, load them in the correct order (dependencies first).
3. **Validation errors**: Use the `infrahub object validate` command to check for syntax errors before loading.
3. **Validation errors**: Use the `infrahubctl object validate` command to check for syntax errors before loading.

### Best practices

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "infrahub-sdk"
version = "1.11.0"
version = "1.11.1"
description = "Python Client to interact with Infrahub"
authors = ["OpsMill <[email protected]>"]
readme = "README.md"
Expand Down