Skip to content

Commit

Permalink
[Integration][ArgoCD] - Update argocd k8s image (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeyGis authored May 7, 2024
1 parent 8e88fb9 commit dc52612
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 63 deletions.
63 changes: 2 additions & 61 deletions integrations/argocd/.port/resources/blueprints.json
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
"title": "Image",
"target": "image",
"required": false,
"many": true
"many": false
}
}
},
Expand All @@ -312,66 +312,7 @@
"title": "Image",
"icon": "AWS",
"schema": {
"properties": {
"registryId": {
"type": "string",
"title": "Registry ID",
"description": "The ID of the registry",
"icon": "DefaultProperty"
},
"digest": {
"type": "string",
"title": "Image Digest",
"description": "SHA256 digest of image manifest",
"icon": "DefaultProperty"
},
"tags": {
"type": "array",
"title": "Image Tags",
"description": "List of tags for the image",
"icon": "DefaultProperty"
},
"pushedAt": {
"type": "string",
"title": "Pushed At",
"description": "Date and time the image was pushed to the repository",
"format": "date-time",
"icon": "DefaultProperty"
},
"lastRecordedPullTime": {
"type": "string",
"title": "Last Recorded Pull Time",
"description": "Date and time the image was last pulled",
"format": "date-time",
"icon": "DefaultProperty"
},
"triggeredBy": {
"type": "string",
"icon": "TwoUsers",
"title": "Triggered By",
"description": "The user who triggered the run"
},
"commitHash": {
"type": "string",
"title": "Commit Hash",
"icon": "DefaultProperty"
},
"pullRequestId": {
"type": "string",
"icon": "Git",
"title": "Pull Request ID"
},
"workflowId": {
"type": "string",
"title": "Workflow ID",
"icon": "DefaultProperty"
},
"image_branch": {
"title": "Image branch",
"type": "string",
"description": "The git branch associated with the repository used to build the Image"
}
},
"properties": {},
"required": []
},
"mirrorProperties": {},
Expand Down
2 changes: 1 addition & 1 deletion integrations/argocd/.port/resources/port-app-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ resources:
labels: .liveState | fromjson | .metadata.labels
relations:
application: .__application.metadata.uid
image: 'if .kind == "Deployment" then [.liveState | fromjson | .spec.template.spec.containers[] | .image] else [] end'
image: 'if .kind == "Deployment" then .liveState | fromjson | .spec.template.spec.containers[0].image else null end'
8 changes: 8 additions & 0 deletions integrations/argocd/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- towncrier release notes start -->

# Port_Ocean 0.1.45 (2024-05-06)

### Improvements

- Updated the relationship between images and k8s resource from many to one
- Deleted all the properties from the image blueprint since none of the properties can be extracted from the k8s resource


# Port_Ocean 0.1.44 (2024-05-01)

### Improvements
Expand Down
2 changes: 1 addition & 1 deletion integrations/argocd/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "argocd"
version = "0.1.44"
version = "0.1.45"
description = "Argo CD integration powered by Ocean"
authors = ["Isaac Coffie <[email protected]>"]

Expand Down

0 comments on commit dc52612

Please sign in to comment.