Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: konflux-support-ops
spec:
generators:
- merge:
mergeKeys:
- nameNormalized
generators:
- clusters:
selector:
matchLabels:
appstudio.redhat.com/member-cluster: "true"
values:
sourceRoot: components/konflux-support-ops
environment: staging
clusterDir: ""
- list:
elements: []
template:
metadata:
name: konflux-support-ops-{{nameNormalized}}
spec:
project: default
source:
path: '{{values.sourceRoot}}/{{values.environment}}/{{values.clusterDir}}'
repoURL: https://github.com/redhat-appstudio/infra-deployments.git
targetRevision: main
destination:
namespace: cert-manager
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the namespace cert-manager?

server: '{{server}}'
syncPolicy:
automated:
prune: true
selfHeal: false
syncOptions:
- CreateNamespace=true
retry:
limit: -1
backoff:
duration: 10s
factor: 2
maxDuration: 3m
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- konflux-support-ops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ resources:
- kueue
- policies
- konflux-kite
- konflux-support-ops
components:
- ../../../k-components/inject-infra-deployments-repo-details
5 changes: 5 additions & 0 deletions argo-cd-apps/overlays/development/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,8 @@ patches:
kind: ApplicationSet
version: v1alpha1
name: trust-manager
- path: development-overlay-patch.yaml
target:
kind: ApplicationSet
version: v1alpha1
name: konflux-support-ops
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,9 @@ kind: ApplicationSet
metadata:
name: disable-self-provisioning
$patch: delete
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: konflux-support-ops
$patch: delete
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,9 @@ kind: ApplicationSet
metadata:
name: disable-self-provisioning
$patch: delete
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: konflux-support-ops
$patch: delete
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: builtin
kind: HelmChartInflationGenerator
metadata:
name: konflux-support-ops
name: konflux-support-ops
repo: <?>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@avi-biton Any idea which repo link should I link here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you using helm chart to deploy it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I a not using helm chat. In that case what should I fill in there?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If support-ops is not deployed by helm chart, you should not use HelmChartInflationGenerator
Take a look at https://github.com/redhat-appstudio/infra-deployments/tree/main/components/smee-client and use it as an example for how to create deployment from your image

version: 0.19.0
namespace: <?>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@avi-biton should I create a new namespace here?

releaseName: konflux-support-ops
valuesInline:
resources:
requests:
cpu: 25m
memory: 64Mi
limits:
cpu: 25m
memory: 64Mi
defaultPackage:
resources:
requests:
cpu: 25m
memory: 64Mi
limits:
cpu: 25m
memory: 64Mi
5 changes: 5 additions & 0 deletions components/konflux-support-ops/development/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

generators:
- konflux-support-ops-generator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: builtin
kind: HelmChartInflationGenerator
metadata:
name: konflux-support-ops
name: konflux-support-ops
repo: <?>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@avi-biton Any idea which repo link should I link here?

version: 0.19.0
namespace: <?>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@avi-biton Should I create a new namespace or use an existing one?

releaseName: konflux-support-ops
valuesInline:
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 100m
memory: 128Mi
defaultPackage:
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 100m
memory: 128Mi
5 changes: 5 additions & 0 deletions components/konflux-support-ops/staging/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

generators:
- konflux-support-ops-generator.yaml
Loading