Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
4 changes: 2 additions & 2 deletions argoproj-crd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: argoproj-crd
version: 0.2.0
appVersion: 1.7.5
version: 0.3.0
appVersion: 2.5.0
description: Manage AppProject and Application that you define for Argo CD.
maintainers:
- name: cw-ozaki
Expand Down
5 changes: 3 additions & 2 deletions argoproj-crd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@ The following table lists the configurable parameters of the argoproj-crd chart
| `project.roles` | Roles are user defined RBAC roles associated with this project | `""` |
| `project.syncWindows` | SyncWindows controls when syncs can be run for apps in this project | `""` |
| `applications[].name` | Application name in Argo CD | `nil` |
| `applications[].namespace` | Application resource namespace Argo CD must be 2.5 or higher | `nil` |
| `applications[].repoURL` | Repository URL to be the source of the application | `nil` |
| `applications[].targetRevision` | HEAD/branch/tag/commit hash | `nil` |
| `applications[].path` | Path from the root of the repository that will be the source of the application | `nil` |
| `applications[].helm` | helm specific config | `nil` |
| `applications[].kustomize` | kustomize specific config | `nil` |
| `applications[].directory` | directory | `nil` |
| `applications[].plugin` | plugin specific config | `nil` |
| `applications[].server` | Destination cluster to deploy the application | `nil` |
| `applications[].namespace` | Destination namespace to deploy the application | `nil` |
| `applications[].destination.server` | Destination cluster to deploy the application | `nil` |
| `applications[].destination.namespace` | Destination namespace to deploy the application | `nil` |
| `applications[].syncPolicy` | Sync policy | `automated: {}` |
| `applications[].ignoreDifferences` | Ignore differences at the specified json pointers | `[]` |

Expand Down
9 changes: 7 additions & 2 deletions argoproj-crd/templates/applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ $app.name }}
{{- with $app.namespace }}
namespace: {{ $app.namespace }}
{{- end }}
labels:
{{- include "argoproj-crd.labels" $root | nindent 4 }}
{{- with $app.labels }}
Expand All @@ -21,9 +24,11 @@ metadata:
- resources-finalizer.argocd.argoproj.io
{{- end }}
spec:
{{- with $app.destination }}
destination:
server: {{ $app.server }}
namespace: {{ $app.namespace }}
server: {{ .server }}
namespace: {{ .namespace }}
{{- end }}

{{- with $app.ignoreDifferences }}
ignoreDifferences:
Expand Down
15 changes: 8 additions & 7 deletions argoproj-crd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,17 +128,18 @@ applications: []
# plugin:
# name: helmfile

# destination:
# Destination cluster to deploy the application.
# server: https://kubernetes.default.svc
# server: https://kubernetes.default.svc

# Destination namespace to deploy the application.
# namespace: guestbook
# namespace: guestbook
# or
# namespace:
# metadata:
# name: guestbook
# annotations:
# iam.amazonaws.com/permitted: ".*"
# namespace:
# metadata:
# name: guestbook
# annotations:
# iam.amazonaws.com/permitted: ".*"

# Sync policy.
# syncPolicy:
Expand Down