-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* renamed <x-fleet-id> directories * namespace renamed * variables changed to _X-FLEET-ID * additional namespace name change to _NAMESPACE * spelling correction * spelling correction and X-FLEET-ID * spelling update * x-fleet-id updates
- Loading branch information
1 parent
7f14803
commit af39734
Showing
52 changed files
with
67 additions
and
67 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
52 changes: 26 additions & 26 deletions
52
...t-id>/source-base/root-sync-git/README.md → ...ET-ID/source-base/root-sync-git/README.md
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,27 +1,27 @@ | ||
# Introduction | ||
A package to create a [Config Sync](https://cloud.google.com/anthos-config-management/docs/config-sync-overview) RepoSync object for an Azure DevOps git repo. | ||
|
||
# Requirements | ||
The `git-creds` secret must already be created in the KCC cluster: | ||
```bash | ||
kubectl create secret generic git-creds --namespace="config-management-system" --from-literal=username='<my azdo organization>' --from-literal=token='<my code read token>' | ||
``` | ||
### GitHub Credentials | ||
If you are using GitHub as a config sync repository the configuration of the kubernetes secret is done in the same manner. Please note you cannot have the @github.com appended to the end of your token as you see in a local .git-credentials file. GitHub recommends creating a machine account with limited repository access over a PAT. | ||
|
||
```bash | ||
kubectl create secret generic git-creds --namespace="config-management-system" --from-literal=username='<my github username | machine account>' --from-literal=token='<token>' | ||
``` | ||
|
||
> The revision (version) does not appear to work for annotated tags, like the ones created from the Azure DevOps UI. When running `git rev-parse 0.0.0` on those, a different commit is returned and Config Sync throws an error. Tags should be created in a way similar to this (ideally by a pipeline): | ||
```bash | ||
git tag 0.0.0 | ||
git push origin --tags | ||
``` | ||
|
||
# Usage | ||
Get the package by running the following, optionally setting the revision and destination folder: | ||
|
||
`kpt pkg get https://PKG_URL@<REVISION> <DESTINATION_FOLDER>` | ||
|
||
# Introduction | ||
A package to create a [Config Sync](https://cloud.google.com/anthos-config-management/docs/config-sync-overview) RepoSync object for an Azure DevOps git repo. | ||
|
||
# Requirements | ||
The `git-creds` secret must already be created in the KCC cluster: | ||
```bash | ||
kubectl create secret generic git-creds --namespace="config-management-system" --from-literal=username='<my azdo organization>' --from-literal=token='<my code read token>' | ||
``` | ||
### GitHub Credentials | ||
If you are using GitHub as a config sync repository the configuration of the kubernetes secret is done in the same manner. Please note you cannot have the @github.com appended to the end of your token as you see in a local .git-credentials file. GitHub recommends creating a machine account with limited repository access over a PAT. | ||
|
||
```bash | ||
kubectl create secret generic git-creds --namespace="config-management-system" --from-literal=username='<my github username | machine account>' --from-literal=token='<token>' | ||
``` | ||
|
||
> The revision (version) does not appear to work for annotated tags, like the ones created from the Azure DevOps UI. When running `git rev-parse 0.0.0` on those, a different commit is returned and Config Sync throws an error. Tags should be created in a way similar to this (ideally by a pipeline): | ||
```bash | ||
git tag 0.0.0 | ||
git push origin --tags | ||
``` | ||
|
||
# Usage | ||
Get the package by running the following, optionally setting the revision and destination folder: | ||
|
||
`kpt pkg get https://PKG_URL@<REVISION> <DESTINATION_FOLDER>` | ||
|
||
Follow instructions inside the `setters-version.yaml` and `setters.yaml` to customize for your environment. Examples have been provided for GitHub. Comment out the AZDO sections and comment in the GitHub appropriately. |
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ spec: | |
git: | ||
repo: https://[email protected]/AZDO-ORG/AZDO-PROJECT/_git/REPO-NAME # kpt-set: ${repo-url} | ||
branch: main # kpt-set: ${repo-branch} | ||
dir: tier3/kubernetes/<x-fleet-id>/deploy/<env> # kpt-set: ${repo-dir} | ||
dir: tier3/kubernetes/_X-FLEET-ID/deploy/<env> # kpt-set: ${repo-dir} | ||
revision: HEAD # kpt-set: ${version} | ||
auth: token | ||
secretRef: | ||
|
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
52 changes: 26 additions & 26 deletions
52
...-base/<namespace>/repo-sync-git/README.md → ...e-base/_NAMESPACE/repo-sync-git/README.md
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,27 +1,27 @@ | ||
# Introduction | ||
A package to create a [Config Sync](https://cloud.google.com/anthos-config-management/docs/config-sync-overview) RepoSync object for an Azure DevOps git repo. | ||
|
||
# Requirements | ||
The `git-creds` secret must already be created in the KCC cluster: | ||
```bash | ||
kubectl create secret generic git-creds --namespace="config-management-system" --from-literal=username='<my azdo organization>' --from-literal=token='<my code read token>' | ||
``` | ||
### GitHub Credentials | ||
If you are using GitHub as a config sync repository the configuration of the kubernetes secret is done in the same manner. Please note you cannot have the @github.com appended to the end of your token as you see in a local .git-credentials file. GitHub recommends creating a machine account with limited repository access over a PAT. | ||
|
||
```bash | ||
kubectl create secret generic git-creds --namespace="config-management-system" --from-literal=username='<my github username | machine account>' --from-literal=token='<token>' | ||
``` | ||
|
||
> The revision (version) does not appear to work for annotated tags, like the ones created from the Azure DevOps UI. When running `git rev-parse 0.0.0` on those, a different commit is returned and Config Sync throws an error. Tags should be created in a way similar to this (ideally by a pipeline): | ||
```bash | ||
git tag 0.0.0 | ||
git push origin --tags | ||
``` | ||
|
||
# Usage | ||
Get the package by running the following, optionally setting the revision and destination folder: | ||
|
||
`kpt pkg get https://PKG_URL@<REVISION> <DESTINATION_FOLDER>` | ||
|
||
# Introduction | ||
A package to create a [Config Sync](https://cloud.google.com/anthos-config-management/docs/config-sync-overview) RepoSync object for an Azure DevOps git repo. | ||
|
||
# Requirements | ||
The `git-creds` secret must already be created in the KCC cluster: | ||
```bash | ||
kubectl create secret generic git-creds --namespace="config-management-system" --from-literal=username='<my azdo organization>' --from-literal=token='<my code read token>' | ||
``` | ||
### GitHub Credentials | ||
If you are using GitHub as a config sync repository the configuration of the kubernetes secret is done in the same manner. Please note you cannot have the @github.com appended to the end of your token as you see in a local .git-credentials file. GitHub recommends creating a machine account with limited repository access over a PAT. | ||
|
||
```bash | ||
kubectl create secret generic git-creds --namespace="config-management-system" --from-literal=username='<my github username | machine account>' --from-literal=token='<token>' | ||
``` | ||
|
||
> The revision (version) does not appear to work for annotated tags, like the ones created from the Azure DevOps UI. When running `git rev-parse 0.0.0` on those, a different commit is returned and Config Sync throws an error. Tags should be created in a way similar to this (ideally by a pipeline): | ||
```bash | ||
git tag 0.0.0 | ||
git push origin --tags | ||
``` | ||
|
||
# Usage | ||
Get the package by running the following, optionally setting the revision and destination folder: | ||
|
||
`kpt pkg get https://PKG_URL@<REVISION> <DESTINATION_FOLDER>` | ||
|
||
Follow instructions inside the `setters-version.yaml` and `setters.yaml` to customize for your environment. Examples have been provided for GitHub. Comment out the AZDO sections and comment in the GitHub appropriately. |
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 |
---|---|---|
|
@@ -17,7 +17,7 @@ spec: | |
repo: https://[email protected]/AZDO-ORG/AZDO-PROJECT/_git/REPO-NAME # kpt-set: ${repo-url} | ||
branch: main # kpt-set: ${repo-branch} | ||
# The `x-fleet-id` is the GCP project-id where the kubernetes clusters are deployed with character "x" as the environment code because this folder will contain the configuration for all environments. | ||
dir: tier4/kubernetes/<x-fleet-id>/namespace/deploy/<env>/<namespace> # kpt-set: ${repo-dir} | ||
dir: tier4/kubernetes/_X-FLEET-ID/namespace/deploy/<env>/<namespace> # kpt-set: ${repo-dir} | ||
revision: 0.0.0 # kpt-set: ${version} | ||
auth: token | ||
secretRef: | ||
|
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.