-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
weave-gitops-bot
committed
Oct 28, 2022
1 parent
1ec8b90
commit 029092a
Showing
129 changed files
with
10,615 additions
and
20 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
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
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
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
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
24 changes: 24 additions & 0 deletions
24
website/versioned_docs/version-0.10.1/_components/CurlCodeBlock.jsx
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 @@ | ||
import React from "react"; | ||
|
||
import CodeBlock from "@theme/CodeBlock"; | ||
import BrowserOnly from "@docusaurus/BrowserOnly"; | ||
|
||
export default function CurlCodeBlock({ localPath, hostedPath, content }) { | ||
return ( | ||
<> | ||
<BrowserOnly> | ||
{() => ( | ||
<CodeBlock className="language-bash"> | ||
curl -o {localPath} {window.location.protocol} | ||
//{window.location.host} | ||
{hostedPath} | ||
</CodeBlock> | ||
)} | ||
</BrowserOnly> | ||
|
||
<CodeBlock title={localPath} className="language-yaml"> | ||
{content} | ||
</CodeBlock> | ||
</> | ||
); | ||
} |
32 changes: 32 additions & 0 deletions
32
website/versioned_docs/version-0.10.1/_components/TierLabel.jsx
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,32 @@ | ||
import React from "react"; | ||
import Link from "@docusaurus/Link"; | ||
import useGlobalData from "@docusaurus/useGlobalData"; | ||
|
||
const containerStyle = { | ||
fontSize: 16, | ||
marginLeft: 4, | ||
fontVariant: "all-small-caps", | ||
}; | ||
|
||
// This determines the current version of the docs you're looking at | ||
// E.g. /docs/next or /docs/0.2.5 | ||
const getCurrentVersionPath = () => { | ||
const { "docusaurus-plugin-content-docs": data } = useGlobalData(); | ||
const currentVersion = data?.default?.versions?.find( | ||
(v) => v.name === "current" | ||
); | ||
// Fallback to /docs just in case. Not sure if this is async etc. | ||
return currentVersion?.path || "/docs"; | ||
}; | ||
|
||
export default function TierLabel({ tiers }) { | ||
return ( | ||
<Link | ||
to={`${getCurrentVersionPath()}/enterprise/intro`} | ||
title={`This feature is a available on ${tiers}`} | ||
style={containerStyle} | ||
> | ||
{tiers} | ||
</Link> | ||
); | ||
} |
48 changes: 48 additions & 0 deletions
48
website/versioned_docs/version-0.10.1/assets/example-enterprise-helm.yaml
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,48 @@ | ||
apiVersion: source.toolkit.fluxcd.io/v1beta2 | ||
kind: HelmRepository | ||
metadata: | ||
name: weave-gitops-enterprise-charts | ||
namespace: flux-system | ||
spec: | ||
interval: 60m | ||
secretRef: | ||
name: weave-gitops-enterprise-credentials | ||
url: https://charts.dev.wkp.weave.works/releases/charts-v3 | ||
--- | ||
apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
metadata: | ||
name: weave-gitops-enterprise | ||
namespace: flux-system | ||
spec: | ||
chart: | ||
spec: | ||
interval: 65m | ||
chart: mccp | ||
sourceRef: | ||
kind: HelmRepository | ||
name: weave-gitops-enterprise-charts | ||
namespace: flux-system | ||
version: 0.9.5 | ||
install: | ||
crds: CreateReplace | ||
upgrade: | ||
crds: CreateReplace | ||
interval: 50m | ||
values: | ||
# -- Configure TLS settings if needed | ||
# tls: | ||
# -- Can be disabled if TLS is handled by a user-provided ingress controller | ||
# enabled: true | ||
# -- optionally specify a TLS secret | ||
# secretName: null | ||
config: | ||
capi: | ||
repositoryURL: https://github.com/$GITHUB_USER/fleet-infra | ||
# -- Can be changed depending on your git repo structure | ||
# repositoryPath: ./clusters/management/clusters | ||
# repositoryClustersPath: ./cluster | ||
git: | ||
type: github | ||
# -- Change if using on-prem github/gitlab | ||
# hostname: https://github.com |
4 changes: 4 additions & 0 deletions
4
website/versioned_docs/version-0.10.1/cluster-management/_category_.json
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,4 @@ | ||
{ | ||
"label": "Cluster Management", | ||
"position": 6 | ||
} |
35 changes: 35 additions & 0 deletions
35
website/versioned_docs/version-0.10.1/cluster-management/add-applications.mdx
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,35 @@ | ||
--- | ||
title: Add Applications | ||
sidebar_position: 7 | ||
hide_title: true | ||
--- | ||
|
||
import TierLabel from "../\_components/TierLabel"; | ||
|
||
# Add Applications <TierLabel tiers="enterprise" /> | ||
|
||
It is always useful to be able to install software packages to bootstrapped cluster. Weave GitOps Enterprise enables this by adding applications to target cluster through the UI by adding a kustomization or a helmrelease. Here is how we can do that: | ||
|
||
### Add an Applications to a target cluster (bootstrapped) | ||
|
||
1. At the applications page you can now find an add applications button. | ||
|
||
![Profiles Selection](./img/add-application-btn.png) | ||
|
||
2. A form will show up to you so that you can select the target cluster that you want to add application to. | ||
|
||
![Profiles Selection](./img/add-application-form.png) | ||
|
||
3. Then you will be able to select either source type of git repository or helm repository from the selected cluster. | ||
|
||
![Profiles Selection](./img/add-application-select-source.png) | ||
|
||
4. If you select git repository as source type, you will be abl to add application from kustomization. | ||
|
||
![Profiles Selection](./img/add-application-kustomization.png) | ||
|
||
5. If you select helm repository as source type, you will be abl to add application from helm release. And if you had selected the profiles Helm chart repository URL, you will be able to select a profile from the Profiles list that have been created in at [Profiles](profiles.mdx). | ||
|
||
![Profiles Selection](./img/add-application-helm-release.png) | ||
|
||
6. Last but not least now you will be able to create a pr to the target cluster. And you can see a new PR at you GitOps repository. |
Oops, something went wrong.