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

feat: ATL-5777 - Adding update argostate with new release #725

Closed
wants to merge 14 commits into from
Closed
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
29 changes: 29 additions & 0 deletions infrastructure/argocd-state/d-useast1-sjd4e/Chart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: v2
name: d-useast1-sjd4e-argocd-state
description: A helm chart for managing state in sjd4e

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

dependencies:
- name: "argocd-apps"
version: "1.2.0"
repository: "https://argoproj.github.io/argo-helm"
76 changes: 76 additions & 0 deletions infrastructure/argocd-state/d-useast1-sjd4e/values.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
argocd-apps:
itemTemplates:
- items:
- name: prism-agent-application-set
generators: &generators
- list:
elements:
- app_name: sit-prism-agent-holder
namespace: sit-prism-agent-holder
ingressURL: sit-prism-agent-holder.atalaprism.io
- app_name: sit-prism-agent-issuer
namespace: sit-prism-agent-issuer
ingressURL: sit-prism-agent-issuer.atalaprism.io
- app_name: sit-prism-agent-verifier
namespace: sit-prism-agent-verifier
ingressURL: sit-prism-agent-verifier.atalaprism.io
template:
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: "{{ .name }}"
spec:
generators: *generators
template:
metadata:
name: "{{`{{app_name}}`}}"
namespace: argocd
additionalLabels:
type: agent
spec:
project: system-integration-testing
source:
path: infrastructure/charts/agent
repoURL: "https://github.com/hyperledger-labs/open-enterprise-agent"
targetRevision: "main"
helm:
values: |
ingress:
applicationUrls:
- "{{`{{ingressURL}}`}}"
platformIngressUrl: internal-useast1-sjd4e.atalaprism.io
consumers:
- "key1"
secrets:
secretStore: prism-v2-dev-sjd4e-us-east-1-externalsecrets
dockerRegistryToken: dev-sjd4e-argocd-github-docker-registry-token
server:
useVault: false
additionalEnvVariables:
SECRET_STORAGE_BACKEND: "postgres"
vdrManager:
host: node-service.sit-prism-node
vault:
global:
enabled: false
destination:
server: https://kubernetes.default.svc
namespace: "{{`{{namespace}}`}}"
info:
- name: Url
value: "{{`{{ingressURL}}`}}"
syncPolicy:
# automated:
# prune: true
# selfHeal: true
syncOptions:
- Validate=true
- CreateNamespace=true
- PrunePropagationPolicy=foreground
- PruneLast=true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m
29 changes: 29 additions & 0 deletions infrastructure/argocd-state/i-eucentral1-prt9a/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: v2
name: d-useast1-sjd4e-argocd-state
description: A helm chart for managing state in sjd4e

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

dependencies:
- name: "argocd-apps"
version: "1.2.0"
repository: "https://argoproj.github.io/argo-helm"
94 changes: 94 additions & 0 deletions infrastructure/argocd-state/i-eucentral1-prt9a/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
argocd-apps:
projects:
- name: system-integration-testing
namespace: argocd
additionalLabels:
audience: internal
owner: qa
additionalAnnotations: { }
finalizers:
- resources-finalizer.argocd.argoproj.io
description: Project to hold applications for system-integration-testing environment
sourceRepos:
- '*'
destinations:
- namespace: '*'
server: https://kubernetes.default.svc
clusterResourceWhitelist:
- group: '*'
kind: '*'
itemTemplates:
- items:
- name: prism-agent-application-set
generators: &generators
- list:
elements:
- app_name: eu-prism-agent-holder
namespace: eu-prism-agent-holder
ingressURL: eu-prism-agent-holder.atalaprism.io
- app_name: eu-prism-agent-issuer
namespace: eu-prism-agent-issuer
ingressURL: eu-prism-agent-issuer.atalaprism.io
- app_name: eu-prism-agent-verifier
namespace: eu-prism-agent-verifier
ingressURL: eu-prism-agent-verifier.atalaprism.io
template:
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: "{{ .name }}"
spec:
generators: *generators
template:
metadata:
name: "{{`{{app_name}}`}}"
namespace: argocd
additionalLabels:
type: agent
spec:
project: system-integration-testing
source:
path: infrastructure/charts/agent
repoURL: "https://github.com/hyperledger-labs/open-enterprise-agent"
targetRevision: "main"
helm:
values: |
ingress:
applicationUrls:
- "{{`{{ingressURL}}`}}"
platformIngressUrl: internal-eucentral1-prt9a.atalaprism.io
consumers:
- "key1"
secrets:
secretStore: prism-v2-prt9a-us-east-1-externalsecrets
dockerRegistryToken: prt9a-argocd-github-docker-registry-token
server:
useVault: false
additionalEnvVariables:
SECRET_STORAGE_BACKEND: "postgres"
vdrManager:
host: node-service.sit-prism-node
vault:
global:
enabled: false
destination:
server: https://kubernetes.default.svc
namespace: "{{`{{namespace}}`}}"
info:
- name: Url
value: "{{`{{ingressURL}}`}}"
syncPolicy:
# automated:
# prune: true
# selfHeal: true
syncOptions:
- Validate=true
- CreateNamespace=true
- PrunePropagationPolicy=foreground
- PruneLast=true
retry:
limit: 5
backoff:
duration: 5s
factor: 2
maxDuration: 3m
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
"prepareCmd": "yq -i '.appVersion = \"${nextRelease.version}\"' ./infrastructure/charts/agent/Chart.yaml"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "yq -i '(.argocd-apps.itemTemplates[] | select(.items[] | .name == \"prism-agent-application-set\") | .template.spec.source.targetRevision) = \"prism-agent-v${nextRelease.version}\"' ./infrastructure/argocd-state/d-useast1-sjd4e/values.yml"
}
],
[
"@semantic-release/exec",
{
Expand Down