forked from cnoe-io/idpbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update readme and add example (cnoe-io#120)
* update readme and add example Signed-off-by: Manabu Mccloskey <[email protected]>
- Loading branch information
Showing
8 changed files
with
219 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
## Basic Example | ||
|
||
This directory contains basic examples of using the custom package feature. | ||
|
||
### Local manifests | ||
|
||
The [package1 directory](./package1) is an example of a custom package that you have developed locally, and you want test. | ||
|
||
This configuration instructs idpbuilder to: | ||
|
||
1. Create a Gitea repository. | ||
2. Sync the contents of the [manifests](./package1/manifests) directory to the repostiory. | ||
3. Replace the `spec.Source(s).repoURL` field with the Gitea repository URL. | ||
|
||
### Remote manifests | ||
|
||
The [package2 directory](./package2) is an example for packages available remotely. This is applied directly to the cluster. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: my-app | ||
namespace: argocd | ||
labels: | ||
example: basic | ||
spec: | ||
destination: | ||
namespace: my-app | ||
server: "https://kubernetes.default.svc" | ||
source: | ||
# cnoe:// indicates we want to sync from a local directory. | ||
# values after cnoe:// is treated as a relative path from this file. | ||
repoURL: cnoe://manifests | ||
targetRevision: HEAD | ||
# with path set to '.' and cnoe://manifests. we are wanting ArgoCD to sync from the ./manifests directory. | ||
path: "." | ||
project: default | ||
syncPolicy: | ||
automated: | ||
selfHeal: true | ||
syncOptions: | ||
- CreateNamespace=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: busybox | ||
namespace: argocd | ||
labels: | ||
abc: ded | ||
notused: remove-me | ||
spec: | ||
containers: | ||
- image: alpine:3.18 | ||
command: | ||
- sleep | ||
- "3600" | ||
imagePullPolicy: IfNotPresent | ||
name: busybox | ||
restartPolicy: Always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# this is an ordinary ArgoCD application file | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: guestbook | ||
namespace: argocd | ||
labels: | ||
example: basic | ||
spec: | ||
project: default | ||
source: | ||
repoURL: https://github.com/argoproj/argocd-example-apps.git | ||
targetRevision: HEAD | ||
path: guestbook | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: guestbook | ||
syncPolicy: | ||
automated: | ||
selfHeal: true | ||
syncOptions: | ||
- CreateNamespace=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# this is an ordinary ArgoCD application file | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: guestbook2 | ||
namespace: argocd | ||
labels: | ||
example: basic | ||
spec: | ||
project: default | ||
source: | ||
repoURL: https://github.com/argoproj/argocd-example-apps.git | ||
targetRevision: HEAD | ||
path: guestbook | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: guestbook2 | ||
syncPolicy: | ||
automated: | ||
selfHeal: true | ||
syncOptions: | ||
- CreateNamespace=true |