Skip to content

Commit

Permalink
Merge pull request #975 from SaschaSchwarze0/sascha-ship-0025-paramet…
Browse files Browse the repository at this point in the history
…ers-enhancements

SHIP 0025 Extended parameter support
  • Loading branch information
openshift-merge-robot authored Jan 27, 2022
2 parents 0342700 + 35eb993 commit 0d6b5fd
Show file tree
Hide file tree
Showing 30 changed files with 3,176 additions and 334 deletions.
176 changes: 174 additions & 2 deletions deploy/crds/shipwright.io_buildruns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,98 @@ spec:
description: ParamValue is a key/value that populates a strategy
parameter used in the execution of the strategy steps
properties:
configMapValue:
description: The ConfigMap value of the parameter
properties:
format:
description: An optional format to add pre- or suffix to
the object value. For example 'KEY=${SECRET_VALUE}' or
'KEY=${CONFIGMAP_VALUE}' depending on the context.
type: string
key:
description: Key inside the object
type: string
name:
description: Name of the object
type: string
required:
- key
- name
type: object
name:
description: Name of the parameter
type: string
secretValue:
description: The secret value of the parameter
properties:
format:
description: An optional format to add pre- or suffix to
the object value. For example 'KEY=${SECRET_VALUE}' or
'KEY=${CONFIGMAP_VALUE}' depending on the context.
type: string
key:
description: Key inside the object
type: string
name:
description: Name of the object
type: string
required:
- key
- name
type: object
value:
description: The value of the parameter
type: string
values:
description: Values of an array parameter
items:
description: The value type contains the properties for a
value, this allows for an easy extension in the future to
support more kinds
properties:
configMapValue:
description: The ConfigMap value of the parameter
properties:
format:
description: An optional format to add pre- or suffix
to the object value. For example 'KEY=${SECRET_VALUE}'
or 'KEY=${CONFIGMAP_VALUE}' depending on the context.
type: string
key:
description: Key inside the object
type: string
name:
description: Name of the object
type: string
required:
- key
- name
type: object
secretValue:
description: The secret value of the parameter
properties:
format:
description: An optional format to add pre- or suffix
to the object value. For example 'KEY=${SECRET_VALUE}'
or 'KEY=${CONFIGMAP_VALUE}' depending on the context.
type: string
key:
description: Key inside the object
type: string
name:
description: Name of the object
type: string
required:
- key
- name
type: object
value:
description: The value of the parameter
type: string
type: object
type: array
required:
- name
- value
type: object
type: array
serviceAccount:
Expand Down Expand Up @@ -459,13 +544,100 @@ spec:
description: ParamValue is a key/value that populates a strategy
parameter used in the execution of the strategy steps
properties:
configMapValue:
description: The ConfigMap value of the parameter
properties:
format:
description: An optional format to add pre- or suffix
to the object value. For example 'KEY=${SECRET_VALUE}'
or 'KEY=${CONFIGMAP_VALUE}' depending on the context.
type: string
key:
description: Key inside the object
type: string
name:
description: Name of the object
type: string
required:
- key
- name
type: object
name:
description: Name of the parameter
type: string
secretValue:
description: The secret value of the parameter
properties:
format:
description: An optional format to add pre- or suffix
to the object value. For example 'KEY=${SECRET_VALUE}'
or 'KEY=${CONFIGMAP_VALUE}' depending on the context.
type: string
key:
description: Key inside the object
type: string
name:
description: Name of the object
type: string
required:
- key
- name
type: object
value:
description: The value of the parameter
type: string
values:
description: Values of an array parameter
items:
description: The value type contains the properties for
a value, this allows for an easy extension in the future
to support more kinds
properties:
configMapValue:
description: The ConfigMap value of the parameter
properties:
format:
description: An optional format to add pre- or
suffix to the object value. For example 'KEY=${SECRET_VALUE}'
or 'KEY=${CONFIGMAP_VALUE}' depending on the
context.
type: string
key:
description: Key inside the object
type: string
name:
description: Name of the object
type: string
required:
- key
- name
type: object
secretValue:
description: The secret value of the parameter
properties:
format:
description: An optional format to add pre- or
suffix to the object value. For example 'KEY=${SECRET_VALUE}'
or 'KEY=${CONFIGMAP_VALUE}' depending on the
context.
type: string
key:
description: Key inside the object
type: string
name:
description: Name of the object
type: string
required:
- key
- name
type: object
value:
description: The value of the parameter
type: string
type: object
type: array
required:
- name
- value
type: object
type: array
source:
Expand Down
87 changes: 86 additions & 1 deletion deploy/crds/shipwright.io_builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,98 @@ spec:
description: ParamValue is a key/value that populates a strategy
parameter used in the execution of the strategy steps
properties:
configMapValue:
description: The ConfigMap value of the parameter
properties:
format:
description: An optional format to add pre- or suffix to
the object value. For example 'KEY=${SECRET_VALUE}' or
'KEY=${CONFIGMAP_VALUE}' depending on the context.
type: string
key:
description: Key inside the object
type: string
name:
description: Name of the object
type: string
required:
- key
- name
type: object
name:
description: Name of the parameter
type: string
secretValue:
description: The secret value of the parameter
properties:
format:
description: An optional format to add pre- or suffix to
the object value. For example 'KEY=${SECRET_VALUE}' or
'KEY=${CONFIGMAP_VALUE}' depending on the context.
type: string
key:
description: Key inside the object
type: string
name:
description: Name of the object
type: string
required:
- key
- name
type: object
value:
description: The value of the parameter
type: string
values:
description: Values of an array parameter
items:
description: The value type contains the properties for a
value, this allows for an easy extension in the future to
support more kinds
properties:
configMapValue:
description: The ConfigMap value of the parameter
properties:
format:
description: An optional format to add pre- or suffix
to the object value. For example 'KEY=${SECRET_VALUE}'
or 'KEY=${CONFIGMAP_VALUE}' depending on the context.
type: string
key:
description: Key inside the object
type: string
name:
description: Name of the object
type: string
required:
- key
- name
type: object
secretValue:
description: The secret value of the parameter
properties:
format:
description: An optional format to add pre- or suffix
to the object value. For example 'KEY=${SECRET_VALUE}'
or 'KEY=${CONFIGMAP_VALUE}' depending on the context.
type: string
key:
description: Key inside the object
type: string
name:
description: Name of the object
type: string
required:
- key
- name
type: object
value:
description: The value of the parameter
type: string
type: object
type: array
required:
- name
- value
type: object
type: array
source:
Expand Down
11 changes: 10 additions & 1 deletion deploy/crds/shipwright.io_buildstrategies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1185,14 +1185,23 @@ spec:
object.
properties:
default:
description: Reasonable default value for the parameter
description: Default value for a string parameter
type: string
defaults:
description: Default values for an array parameter
items:
type: string
type: array
description:
description: Description on the parameter purpose
type: string
name:
description: Name of the parameter
type: string
type:
description: Type of the parameter. The possible types are "string"
and "array", and "string" is the default.
type: string
required:
- description
- name
Expand Down
11 changes: 10 additions & 1 deletion deploy/crds/shipwright.io_clusterbuildstrategies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1185,14 +1185,23 @@ spec:
object.
properties:
default:
description: Reasonable default value for the parameter
description: Default value for a string parameter
type: string
defaults:
description: Default values for an array parameter
items:
type: string
type: array
description:
description: Description on the parameter purpose
type: string
name:
description: Name of the parameter
type: string
type:
description: Type of the parameter. The possible types are "string"
and "array", and "string" is the default.
type: string
required:
- description
- name
Expand Down
Loading

0 comments on commit 0d6b5fd

Please sign in to comment.