Skip to content

Commit

Permalink
chore: Parameterize IAF instances
Browse files Browse the repository at this point in the history
  • Loading branch information
nastacio committed Nov 5, 2021
1 parent 0186941 commit bb988da
Show file tree
Hide file tree
Showing 67 changed files with 438 additions and 680 deletions.
2 changes: 1 addition & 1 deletion config/argocd-cloudpaks/cp-shared/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ 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.2.0
version: 0.3.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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
containers:
- name: config
image: quay.io/openshift/origin-cli:latest
imagePullPolicy: IfNotPresent
resources:
requests:
memory: "64Mi"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
containers:
- name: config
image: quay.io/openshift/origin-cli:latest
imagePullPolicy: IfNotPresent
resources:
requests:
memory: "64Mi"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ metadata:
argocd.argoproj.io/sync-wave: "100"
spec:
destination:
namespace: ibm-cloudpaks
namespace: {{.Values.argocd_app_namespace}}
server: https://kubernetes.default.svc
ignoreDifferences:
- group: argoproj.io
jsonPointers:
- /spec/source/repoURL
- /spec/source/targetRevision
- /status
kind: Application
project: default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ metadata:
argocd.argoproj.io/sync-wave: "100"
spec:
destination:
namespace: ibm-cloudpaks
namespace: {{.Values.argocd_app_namespace}}
server: https://kubernetes.default.svc
ignoreDifferences:
- group: argoproj.io
jsonPointers:
- /spec/source/repoURL
- /spec/source/targetRevision
- /status
kind: Application
project: default
Expand Down
2 changes: 1 addition & 1 deletion config/argocd-cloudpaks/cp4a/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ 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.2.0
version: 0.3.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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ spec:
containers:
- name: config
image: quay.io/openshift/origin-cli:latest
imagePullPolicy: IfNotPresent
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
memory: "96Mi"
cpu: "300m"
env:
- name: ARGOCD_APP_NAME
value: cp4a-app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ spec:
containers:
- name: config
image: quay.io/openshift/origin-cli:latest
imagePullPolicy: IfNotPresent
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
cpu: "300m"
env:
- name: ARGOCD_APP_NAME
value: cp4a-app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ spec:
containers:
- name: config
image: quay.io/openshift/origin-cli:latest
imagePullPolicy: IfNotPresent
resources:
requests:
memory: "64Mi"
cpu: "250m"
limits:
memory: "128Mi"
cpu: "500m"
memory: "96Mi"
cpu: "300m"
env:
- name: ARGOCD_APP_NAME
value: cp4a-app
Expand Down
1 change: 1 addition & 0 deletions config/argocd-cloudpaks/cp4a/templates/cp4a-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
- group: argoproj.io
jsonPointers:
- /spec/source/repoURL
- /spec/source/targetRevision
- /status
kind: Application
project: default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ spec:
ignoreDifferences:
- group: argoproj.io
jsonPointers:
- /status
- /spec/source/repoURL
- /spec/source/targetRevision
- /status
kind: Application
project: default
source:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ spec:
ignoreDifferences:
- group: argoproj.io
jsonPointers:
- /status
- /spec/source/repoURL
- /spec/source/targetRevision
- /status
kind: Application
- group: icp4a.ibm.com
jsonPointers:
Expand Down
2 changes: 1 addition & 1 deletion config/argocd-cloudpaks/cp4aiops/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ 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.2.0
version: 0.3.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
Expand Down

This file was deleted.

