Skip to content

Commit

Permalink
clean pull request ssh references as not supported #47 (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
enekofb authored Feb 24, 2023
1 parent 5c48516 commit 3251ede
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 26 deletions.
4 changes: 1 addition & 3 deletions api/v1alpha1/pipeline_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ type PullRequestPromotion struct {
// +required
// +kubebuilder:validation:Enum=github;gitlab;bitbucket-server
Type GitProviderType `json:"type"`
// The git repository URL used to patch the manifests for promotion.
// The git repository HTTPS URL used to patch the manifests for promotion.
// +required
URL string `json:"url"`
// The branch to checkout after cloning. Note: This is just the base
Expand All @@ -126,8 +126,6 @@ type PullRequestPromotion struct {
// the git repository and for the git provider API.
// For HTTPS repositories the Secret must contain 'username' and 'password'
// fields.
// For SSH repositories the Secret must contain 'identity'
// and 'known_hosts' fields.
// For Git Provider API to manage pull requests, it must contain a 'token' field.
// +required
SecretRef meta.LocalObjectReference `json:"secretRef"`
Expand Down
2 changes: 1 addition & 1 deletion charts/pipeline-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: pipeline-controller
description: Pipeline-controller Helm chart for Weave GitOps Enterprise
type: application
version: 0.17.0
version: 0.18.0
appVersion: "v0.0.29"
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ spec:
authentication credentials for the git repository
and for the git provider API. For HTTPS repositories
the Secret must contain 'username' and 'password'
fields. For SSH repositories the Secret must contain
'identity' and 'known_hosts' fields. For Git Provider
API to manage pull requests, it must contain a
'token' field.
fields. For Git Provider API to manage pull requests,
it must contain a 'token' field.
properties:
name:
description: Name of the referent.
Expand All @@ -136,8 +134,8 @@ spec:
- bitbucket-server
type: string
url:
description: The git repository URL used to patch
the manifests for promotion.
description: The git repository HTTPS URL used to
patch the manifests for promotion.
type: string
required:
- secretRef
Expand Down Expand Up @@ -241,9 +239,8 @@ spec:
authentication credentials for the git repository and
for the git provider API. For HTTPS repositories the
Secret must contain 'username' and 'password' fields.
For SSH repositories the Secret must contain 'identity'
and 'known_hosts' fields. For Git Provider API to manage
pull requests, it must contain a 'token' field.
For Git Provider API to manage pull requests, it must
contain a 'token' field.
properties:
name:
description: Name of the referent.
Expand All @@ -260,8 +257,8 @@ spec:
- bitbucket-server
type: string
url:
description: The git repository URL used to patch the
manifests for promotion.
description: The git repository HTTPS URL used to patch
the manifests for promotion.
type: string
required:
- secretRef
Expand Down
19 changes: 8 additions & 11 deletions config/crd/bases/pipelines.weave.works_pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,8 @@ spec:
authentication credentials for the git repository
and for the git provider API. For HTTPS repositories
the Secret must contain 'username' and 'password'
fields. For SSH repositories the Secret must contain
'identity' and 'known_hosts' fields. For Git Provider
API to manage pull requests, it must contain a
'token' field.
fields. For Git Provider API to manage pull requests,
it must contain a 'token' field.
properties:
name:
description: Name of the referent.
Expand All @@ -136,8 +134,8 @@ spec:
- bitbucket-server
type: string
url:
description: The git repository URL used to patch
the manifests for promotion.
description: The git repository HTTPS URL used to
patch the manifests for promotion.
type: string
required:
- secretRef
Expand Down Expand Up @@ -241,9 +239,8 @@ spec:
authentication credentials for the git repository and
for the git provider API. For HTTPS repositories the
Secret must contain 'username' and 'password' fields.
For SSH repositories the Secret must contain 'identity'
and 'known_hosts' fields. For Git Provider API to manage
pull requests, it must contain a 'token' field.
For Git Provider API to manage pull requests, it must
contain a 'token' field.
properties:
name:
description: Name of the referent.
Expand All @@ -260,8 +257,8 @@ spec:
- bitbucket-server
type: string
url:
description: The git repository URL used to patch the
manifests for promotion.
description: The git repository HTTPS URL used to patch
the manifests for promotion.
type: string
required:
- secretRef
Expand Down

0 comments on commit 3251ede

Please sign in to comment.