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

refactor / cleanup #20

Merged
merged 37 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
a9a1b12
update: major refactor of paths
codekow Oct 10, 2023
0626b48
refactor more
codekow Oct 10, 2023
c2f08a8
refactor more
codekow Oct 10, 2023
24e9188
cleanup
codekow Oct 10, 2023
586bc98
update: automate_operators
codekow Oct 10, 2023
94dc3d9
update: scripts
codekow Oct 10, 2023
6be5862
update: paths
codekow Oct 10, 2023
9d121cc
fix: manifests
codekow Oct 10, 2023
11dfdec
update: scripts
codekow Oct 10, 2023
f179627
add: things
codekow Oct 10, 2023
00d4b41
update: gh actions
codekow Oct 10, 2023
18baf3f
fix: linting
codekow Oct 10, 2023
9faf091
update: scripts
codekow Oct 10, 2023
3ca7979
update: scripts
codekow Oct 10, 2023
59d16ed
update: undo gitignore damage
codekow Oct 10, 2023
eac778e
update: scripts
codekow Oct 10, 2023
5ae5889
updates
codekow Oct 11, 2023
d8265c9
more cleanup
codekow Oct 11, 2023
a6e1dce
more cleanup
codekow Oct 11, 2023
c19d612
fix: path
codekow Oct 11, 2023
74658e8
fix: argo managed
codekow Oct 11, 2023
4560724
fix: argo managed
codekow Oct 11, 2023
a6caeec
update: operators
codekow Oct 11, 2023
407fcb7
add: web terminal
codekow Oct 11, 2023
9dfa614
update: operators
codekow Oct 11, 2023
6bc6b26
fix: paths
codekow Oct 11, 2023
4a6c9c2
update: operators
codekow Oct 11, 2023
6fcb40a
update: bins
codekow Oct 11, 2023
7cd1bc4
update: bins
codekow Oct 11, 2023
aae0154
update
codekow Oct 11, 2023
5523edd
updates
codekow Oct 11, 2023
26c23f5
update
codekow Oct 11, 2023
81b718a
update: docs
codekow Oct 11, 2023
6851e05
add: gpu job
codekow Oct 11, 2023
4e09cc7
fix: lint
codekow Oct 11, 2023
ada0edf
update: docs
codekow Oct 11, 2023
57f29ba
update: docs, scripts
codekow Oct 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Linting
on: # yamllint disable-line rule:truthy
push:
branches:
- "*"
- "main"
paths-ignore:
- README.md
- docs/*.md
pull_request:
branches:
- "*"
- "main"
paths-ignore:
- README.md
- docs/*.md
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/spellcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Check Spelling
on: # yamllint disable-line rule:truthy
push:
branches:
- "*"
- "main"
pull_request:
branches:
- "*"
- "main"

jobs:
lint-spelling:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
data/
scratch/
files.txt
bootstrap/base/sealed-secrets-secret.yaml
bootstrap/sealed-secrets-secret.yaml

dictionary.dic

Expand Down
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,35 @@
[![Spelling](https://github.com/codekow/demo-ai-gitops-catalog/actions/workflows/spellcheck.yaml/badge.svg)](https://github.com/codekow/demo-ai-gitops-catalog/actions/workflows/spellcheck.yaml)
[![Linting](https://github.com/codekow/demo-ai-gitops-catalog/actions/workflows/linting.yaml/badge.svg)](https://github.com/codekow/demo-ai-gitops-catalog/actions/workflows/linting.yaml)

This project is a catalog of configurations used to provision infrastructure, on
This project is a catalog of configurations used to provision infrastructure, on
OpenShift, that supports machine learning (ML) and artificial intelligence (AI) workloads.

NOTICE: This repo is subject to frequent breaking changes
**This repo is subject to frequent, breaking changes!**

## Prerequisites

- OpenShift 4.8+

Red Hat Demo Platform Options

- `MLOps Demo: Data Science & Edge Practice`
- `Red Hat OpenShift Container Platform 4 Demo`
- `MLOps Demo: Data Science & Edge Practice`
- `Red Hat OpenShift Container Platform 4 Demo`

### Tools

The following cli tools are required:

- `bash`
- `oc` - Download [mac](https://formulae.brew.sh/formula/openshift-cli), [linux](https://mirror.openshift.com/pub/openshift-v4/clients)
- `kubectl` (optional) - Included in above bundle
- `kubectl` (optional) - Included in `oc` bundle
- `kustomize` (optional) - Download [mac](https://formulae.brew.sh/formula/kustomize), [linux](https://github.com/kubernetes-sigs/kustomize/releases)

## Bootstrapping a Cluster

1. Verify you are logged into your cluster using `oc`.
1. Clone this repository to your local environment.

```
```sh
oc whoami
git clone <repo>
```
Expand All @@ -45,17 +46,17 @@ Execute the following script:

The `bootstrap.sh` script will:

- Install the OpenShift GitOps Operator
- Create an ArgoCD instance in the `openshift-gitops` namespace
- Bootstrap a set of ArgoCD applications to configure the cluster
- Install the [OpenShift GitOps Operator](components/operators/openshift-gitops-operator)
- Create an [ArgoCD instance](components/operators/openshift-gitops-operator/instance/base/openshift-gitops-cr.yaml) in the `openshift-gitops` namespace
<!-- - Bootstrap a set of ArgoCD applications to configure the cluster -->

You can run individual [functions](scripts/functions.sh) in a `bash` shell:

```sh
source scripts/functions.sh
```

### Sealed Secrets Bootstrap
<!-- ### Sealed Secrets Bootstrap

`bootstrap.sh` will attempt to deploy sealed-secrets and requires a sealed secret master key to manage existing deployments.

Expand All @@ -64,10 +65,10 @@ If managing an already bootstrapped cluster, the sealed-secrets key must be obta
The sealed secret(s) for bootstrap should be located at:

```sh
bootstrap/base/sealed-secrets-secret.yaml
bootstrap/sealed-secrets-secret.yaml
```

If this is the first time bootstrapping a cluster, `bootstrap.sh` will deploy a new sealed-secrets controller and obtain a new secret if it does not exist.
If this is the first time bootstrapping a cluster, `bootstrap.sh` will deploy a new sealed-secrets controller and obtain a new secret if it does not exist. -->

## Additional Configurations

Expand All @@ -79,7 +80,7 @@ The `sandbox` [namespace](components/configs/namespaces/instance/sandbox/namespa

Please run the following before submitting a PR / commit

```
```sh
scripts/lint.sh
```

Expand Down
File renamed without changes.
9 changes: 0 additions & 9 deletions bootstrap/base/kustomization.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- namespace.yaml
- namespace-rb.yaml
- ../../clusters/default
6 changes: 0 additions & 6 deletions bootstrap/overlays/baremetal/kustomization.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions bootstrap/overlays/default/kustomization.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions bootstrap/overlays/rhdp-rhods/kustomization.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions bootstrap/overlays/rhdp/kustomization.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions bootstrap/overlays/testing/kustomization.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions clusters/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Examples

- Demos
- Workshops
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../components/argocd/projects/overlays/default
- ../../../components/argocd/projects/overlays/default
- argocd-repo-https.yaml
# - argocd-repo-ssh-ss.yaml
41 changes: 41 additions & 0 deletions clusters/argo-managed/overlays/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base
- ../../../../components/argocd/apps/overlays/default

patches:
- target:
group: argoproj.io
kind: ApplicationSet
patch: |-
- op: replace
path: /spec/template/spec/source/repoURL
value: 'https://github.com/codekow/demo-ai-gitops-catalog.git'
- op: replace
path: /spec/template/spec/source/targetRevision
value: cleanup
- target:
group: argoproj.io
kind: Application
patch: |-
- op: replace
path: /spec/source/repoURL
value: 'https://github.com/codekow/demo-ai-gitops-catalog.git'
- op: replace
path: /spec/source/targetRevision
value: cleanup
# Uncomment patches to disable automatic sync
# - target:
# group: argoproj.io
# kind: Application
# patch: |-
# - op: remove
# path: /spec/syncPolicy
# - target:
# group: argoproj.io
# kind: ApplicationSet
# patch: |-
# - op: remove
# path: /spec/template/spec/syncPolicy
9 changes: 9 additions & 0 deletions clusters/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../components/configs/cluster/namespaces/overlays/default
- ../../components/configs/cluster/console/overlays/default
- ../../components/configs/cluster/rbac/overlays/default
- ../../components/operators/web-terminal/operator/overlays/fast
- ../../components/configs/cluster/web-terminal/overlays/default
29 changes: 0 additions & 29 deletions clusters/overlays/default/kustomization.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions clusters/overlays/default/patch-application-manual-sync.yaml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion components/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
!instance
!instance/
25 changes: 0 additions & 25 deletions components/argocd/apps/overlays/baremetal/kustomization.yaml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading