This commit is contained in:
parent
2d083b9f40
commit
2a6b10f007
12 changed files with 178 additions and 64 deletions
|
@ -0,0 +1,19 @@
|
|||
apiVersion: backstage.io/v1alpha1
|
||||
kind: Location
|
||||
metadata:
|
||||
name: basic-example-templates
|
||||
description: A collection of example templates
|
||||
spec:
|
||||
targets:
|
||||
- ./basic/template.yaml
|
||||
- ./argo-workflows/template.yaml
|
||||
- ./app-with-bucket/template.yaml
|
||||
---
|
||||
apiVersion: backstage.io/v1alpha1
|
||||
kind: Location
|
||||
metadata:
|
||||
name: basic-organization
|
||||
description: Basic organization data
|
||||
spec:
|
||||
targets:
|
||||
- ./organization/guests.yaml
|
21
.history/ref-implementation/openbao_20241111150421.yaml
Normal file
21
.history/ref-implementation/openbao_20241111150421.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: openbao
|
||||
namespace: argocd
|
||||
labels:
|
||||
example: dev
|
||||
spec:
|
||||
destination:
|
||||
namespace: openbao
|
||||
server: "https://kubernetes.default.svc"
|
||||
source:
|
||||
repoURL: cnoe://openbao/manifests
|
||||
targetRevision: HEAD
|
||||
path: "."
|
||||
project: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
21
.history/ref-implementation/openbao_20241111150423.yaml
Normal file
21
.history/ref-implementation/openbao_20241111150423.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: openbao
|
||||
namespace: argocd
|
||||
labels:
|
||||
env: dev
|
||||
spec:
|
||||
destination:
|
||||
namespace: openbao
|
||||
server: "https://kubernetes.default.svc"
|
||||
source:
|
||||
repoURL: cnoe://openbao/manifests
|
||||
targetRevision: HEAD
|
||||
path: "."
|
||||
project: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
19
.history/ref-implementation/openbao_20241112103833.yaml
Normal file
19
.history/ref-implementation/openbao_20241112103833.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: openbao
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: openbao
|
||||
server: "https://kubernetes.default.svc"
|
||||
source:
|
||||
repoURL: cnoe://openbao/manifests
|
||||
targetRevision: HEAD
|
||||
path: "."
|
||||
project: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
19
.history/ref-implementation/openbao_20241112103904.yaml
Normal file
19
.history/ref-implementation/openbao_20241112103904.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: openbao
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: openbao
|
||||
server: "https://kubernetes.default.svc"
|
||||
source:
|
||||
repoURL: 'https://github.com/openbao/openbao.git'
|
||||
targetRevision: HEAD
|
||||
path: "."
|
||||
project: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
19
.history/ref-implementation/openbao_20241112103909.yaml
Normal file
19
.history/ref-implementation/openbao_20241112103909.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: openbao
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: openbao
|
||||
server: "https://kubernetes.default.svc"
|
||||
source:
|
||||
repoURL: 'https://github.com/openbao/openbao.git'
|
||||
targetRevision: main
|
||||
path: "."
|
||||
project: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
19
.history/ref-implementation/openbao_20241112103930.yaml
Normal file
19
.history/ref-implementation/openbao_20241112103930.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: openbao
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: openbao
|
||||
server: "https://kubernetes.default.svc"
|
||||
source:
|
||||
repoURL: 'https://github.com/openbao/openbao.git'
|
||||
targetRevision: main
|
||||
path: "openbao"
|
||||
project: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
19
.history/ref-implementation/openbao_20241112103938.yaml
Normal file
19
.history/ref-implementation/openbao_20241112103938.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: openbao
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: openbao
|
||||
server: "https://kubernetes.default.svc"
|
||||
source:
|
||||
repoURL: 'https://github.com/openbao/openbao.git'
|
||||
targetRevision: main
|
||||
path: "openbao"
|
||||
|
||||
syncPolicy:
|
||||
automated:
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
19
.history/ref-implementation/openbao_20241112103940.yaml
Normal file
19
.history/ref-implementation/openbao_20241112103940.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: openbao
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
namespace: openbao
|
||||
server: "https://kubernetes.default.svc"
|
||||
source:
|
||||
repoURL: 'https://github.com/openbao/openbao.git'
|
||||
targetRevision: main
|
||||
path: "openbao"
|
||||
project: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
|
@ -1,58 +0,0 @@
|
|||
apiVersion: scaffolder.backstage.io/v1beta3
|
||||
kind: Template
|
||||
metadata:
|
||||
description: Creates a Basic Kubernetes Deployment
|
||||
name: basic
|
||||
title: Create a Basic Deployment
|
||||
spec:
|
||||
owner: guests
|
||||
type: service
|
||||
parameters:
|
||||
- title: Configuration Options
|
||||
required:
|
||||
- name
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
description: name of this application
|
||||
|
||||
steps:
|
||||
- id: template
|
||||
name: Generating component
|
||||
action: fetch:template
|
||||
input:
|
||||
url: ./skeleton
|
||||
values:
|
||||
name: ${{parameters.name}}
|
||||
|
||||
- id: publish
|
||||
name: Publishing to a gitea git repository
|
||||
action: publish:gitea
|
||||
input:
|
||||
description: This is an example app
|
||||
# Hard coded value for this demo purposes only.
|
||||
repoUrl: cnoe.localtest.me:8443/gitea?repo=${{parameters.name}}
|
||||
defaultBranch: main
|
||||
- id: create-argocd-app
|
||||
name: Create ArgoCD App
|
||||
action: cnoe:create-argocd-app
|
||||
input:
|
||||
appName: ${{parameters.name}}
|
||||
appNamespace: ${{parameters.name}}
|
||||
argoInstance: in-cluster
|
||||
projectName: default
|
||||
# necessary until we generate our own cert
|
||||
repoUrl: https://cnoe.localtest.me:8443/gitea/giteaAdmin/${{parameters.name}}
|
||||
path: "manifests"
|
||||
- id: register
|
||||
name: Register
|
||||
action: catalog:register
|
||||
input:
|
||||
repoContentsUrl: ${{ steps['publish'].output.repoContentsUrl }}
|
||||
catalogInfoPath: 'catalog-info.yaml'
|
||||
|
||||
output:
|
||||
links:
|
||||
- title: Open in catalog
|
||||
icon: catalog
|
||||
entityRef: ${{ steps['register'].output.entityRef }}
|
|
@ -6,7 +6,6 @@ metadata:
|
|||
spec:
|
||||
targets:
|
||||
- ./basic/template.yaml
|
||||
- ./basic/template2.yaml
|
||||
- ./argo-workflows/template.yaml
|
||||
- ./app-with-bucket/template.yaml
|
||||
---
|
||||
|
|
|
@ -3,16 +3,14 @@ kind: Application
|
|||
metadata:
|
||||
name: openbao
|
||||
namespace: argocd
|
||||
labels:
|
||||
env: dev
|
||||
spec:
|
||||
destination:
|
||||
namespace: openbao
|
||||
server: "https://kubernetes.default.svc"
|
||||
source:
|
||||
repoURL: cnoe://openbao/manifests
|
||||
targetRevision: HEAD
|
||||
path: "."
|
||||
repoURL: 'https://github.com/openbao/openbao.git'
|
||||
targetRevision: main
|
||||
path: "openbao"
|
||||
project: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
|
|
Loading…
Reference in a new issue