-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'CHAOS-7287' of https://github.com/harness/developer-hub …
…into CHAOS-7287
- Loading branch information
Showing
263 changed files
with
7,847 additions
and
3,093 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,4 +69,4 @@ jobs: | |
else | ||
echo -e "${Red} The check has failed.${Reset}" | ||
exit 1 | ||
fi | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment'; | ||
|
||
const doYourCustomStuff = () => { | ||
const navbar__items = document.querySelector('.navbar__items'); | ||
const navbar__sidebar__close = document.querySelector( | ||
'.navbar-sidebar__close' | ||
); | ||
const navbar__inner = document.querySelector('.navbar__inner'); | ||
|
||
const searchBoxMain = navbar__inner.querySelector('#coveo-search-main'); | ||
|
||
if (searchBoxMain) { | ||
searchBoxMain.classList.add('main-nav-coveo'); | ||
} | ||
|
||
const searchButton = document.createElement('i'); | ||
searchButton.setAttribute('id', 'search-button'); | ||
searchButton.setAttribute('class', 'fa-solid fa-magnifying-glass'); | ||
|
||
if (navbar__items) { | ||
navbar__items.appendChild(searchButton); | ||
if (window.location.pathname !== '/') { | ||
const navbar__toggle = document.querySelectorAll('.navbar__toggle'); | ||
if (navbar__toggle) { | ||
navbar__toggle[0].addEventListener('click', () => { | ||
const navbar__sidebar__items = document.querySelectorAll( | ||
'.navbar-sidebar__items' | ||
); | ||
if (navbar__sidebar__items[0]) { | ||
navbar__sidebar__items[0].classList.add( | ||
'navbar-sidebar__items--show-secondary' | ||
); | ||
} | ||
}); | ||
} | ||
} | ||
|
||
searchButton.addEventListener('click', () => { | ||
const navbar = document.querySelector('.navbar'); | ||
const navbar__sidebar = document.querySelector('.navbar-sidebar'); | ||
|
||
if (navbar && navbar__sidebar) { | ||
navbar.classList.add('navbar-sidebar--show'); | ||
navbar__sidebar.classList.add('navbar-sidebar--show'); | ||
} | ||
|
||
const navbar__sidebar__items = document.querySelectorAll( | ||
'.navbar-sidebar__items' | ||
); | ||
if (navbar__sidebar__items[0]) { | ||
navbar__sidebar__items[0].classList.remove( | ||
'navbar-sidebar__items--show-secondary' | ||
); | ||
} | ||
}); | ||
} | ||
if (navbar__sidebar__close) { | ||
navbar__sidebar__close.addEventListener('click', () => { | ||
const navbar = document.querySelector('.navbar'); | ||
const navbar__sidebar = document.querySelector('.navbar-sidebar'); | ||
|
||
if (navbar && navbar__sidebar) { | ||
navbar.classList.remove('navbar-sidebar--show'); | ||
navbar__sidebar.classList.remove('navbar-sidebar--show'); | ||
} | ||
}); | ||
} | ||
}; | ||
|
||
if (ExecutionEnvironment.canUseDOM) { | ||
window.addEventListener('load', () => { | ||
setInterval(doYourCustomStuff, 500); | ||
// setTimeout(() => { | ||
// clearInterval(interval); | ||
// interval = 0; | ||
// }, 2000); | ||
}); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"label": "Troubleshooting", | ||
"collapsible": "false", | ||
"collapsed": "true", | ||
"link": { "type": "generated-index", "title": "Troubleshooting" }, | ||
"customProps": {}, | ||
"position": 60 | ||
} | ||
|
8 changes: 8 additions & 0 deletions
8
docs/artifact-registry/troubleshooting/authorization/_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,8 @@ | ||
{ | ||
"label": "Authorization / Authentication", | ||
"collapsible": "true", | ||
"collapsed": "false", | ||
"link": { "type": "generated-index", "title": "Authorization / Authentication" }, | ||
"customProps": {}, | ||
"position": 10 | ||
} |
54 changes: 54 additions & 0 deletions
54
docs/artifact-registry/troubleshooting/authorization/auth-401-errors.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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
title: Issues Pulling Images | ||
description: Fixing 401 Unauthorized errors when pulling images from Harness Artifact Registry. | ||
sidebar_position: 10 | ||
--- | ||
|
||
This document provides steps to resolve "401 Unauthorized" errors when pulling images from Harness Artifact Registry. | ||
|
||
## Understanding 401 Errors When Pulling Images | ||
|
||
401 Unauthorized errors occur when Harness Artifact Registry fails to authenticate image pull requests from the Kubernetes cluster. | ||
|
||
:::tip Cluster Secrets | ||
Ensure your cluster has the correct `imagePullSecrets` and Kubernetes secrets configured. | ||
::: | ||
|
||
### Example Solution | ||
|
||
To authenticate your Kubernetes cluster, follow these steps: | ||
|
||
1. **Create a Docker Registry Secret:** | ||
|
||
```bash | ||
kubectl create secret docker-registry docker-registry-secret1 \ | ||
--docker-server=pkg.harness.io \ | ||
--docker-username=<email> \ | ||
--docker-password=<personal-access-token> \ | ||
--docker-email=<email> \ | ||
--namespace=default | ||
``` | ||
|
||
2. **Update your Kubernetes deployment manifest to reference the secret:** | ||
```bash | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: your-pod-name | ||
namespace: default | ||
spec: | ||
containers: | ||
- name: your-container-name | ||
image: pkg.harness.io/your-image:tag | ||
imagePullSecrets: | ||
- name: docker-registry-secret1 | ||
``` | ||
|
||
3. **Verify the Setup:** | ||
|
||
Deploy the updated manifest and monitor the pod status to ensure the image is pulled successfully without authentication errors. | ||
|
||
--- | ||
|
||
## Kubernetes-specific guides | ||
Go to the [Private Registry for Kubernetes guide](https://developer.harness.io/docs/continuous-delivery/deploy-srv-diff-platforms/kubernetes/cd-kubernetes-category/pull-an-image-from-a-private-registry-for-kubernetes/) or [Add Container Images as Artifacts](https://developer.harness.io/docs/continuous-delivery/deploy-srv-diff-platforms/kubernetes/cd-kubernetes-category/add-artifacts-for-kubernetes-deployments/) for more details on how to pull an image from a private registry, or to add container images as artifacts for Kubernetes deployments. |
16 changes: 16 additions & 0 deletions
16
docs/artifact-registry/troubleshooting/authorization/auth-403-errors.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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
title: 403 Errors in Pipeline Execution | ||
description: Troubleshooting common 403 errors during pipeline execution in Harness Artifact Registry. | ||
sidebar_position: 20 | ||
--- | ||
|
||
This document helps you troubleshoot 403 errors encountered during pipeline execution. | ||
|
||
## Understanding 403 Errors in Pipeline Execution | ||
403 errors typically indicate a permissions or access-related issue in your pipeline setup. They may arise due to configuration changes or mismatched access credentials. Go to [role-based access control (RBAC)](https://developer.harness.io/docs/platform/role-based-access-control/rbac-in-harness) to find out how to manage pipeline permissions. | ||
|
||
:::tip account level access | ||
Check if any recent changes to account-level flags or permissions may have impacted the pipeline. | ||
::: | ||
|
||
Go to the [permission reference](https://developer.harness.io/docs/platform/role-based-access-control/permissions-reference/) to review the specific permissions required for your pipeline execution. |
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
Oops, something went wrong.