gitops
Update a Git source
Updates an existing GitOps source backed by a Git repository. Access policy: authenticated
put/gitops/sources/{id}
Path parameters
idinteger required
Source identifier
Request body
Response
OK
Example response
{
"git": {
"URL": "https://github.com/portainer/portainer.git"
},
"helm": {
"Atomic": true,
"ChartName": "nginx",
"ChartPath": "charts/my-app",
"ChartURL": "https://charts.bitnami.com/bitnami",
"ChartVersion": "15.0.0",
"Namespace": "default",
"Timeout": "5m0s",
"ValuesFiles": [
"['values/prod.yaml'",
" 'values/secrets.yaml']"
],
"ValuesInline": "replicaCount: 2"
},
"id": 1,
"interval": "5m",
"lastSync": 1587399600,
"name": "my-source",
"registry": {
"Authentication": true,
"BaseURL": "registry.mydomain.tld:2375",
"Ecr": {
"Region": "ap-southeast-2"
},
"Id": 1,
"ManagementConfiguration": {
"Ecr": {
"Region": "ap-southeast-2"
},
"TLSConfig": {
"TLS": true,
"TLSCACert": "/data/tls/ca.pem",
"TLSCert": "/data/tls/cert.pem",
"TLSKey": "/data/tls/key.pem"
}
},
"Name": "my-registry",
"Password": "registry_password",
"URL": "registry.mydomain.tld:2375",
"Username": "registry user"
}
}