Skip to content

Commit

Permalink
fixing typos and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tjungbauer committed Apr 5, 2024
1 parent 304c3bd commit 01f8311
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 3 deletions.
2 changes: 1 addition & 1 deletion base/init_app_of_apps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
`init_app_of_apps` is a Helm chart for initializing applications in an OpenShift cluster using GitOps principles.
It serves as the first Argo CD Application to be installed, acting as an **App-of-Apps** by verifying the
configured **path** which defines all further Applications and ApplicationSets for **cluster configuration**.
In other words, this App-of-Apps creates an Applicaton called **argocd-resources-manager** and this resources-manager renders all further Applications and ApplicationSets.
In other words, this App-of-Apps creates an Application called **argocd-resources-manager** and this resources-manager renders all further Applications and ApplicationSets.

If you use the shell script of this repository, it will be installed as the final step of that script, so you can immediately start with your cluster configuration.

Expand Down
105 changes: 104 additions & 1 deletion clusters/management-cluster/applications-gitops/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,106 @@


# TODO
# GitOps instance for Application workload

[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Linting](https://github.com/tjungbauer/openshift-clusterconfig-gitops/actions/workflows/linting.yml/badge.svg)](https://github.com/tjungbauer/openshift-clusterconfig-gitops/actions/workflows/linting.yml)


## Description

The default instance of Argo CD (openshift gitops operator) has more permissions than you usually want to have. Too many privileges than you want to give developers for workload onboarding.
Therefore, a 2nd (or even more) Argo CD instance can be deployed. This Helm chart will help you configure this instance.

## Dependencies

This chart has the following dependencies:

| Repository | Name | Version |
|------------|------|---------|
| https://charts.stderr.at/ | openshift-gitops | ~1.0.5 |

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| tjungbauer | <[email protected]> | <https://blog.stderr.at/> |

## Sources
Source:
* <https://github.com/tjungbauer/helm-charts>
* <https://charts.stderr.at/>
* <https://github.com/tjungbauer/openshift-clusterconfig-gitops>

Source code: https://github.com/tjungbauer/helm-charts/tree/main/charts/openshift-gitops

## Parameters

Verify the sub-charts for a documentation of the possible settings:

* [openshift-gitops](https://github.com/tjungbauer/helm-charts/tree/main/charts/openshift-gitops)

## Example

```yaml
---
hostname: &hostname gitops.apps.prod.ocp.cluster

openshift-gitops:
gitopsinstances:
gitops_application:
enabled: true
namespace: gitops-application
clusterAdmin: disabled

server:
# host: *hostname
route:
enabled: true

generic_config:
disableAdmin: true
resourceTrackingMethod: annotation
kustomizeBuildOptions: "--enable-helm"

controller: {}
ha: {}
redis: {}
repo: {}
appset: {}
sso:
dex:
openShiftOAuth: true

rbac:
defaultRole: 'role:none'

policy: |-
# Access Control
g, system:cluster-admins, role:admin
g, cluster-admin, role:admin
p, role:none, applications, get, */*, deny
p, role:none, certificates, get, *, deny
p, role:none, clusters, get, *, deny
p, role:none, repositories, get, *, deny
p, role:none, projects, get, *, deny
p, role:none, accounts, get, *, deny
p, role:none, gpgkeys, get, *, deny
scopes: '[groups]'

resourceExclusions: |-
# resources to be excluded
- apiGroups:
- tekton.dev
clusters:
- '*'
kinds:
- TaskRun
- PipelineRun
# This will create some default health checks I usually add.
# * ClusterLogging, * Application (Argo CD), * Lokistack, * Subcription, * Central (ACS), InstallPlan
# @default -- false
default_resourceHealthChecks: true
```
This will create a 2nd Argo CD instance in the namespace "gitops-application"
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ openshift-gitops:
gitops_application:
enabled: true
namespace: gitops-application
clusterAdmin: enabled
clusterAdmin: disabled

server:
# host: *hostname
Expand Down

0 comments on commit 01f8311

Please sign in to comment.