6 changes: 6 additions & 0 deletions config/argocd-cloudpaks/cp4aiops/templates/cp4aiops-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ spec:
ignoreDifferences:
- group: argoproj.io
jsonPointers:
- /spec/source/helm/parameters
- /spec/source/repoURL
- /spec/source/targetRevision
- /status
kind: Application
project: default
Expand All @@ -25,6 +27,10 @@ spec:
value: ${ARGOCD_APP_NAME}
- name: argocd_app_namespace
value: ${ARGOCD_APP_NAMESPACE}
- name: automation_base_instance_name
value: "{{.Values.automation_base_instance_name}}"
- name: automation_ui_config_instance_name
value: "{{.Values.automation_ui_config_instance_name}}"
- name: metadata.argocd_app_namespace
value: {{.Values.metadata.argocd_app_namespace}}
- name: repoURL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ spec:
- group: argoproj.io
jsonPointers:
- /spec/source/repoURL
- /spec/source/targetRevision
- /status
kind: Application
- group: v1
jsonPointers:
- /metadata/labels
kind: Namespace
project: default
source:
helm:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
- group: argoproj.io
jsonPointers:
- /spec/source/repoURL
- /spec/source/targetRevision
- /status
kind: Application
project: default
Expand All @@ -25,6 +26,10 @@ spec:
value: ${ARGOCD_APP_NAME}
- name: argocd_app_namespace
value: ${ARGOCD_APP_NAMESPACE}
- name: automation_base_instance_name
value: "{{.Values.automation_base_instance_name}}"
- name: automation_ui_config_instance_name
value: "{{.Values.automation_ui_config_instance_name}}"
- name: metadata.argocd_app_namespace
value: {{.Values.metadata.argocd_app_namespace}}
- name: repoURL
Expand Down
2 changes: 2 additions & 0 deletions config/argocd-cloudpaks/cp4aiops/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
repoURL: https://github.com/IBM/cloudpak-gitops
targetRevision: main
automation_base_instance_name: ""
automation_ui_config_instance_name: ""
serviceaccount:
argocd_application_controller: openshift-gitops-argocd-application-controller
metadata:
Expand Down
2 changes: 1 addition & 1 deletion config/argocd-cloudpaks/cp4i/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ 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.2.0
version: 0.3.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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
containers:
- name: config
image: quay.io/openshift/origin-cli:latest
imagePullPolicy: IfNotPresent
resources:
requests:
memory: "64Mi"
Expand Down
1 change: 1 addition & 0 deletions config/argocd-cloudpaks/cp4i/templates/cp4i-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
- group: argoproj.io
jsonPointers:
- /spec/source/repoURL
- /spec/source/targetRevision
- /status
kind: Application
- group: route.openshift.io
Expand Down
3 changes: 2 additions & 1 deletion config/argocd-cloudpaks/cp4i/templates/cp4i-client-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ spec:
ignoreDifferences:
- group: argoproj.io
jsonPointers:
- /status
- /spec/source/repoURL
- /spec/source/targetRevision
- /status
kind: Application
project: default
source:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ spec:
ignoreDifferences:
- group: argoproj.io
jsonPointers:
- /status
- /spec/source/repoURL
- /spec/source/targetRevision
- /status
kind: Application
project: default
source:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ spec:
ignoreDifferences:
- group: argoproj.io
jsonPointers:
- /status
- /spec/source/repoURL
- /spec/source/targetRevision
- /status
kind: Application
- group: datapower.ibm.com
jsonPointers:
Expand Down
5 changes: 5 additions & 0 deletions config/argocd-rhacm/templates/rhacm-cloudpaks-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ spec:
- /spec/syncPolicy
- /status
kind: Application
- group: v1
# Due to serverless prereqs modifying annotations
jsonPointers:
- /metadata/annotations
kind: Namespace
project: default
source:
helm:
Expand Down
2 changes: 1 addition & 1 deletion config/argocd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
apiVersion: v2
name: argo-app
name: argocd
description: Argo application

# A chart can be either an 'application' or a 'library' chart.
Expand Down
1 change: 0 additions & 1 deletion config/cicd/base/01-namespaces/cicd-environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ kind: Namespace
metadata:
annotations:
app.openshift.io/vcs-uri: https://github.com/IBM/cloudpak-gitops.git?ref=main
argocd.argoproj.io/sync-wave: "0"
creationTimestamp: null
name: cicd
spec: {}
Expand Down
Loading

0 comments on commit bb988da

Please sign in to comment.