1- # udp
1+ # [ Unified Openshift Deployment Process ] ( https://docs.google.com/presentation/d/1MlLuuawzxJg6U15zbPby6JAtNNEWZAhfGEWNcpYSWeo )
22
3- [ Unified Openshift deployment Project] ( https://docs.google.com/presentation/d/1MlLuuawzxJg6U15zbPby6JAtNNEWZAhfGEWNcpYSWeo )
43for the [ Packit Service Validation] ( https://github.com/packit/deployment/tree/main/cron-jobs/packit-service-validation ) .
54
65To deploy the * Packit Service Validation* through * Helm* follow this steps:
@@ -10,43 +9,51 @@ To deploy the *Packit Service Validation* through *Helm* follow this steps:
109Helm uses an ** image** created through a GitHub action and pushed to Quay.io,
1110the ** tag** for this image is the first * 7 digit for the commit SHA* of the packit/deployment repo.
1211
13- To use a new image update the referenced tag [ here] ( https://github.com/packit/udp/blob/main/ocp-deployments/packit-service-validation-prod.yaml#L18 ) .
12+ To use a new image update the referenced tag
13+ [ here] ( https://github.com/packit/udp/blob/main/ocp-deployments/packit-service-validation-prod.yaml#L18 ) .
1414
15- Copy your OpenShift * API token * from the [ PSI Cluster ] ( https://ocp4.psi.redhat.com/ )
15+ ### Install Helm Chart
1616
17- ```
18- git clone https://github.com/packit/udp.git
19- oc login --token=sha256~.... --server= ....
20- oc project cyborg
21- export PACKIT_SENTRY=$( echo -n 'token from bitwarden' | base64 )
22- export PACKIT_GITHUB_TOKEN=$( echo -n 'token from bitwarden' | base64 )
23- ```
17+ Login to OpenShift cluster and switch to proper project. In case of packit-service validation
18+ it's ` cyborg ` project @ [ PSI Cluster] ( https://ocp4.psi.redhat.com ) .
2419
25- ### Install Helm Chart
20+ oc login --token=sha256~.... --server= ....
21+ oc project cyborg
22+
23+ Get secrets from Bitwarden.
24+ Sentry from ` extra-vars.yml ` in ` secrets-packit-[prod|stg] ` item and
25+ GitHub token from ` Release/usercont bot ` item.
26+
27+ export SENTRY=$( echo -n 'token from bitwarden' | base64 )
28+ export GITHUB=$( echo -n 'token from bitwarden' | base64 )
29+
30+ #### Install from this repo
31+
32+ make packit-service-validation-install DEPLOYMENT=[production|staging]
33+
34+ #### Install from chart repository
35+
36+ If you're going to use the chart from outside (without having this repo cloned),
37+ you can install the chart from our chart repository. You just need to have a file
38+ with keys overriding those defined in ` values.yaml ` with ` ~ ` value.
39+
40+ helm repo add packit https://helm.packit.dev
41+ helm repo update
42+ helm upgrade --install --cleanup-on-fail packit-service-validation packit/packit-service-validation --set secrets.sentry=${SENTRY} --set secrets.github=${GITHUB} --values your-values-file.yaml
2643
27- #### From this repo
28- ```
29- helm upgrade --install --cleanup-on-fail packit-service-validation ocp-helm-charts/packit-service-validation/ --set secrets.sentry=${PACKIT_SENTRY} --set secrets.github=${PACKIT_GITHUB_TOKEN} --values ocp-deployments/packit-service-validation-prod.yaml
30- ```
44+ ### Render templates
3145
32- #### From chart repository
33- ```
34- helm repo add packit https://helm.packit.dev
35- helm repo update
36- helm upgrade --install --cleanup-on-fail packit-service-validation packit/packit-service-validation --set secrets.sentry=${PACKIT_SENTRY} --set secrets.github=${PACKIT_GITHUB_TOKEN} --values ocp-deployments/packit-service-validation-prod.yaml
37- ```
46+ If you just want to see how the rendered templates would look like:
3847
39- ### Uninstall Helm Chart
40- ```
41- helm uninstall packit-service-validation
42- ```
48+ make packit-service-validation-dryrun DEPLOYMENT=[production|staging]
4349
4450### Releases
45- There's a [ release workflow] ( .github/workflows/release.yml ) to automate releasing the Helm charts.
46- It uses [ Helm Chart Releaser Action] ( https://github.com/marketplace/actions/helm-chart-releaser )
51+ There's a [ release workflow] ( https://github.com/packit/udp/blob/main/.github/workflows/release.yml )
52+ to automate releasing the Helm charts. It uses
53+ [ Helm Chart Releaser Action] ( https://github.com/marketplace/actions/helm-chart-releaser )
4754which turns this project into a self-hosted Helm chart repository.
4855It does this – during every push to ` main ` – by checking each chart in the project,
4956and whenever there's a new chart version, creates a corresponding GitHub release
5057named for the chart version, adds Helm chart artifacts to the release,
5158and creates or updates an ` index.yaml ` file with metadata about those releases,
52- which is then hosted on GitHub Pages at https://helm.packit.dev .
59+ which is then hosted on GitHub Pages at [ helm.packit.dev ] ( https://helm.packit.dev ) .
0 commit comments