- Added config.json key to harbor-credentials ExternalSecret This ensures kaniko can find the Docker auth config at /kaniko/.docker/config.json (previously only .dockerconfigjson was present) - Created test-app-build PipelineRun manifest for validation testing - Successfully validated end-to-end pipeline: ✅ git-clone Task deployed and working ✅ kaniko-build Task deployed and working ✅ container-build Pipeline deployed and working ✅ Harbor authentication working with robot account ✅ Test image built and pushed: the-seas.local.mk-labs.cloud/library/test-app:v1.0.0 ✅ Image digest: sha256:aa143f4a01795a1d307b711108ca0c89f36e00ea38fddb9d7b2febd5fffc46d7 Pipeline test results: - PipelineRun: test-app-build-005 - SUCCEEDED - fetch-repository TaskRun - SUCCEEDED - build-and-push TaskRun - SUCCEEDED Tekton CI/CD platform is now operational and ready for production workloads.
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
# ExternalSecret for Tekton robot account credentials
|
|
# Syncs from 1Password item: harbor-robot-accounts
|
|
# Creates a docker-registry type secret for Tekton pipeline authentication
|
|
apiVersion: external-secrets.io/v1beta1
|
|
kind: ExternalSecret
|
|
metadata:
|
|
name: harbor-tekton-robot
|
|
namespace: innoventions
|
|
spec:
|
|
refreshInterval: 1h
|
|
secretStoreRef:
|
|
name: onepassword-connect
|
|
kind: ClusterSecretStore
|
|
target:
|
|
name: harbor-credentials
|
|
creationPolicy: Owner
|
|
template:
|
|
type: kubernetes.io/dockerconfigjson
|
|
data:
|
|
.dockerconfigjson: |
|
|
{
|
|
"auths": {
|
|
"the-seas.local.mk-labs.cloud": {
|
|
"username": "{{ .tekton_username }}",
|
|
"password": "{{ .tekton_password }}",
|
|
"auth": "{{ printf "%s:%s" .tekton_username .tekton_password | b64enc }}"
|
|
}
|
|
}
|
|
}
|
|
config.json: |
|
|
{
|
|
"auths": {
|
|
"the-seas.local.mk-labs.cloud": {
|
|
"username": "{{ .tekton_username }}",
|
|
"password": "{{ .tekton_password }}",
|
|
"auth": "{{ printf "%s:%s" .tekton_username .tekton_password | b64enc }}"
|
|
}
|
|
}
|
|
}
|
|
data:
|
|
- secretKey: tekton_username
|
|
remoteRef:
|
|
key: harbor-robot-accounts
|
|
property: tekton-builder-username
|
|
- secretKey: tekton_password
|
|
remoteRef:
|
|
key: harbor-robot-accounts
|
|
property: tekton-builder-password
|