-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip - working on end to end walkthrough of holos render platform
- Loading branch information
1 parent
d0cd051
commit f4f85be
Showing
19 changed files
with
238 additions
and
51 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
doc/md/topics/kargo/_add-on-promoter/cert-manager/cert-manager.txt
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,37 @@ | ||
env GH_USER=jeffmccune | ||
cd ../script-setup/kargo-demo | ||
|
||
## Walk the reader from entrypoint to the deployment pipeline | ||
# holos render platform entrypoint | ||
exec bash -c 'cat $(<$WORK/entrypoint.path)' | ||
cp stdout $WORK/entrypoint.txt | ||
exec bash -c 'basename $(<$WORK/entrypoint.path)' | ||
cp stdout $WORK/entrypoint.basename | ||
|
||
# platform.stacks location | ||
exec bash -c 'cat $(<$WORK/stacks.path)' | ||
cp stdout $WORK/stacks.txt | ||
exec bash -c 'basename $(<$WORK/stacks.path)' | ||
cp stdout $WORK/stacks.basename | ||
|
||
# certmanager.config location | ||
exec bash -c 'cat $(<$WORK/stacks.path)' | ||
cp stdout $WORK/stacks.txt | ||
exec bash -c 'basename $(<$WORK/stacks.path)' | ||
cp stdout $WORK/stacks.basename | ||
|
||
# Cert Manager Component. | ||
exec bash -c 'cat $(<$WORK/config.path)' | ||
cp stdout $WORK/config.txt | ||
# Get the path basename for the docs. | ||
exec bash -c 'basename $(<$WORK/config.path)' | ||
cp stdout $WORK/config.basename | ||
|
||
-- config.path -- | ||
config/certmanager/certmanager.cue | ||
-- stacks.path -- | ||
config/platform/security.cue | ||
-- entrypoint.path -- | ||
platform/stacks.cue | ||
-- component.path -- | ||
stacks/security/components/cert-manager/cert-manager.cue |
1 change: 1 addition & 0 deletions
1
doc/md/topics/kargo/_add-on-promoter/script-cert-manager/component.path
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 @@ | ||
stacks/security/components/cert-manager/cert-manager.cue |
1 change: 1 addition & 0 deletions
1
doc/md/topics/kargo/_add-on-promoter/script-cert-manager/config.basename
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 @@ | ||
certmanager.cue |
1 change: 1 addition & 0 deletions
1
doc/md/topics/kargo/_add-on-promoter/script-cert-manager/config.path
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 @@ | ||
config/certmanager/certmanager.cue |
30 changes: 30 additions & 0 deletions
30
doc/md/topics/kargo/_add-on-promoter/script-cert-manager/config.txt
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,30 @@ | ||
@extern(embed) | ||
package certmanager | ||
|
||
import "github.com/holos-run/holos/api/core/v1alpha5:core" | ||
|
||
// Unify data from yaml for Kargo integration. | ||
_data: _ @embed(file=cert-manager.yaml) | ||
|
||
config: #Config & { | ||
namespace: "cert-manager" | ||
// datafile value must align to the embed file directive above for proper | ||
// configuration of Kargo promotion stages. | ||
datafile: "./config/certmanager/cert-manager.yaml" | ||
chart: { | ||
name: "cert-manager" | ||
version: _data.chart.version | ||
repository: { | ||
name: "jetstack" | ||
url: "https://charts.jetstack.io" | ||
} | ||
} | ||
} | ||
|
||
#Config: { | ||
namespace: string | ||
datafile: string | ||
chart: core.#Chart & { | ||
version: =~"^v{0,1}[0-9]+\\.[0-9]+\\.[0-9]+$" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
doc/md/topics/kargo/_add-on-promoter/script-cert-manager/entrypoint.basename
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 @@ | ||
stacks.cue |
1 change: 1 addition & 0 deletions
1
doc/md/topics/kargo/_add-on-promoter/script-cert-manager/entrypoint.path
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 @@ | ||
platform/stacks.cue |
8 changes: 8 additions & 0 deletions
8
doc/md/topics/kargo/_add-on-promoter/script-cert-manager/entrypoint.txt
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,8 @@ | ||
package main | ||
|
||
import "holos.example/config/platform" | ||
|
||
// Register all stack components with the platform spec. | ||
for STACK in platform.stacks { | ||
Platform: Components: STACK.components | ||
} |
1 change: 1 addition & 0 deletions
1
doc/md/topics/kargo/_add-on-promoter/script-cert-manager/stacks.basename
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 @@ | ||
security.cue |
1 change: 1 addition & 0 deletions
1
doc/md/topics/kargo/_add-on-promoter/script-cert-manager/stacks.path
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 @@ | ||
config/platform/security.cue |
46 changes: 46 additions & 0 deletions
46
doc/md/topics/kargo/_add-on-promoter/script-cert-manager/stacks.txt
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,46 @@ | ||
package platform | ||
|
||
import "holos.example/config/certmanager" | ||
|
||
stacks: security: (#StackBuilder & { | ||
(#PromoterBuilder & {parameters: { | ||
name: "cert-manager" | ||
config: { | ||
datafile: certmanager.config.datafile | ||
chart: certmanager.config.chart | ||
} | ||
}}).promoter | ||
|
||
// Manage the external-secrets namespace. | ||
stack: namespaces: "external-secrets": _ | ||
|
||
parameters: { | ||
name: "security" | ||
components: { | ||
namespaces: { | ||
path: "stacks/security/components/namespaces" | ||
annotations: description: "configures namespaces for all stacks" | ||
} | ||
"external-secrets-crds": { | ||
path: "stacks/security/components/external-secrets-crds" | ||
annotations: description: "external secrets custom resource definitions" | ||
} | ||
"external-secrets": { | ||
path: "stacks/security/components/external-secrets" | ||
annotations: description: "external secrets custom resource definitions" | ||
} | ||
"cert-manager": { | ||
path: "stacks/security/components/cert-manager" | ||
annotations: description: "cert-manager operator and custom resource definitions" | ||
parameters: { | ||
kargoProject: "cert-manager" | ||
kargoStage: "main" | ||
} | ||
} | ||
"local-ca": { | ||
path: "stacks/security/components/local-ca" | ||
annotations: description: "localhost mkcert certificate authority" | ||
} | ||
} | ||
} | ||
}).stack |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[main d1dea10] Switch to jeffmccune fork | ||
[main 7edf1be] Switch to jeffmccune fork | ||
43 files changed, 70 insertions(+), 66 deletions(-) | ||
create mode 100644 config/platform/organization_jeffmccune.cue |
82 changes: 41 additions & 41 deletions
82
doc/md/topics/kargo/_add-on-promoter/script-git-url/output.txt
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 |
---|---|---|
@@ -1,47 +1,47 @@ | ||
rendered argocd-secrets for stack argocd in 414.44ms | ||
rendered kargo-project for project podinfo in 414.560458ms | ||
rendered rollouts for stack argocd in 416.403042ms | ||
rendered app-projects for stack argocd in 416.750417ms | ||
rendered kargo-secrets for stack argocd in 417.130416ms | ||
rendered kargo-promoter for stack argocd in 421.088792ms | ||
rendered kargo-stages for project podinfo in 421.607166ms | ||
rendered kargo-project for project httpbin in 422.029458ms | ||
rendered kargo-stages for project httpbin in 422.166791ms | ||
rendered gateway-api for stack network in 524.156667ms | ||
rendered istio-gateway for stack network in 238.222458ms | ||
rendered namespaces for stack security in 373.691792ms | ||
rendered rollouts-crds for stack argocd in 805.860291ms | ||
rendered local-ca for stack security in 170.724875ms | ||
rendered argocd-crds for stack argocd in 878.929208ms | ||
rendered external-secrets-crds for stack security in 504.312375ms | ||
rendered cert-manager-promoter for stack security in 186.718ms | ||
rendered dev-httpbin for project httpbin in 204.02775ms | ||
rendered test-httpbin for project httpbin in 208.622375ms | ||
rendered uat-httpbin for project httpbin in 253.336ms | ||
rendered prod-us-east-httpbin for project httpbin in 291.838375ms | ||
rendered prod-us-central-httpbin for project httpbin in 263.255833ms | ||
rendered prod-us-west-httpbin for project httpbin in 256.850292ms | ||
rendered istio-ztunnel for stack network in 944.060291ms | ||
rendered istio-cni for stack network in 946.895458ms | ||
rendered istiod for stack network in 1.000126292s | ||
rendered argocd for stack argocd in 1.587457083s | ||
rendered istio-base for stack network in 1.185511667s | ||
rendered cert-manager for stack security in 1.110636958s | ||
rendered httproutes for stack network in 1.261078125s | ||
rendered external-secrets for stack security in 1.464216625s | ||
Pulled: ghcr.io/stefanprodan/charts/podinfo:6.7.0 | ||
Digest: sha256:104d101017e501c63b3aa71b20d5edd2ca6d5d58cbc57ff8163770110f92b9db | ||
rendered dev-podinfo for project podinfo in 1.135666375s | ||
rendered test-podinfo for project podinfo in 1.047599459s | ||
rendered uat-podinfo for project podinfo in 1.027484583s | ||
rendered prod-us-west-podinfo for project podinfo in 885.832083ms | ||
rendered argocd-secrets for stack argocd in 451.904292ms | ||
rendered kargo-project for project podinfo in 454.900167ms | ||
rendered kargo-promoter for stack argocd in 454.912959ms | ||
rendered app-projects for stack argocd in 454.863625ms | ||
rendered kargo-project for project httpbin in 455.716667ms | ||
rendered kargo-secrets for stack argocd in 455.967375ms | ||
rendered rollouts for stack argocd in 458.526042ms | ||
rendered kargo-stages for project httpbin in 458.580667ms | ||
rendered kargo-stages for project podinfo in 459.954666ms | ||
rendered gateway-api for stack network in 611.374625ms | ||
rendered istio-gateway for stack network in 293.701541ms | ||
rendered rollouts-crds for stack argocd in 830.907ms | ||
rendered namespaces for stack security in 416.183875ms | ||
rendered argocd-crds for stack argocd in 913.480125ms | ||
rendered local-ca for stack security in 169.149208ms | ||
rendered cert-manager-promoter for stack security in 175.43775ms | ||
rendered external-secrets-crds for stack security in 548.987041ms | ||
rendered dev-httpbin for project httpbin in 229.247834ms | ||
rendered uat-httpbin for project httpbin in 254.450167ms | ||
rendered test-httpbin for project httpbin in 271.875333ms | ||
rendered istio-ztunnel for stack network in 834.813542ms | ||
rendered istio-cni for stack network in 835.196291ms | ||
rendered prod-us-east-httpbin for project httpbin in 318.880041ms | ||
rendered istiod for stack network in 895.315875ms | ||
rendered prod-us-central-httpbin for project httpbin in 376.884916ms | ||
Pulled: ghcr.io/akuity/kargo-charts/kargo:1.1.1 | ||
Digest: sha256:4055c72418db85b85979da2fe12136c0e275709efc2e36a505b158e8234ad443 | ||
rendered kargo for stack argocd in 2.377781709s | ||
rendered kargo for stack argocd in 1.479362708s | ||
rendered prod-us-west-httpbin for project httpbin in 412.332791ms | ||
rendered argocd for stack argocd in 1.522183041s | ||
rendered istio-base for stack network in 1.113807375s | ||
rendered cert-manager for stack security in 992.720625ms | ||
rendered external-secrets for stack security in 1.373336791s | ||
rendered httproutes for stack network in 1.388915792s | ||
Pulled: ghcr.io/stefanprodan/charts/podinfo:6.6.1 | ||
Digest: sha256:0cc9a8446c95009ef382f5eade883a67c257f77d50f84e78ecef2aac9428d1e5 | ||
rendered prod-us-east-podinfo for project podinfo in 1.154370584s | ||
rendered prod-us-east-podinfo for project podinfo in 992.803166ms | ||
Pulled: ghcr.io/stefanprodan/charts/podinfo:6.6.2 | ||
Digest: sha256:83295d47de6d6ca634ed4b952a7572fc176bcc38854d0c11ca0fa197bc5f1154 | ||
rendered prod-us-central-podinfo for project podinfo in 1.14709075s | ||
rendered platform in 2.414075334s | ||
rendered prod-us-central-podinfo for project podinfo in 1.011412792s | ||
Pulled: ghcr.io/stefanprodan/charts/podinfo:6.7.0 | ||
Digest: sha256:104d101017e501c63b3aa71b20d5edd2ca6d5d58cbc57ff8163770110f92b9db | ||
rendered dev-podinfo for project podinfo in 1.199673792s | ||
rendered prod-us-west-podinfo for project podinfo in 1.047333542s | ||
rendered test-podinfo for project podinfo in 1.260801041s | ||
rendered uat-podinfo for project podinfo in 1.1624975s | ||
rendered platform in 2.45281875s |
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 @@ | ||
6eff957207b85f48d3f1f7c5eb91e72e389c5e7c |
This file was deleted.
Oops, something went wrong.
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
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
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
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,6 @@ | ||
export default function GitHubLink({ repo, tree, path, children }: { repo: string, commit: string, path: string, children: React.ReactNode }) { | ||
const href = `https://github.com/${repo}/tree/${tree}/${path}` | ||
return ( | ||
<a href={href} target="_blank" rel="noopener noreferrer">{children}</a> | ||
); | ||
}; |