Skip to content

Commit

Permalink
chore(lifecycle-operator): remove deprecated fields in KeptnTaskDefin…
Browse files Browse the repository at this point in the history
…ition (keptn#3345)

Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: vickysomtee <vickysomtee@gmail.com>
  • Loading branch information
odubajDT authored and Vickysomtee committed Apr 22, 2024
1 parent b260029 commit 0b06eaa
Show file tree
Hide file tree
Showing 65 changed files with 78 additions and 831 deletions.
74 changes: 0 additions & 74 deletions .github/scripts/.helm-tests/default/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5952,80 +5952,6 @@ spec:
type: string
type: object
type: object
function:
description: |-
Deprecated
Function contains the definition for the function that is to be executed in KeptnTasks.
properties:
cmdParameters:
description: CmdParameters contains parameters that will be passed
to the command
type: string
configMapRef:
description: |-
ConfigMapReference allows to reference a ConfigMap containing the code of the function.
When referencing a ConfigMap, the code of the function must be available as a value of the 'code' key
of the referenced ConfigMap.
properties:
name:
description: Name is the name of the referenced ConfigMap.
type: string
type: object
functionRef:
description: |-
FunctionReference allows to reference another KeptnTaskDefinition which contains the source code of the
function to be executes for KeptnTasks based on this KeptnTaskDefinition. This can be useful when you have
multiple KeptnTaskDefinitions that should execute the same logic, but each with different parameters.
properties:
name:
description: Name is the name of the referenced KeptnTaskDefinition.
type: string
type: object
httpRef:
description: HttpReference allows to point to an HTTP URL containing
the code of the function.
properties:
url:
description: Url is the URL containing the code of the function.
type: string
type: object
inline:
description: |-
Inline allows to specify the code that should be executed directly in the KeptnTaskDefinition, as a multi-line
string.
properties:
code:
description: Code contains the code of the function.
type: string
type: object
parameters:
description: Parameters contains parameters that will be passed
to the job that executes the task as env variables.
properties:
map:
additionalProperties:
type: string
description: |-
Inline contains the parameters that will be made available to the job
executing the KeptnTask via the 'DATA' environment variable.
The 'DATA' environment variable's content will be a json
encoded string containing all properties of the map provided.
type: object
type: object
secureParameters:
description: |-
SecureParameters contains secure parameters that will be passed to the job that executes the task.
These will be stored and accessed as secrets in the cluster.
properties:
secret:
description: |-
Secret contains the parameters that will be made available to the job
executing the KeptnTask via the 'SECRET_DATA' environment variable.
The 'SECRET_DATA' environment variable's content will the same as value of the 'SECRET_DATA'
key of the referenced secret.
type: string
type: object
type: object
imagePullSecrets:
description: ImagePullSecrets is an optional field to specify the
names of secrets to use for pulling container images
Expand Down
74 changes: 0 additions & 74 deletions .github/scripts/.helm-tests/lifecycle-only/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5898,80 +5898,6 @@ spec:
type: string
type: object
type: object
function:
description: |-
Deprecated
Function contains the definition for the function that is to be executed in KeptnTasks.
properties:
cmdParameters:
description: CmdParameters contains parameters that will be passed
to the command
type: string
configMapRef:
description: |-
ConfigMapReference allows to reference a ConfigMap containing the code of the function.
When referencing a ConfigMap, the code of the function must be available as a value of the 'code' key
of the referenced ConfigMap.
properties:
name:
description: Name is the name of the referenced ConfigMap.
type: string
type: object
functionRef:
description: |-
FunctionReference allows to reference another KeptnTaskDefinition which contains the source code of the
function to be executes for KeptnTasks based on this KeptnTaskDefinition. This can be useful when you have
multiple KeptnTaskDefinitions that should execute the same logic, but each with different parameters.
properties:
name:
description: Name is the name of the referenced KeptnTaskDefinition.
type: string
type: object
httpRef:
description: HttpReference allows to point to an HTTP URL containing
the code of the function.
properties:
url:
description: Url is the URL containing the code of the function.
type: string
type: object
inline:
description: |-
Inline allows to specify the code that should be executed directly in the KeptnTaskDefinition, as a multi-line
string.
properties:
code:
description: Code contains the code of the function.
type: string
type: object
parameters:
description: Parameters contains parameters that will be passed
to the job that executes the task as env variables.
properties:
map:
additionalProperties:
type: string
description: |-
Inline contains the parameters that will be made available to the job
executing the KeptnTask via the 'DATA' environment variable.
The 'DATA' environment variable's content will be a json
encoded string containing all properties of the map provided.
type: object
type: object
secureParameters:
description: |-
SecureParameters contains secure parameters that will be passed to the job that executes the task.
These will be stored and accessed as secrets in the cluster.
properties:
secret:
description: |-
Secret contains the parameters that will be made available to the job
executing the KeptnTask via the 'SECRET_DATA' environment variable.
The 'SECRET_DATA' environment variable's content will the same as value of the 'SECRET_DATA'
key of the referenced secret.
type: string
type: object
type: object
imagePullSecrets:
description: ImagePullSecrets is an optional field to specify the
names of secrets to use for pulling container images
Expand Down
74 changes: 0 additions & 74 deletions .github/scripts/.helm-tests/lifecycle-with-certs/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5913,80 +5913,6 @@ spec:
type: string
type: object
type: object
function:
description: |-
Deprecated
Function contains the definition for the function that is to be executed in KeptnTasks.
properties:
cmdParameters:
description: CmdParameters contains parameters that will be passed
to the command
type: string
configMapRef:
description: |-
ConfigMapReference allows to reference a ConfigMap containing the code of the function.
When referencing a ConfigMap, the code of the function must be available as a value of the 'code' key
of the referenced ConfigMap.
properties:
name:
description: Name is the name of the referenced ConfigMap.
type: string
type: object
functionRef:
description: |-
FunctionReference allows to reference another KeptnTaskDefinition which contains the source code of the
function to be executes for KeptnTasks based on this KeptnTaskDefinition. This can be useful when you have
multiple KeptnTaskDefinitions that should execute the same logic, but each with different parameters.
properties:
name:
description: Name is the name of the referenced KeptnTaskDefinition.
type: string
type: object
httpRef:
description: HttpReference allows to point to an HTTP URL containing
the code of the function.
properties:
url:
description: Url is the URL containing the code of the function.
type: string
type: object
inline:
description: |-
Inline allows to specify the code that should be executed directly in the KeptnTaskDefinition, as a multi-line
string.
properties:
code:
description: Code contains the code of the function.
type: string
type: object
parameters:
description: Parameters contains parameters that will be passed
to the job that executes the task as env variables.
properties:
map:
additionalProperties:
type: string
description: |-
Inline contains the parameters that will be made available to the job
executing the KeptnTask via the 'DATA' environment variable.
The 'DATA' environment variable's content will be a json
encoded string containing all properties of the map provided.
type: object
type: object
secureParameters:
description: |-
SecureParameters contains secure parameters that will be passed to the job that executes the task.
These will be stored and accessed as secrets in the cluster.
properties:
secret:
description: |-
Secret contains the parameters that will be made available to the job
executing the KeptnTask via the 'SECRET_DATA' environment variable.
The 'SECRET_DATA' environment variable's content will the same as value of the 'SECRET_DATA'
key of the referenced secret.
type: string
type: object
type: object
imagePullSecrets:
description: ImagePullSecrets is an optional field to specify the
names of secrets to use for pulling container images
Expand Down
74 changes: 0 additions & 74 deletions .github/scripts/.helm-tests/local-global-precedence/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6046,80 +6046,6 @@ spec:
type: string
type: object
type: object
function:
description: |-
Deprecated
Function contains the definition for the function that is to be executed in KeptnTasks.
properties:
cmdParameters:
description: CmdParameters contains parameters that will be passed
to the command
type: string
configMapRef:
description: |-
ConfigMapReference allows to reference a ConfigMap containing the code of the function.
When referencing a ConfigMap, the code of the function must be available as a value of the 'code' key
of the referenced ConfigMap.
properties:
name:
description: Name is the name of the referenced ConfigMap.
type: string
type: object
functionRef:
description: |-
FunctionReference allows to reference another KeptnTaskDefinition which contains the source code of the
function to be executes for KeptnTasks based on this KeptnTaskDefinition. This can be useful when you have
multiple KeptnTaskDefinitions that should execute the same logic, but each with different parameters.
properties:
name:
description: Name is the name of the referenced KeptnTaskDefinition.
type: string
type: object
httpRef:
description: HttpReference allows to point to an HTTP URL containing
the code of the function.
properties:
url:
description: Url is the URL containing the code of the function.
type: string
type: object
inline:
description: |-
Inline allows to specify the code that should be executed directly in the KeptnTaskDefinition, as a multi-line
string.
properties:
code:
description: Code contains the code of the function.
type: string
type: object
parameters:
description: Parameters contains parameters that will be passed
to the job that executes the task as env variables.
properties:
map:
additionalProperties:
type: string
description: |-
Inline contains the parameters that will be made available to the job
executing the KeptnTask via the 'DATA' environment variable.
The 'DATA' environment variable's content will be a json
encoded string containing all properties of the map provided.
type: object
type: object
secureParameters:
description: |-
SecureParameters contains secure parameters that will be passed to the job that executes the task.
These will be stored and accessed as secrets in the cluster.
properties:
secret:
description: |-
Secret contains the parameters that will be made available to the job
executing the KeptnTask via the 'SECRET_DATA' environment variable.
The 'SECRET_DATA' environment variable's content will the same as value of the 'SECRET_DATA'
key of the referenced secret.
type: string
type: object
type: object
imagePullSecrets:
description: ImagePullSecrets is an optional field to specify the
names of secrets to use for pulling container images
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/getting-started/assets/promotion-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: promotion
namespace: keptndemo
spec:
function:
deno:
inline:
code: |
console.log("Application promoted to stage prod!");
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ metadata:
name: post-deployment
namespace: podtato-head-dev
spec:
function:
deno:
inline:
code: |
console.log("deployment completed");
Expand All @@ -71,7 +71,7 @@ metadata:
name: promote
namespace: podtato-head-dev
spec:
function:
deno:
secureParameters:
secret: github-token
inline:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ metadata:
name: pre-deployment-check
namespace: restartable-apps
spec:
function:
deno:
inline:
code: |
console.error("I failed")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: pre-deployment-check
namespace: restartable-apps
spec:
function:
deno:
inline:
code: |
console.error("Success")
2 changes: 1 addition & 1 deletion docs/docs/guides/assets/tasks/dummy-task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: dummy-task
namespace: "default"
spec:
function:
deno:
secureParameters:
secret: my-secret
inline:
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/guides/assets/tasks/multi-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: dummy-task
namespace: "default"
spec:
function:
deno:
secureParameters:
secret: my-secret
inline:
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/guides/assets/tasks/slack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: KeptnTaskDefinition
metadata:
name: slack-notification-dev
spec:
function:
deno:
functionRef:
name: slack-notification
parameters:
Expand Down
Loading

0 comments on commit 0b06eaa

Please sign in to comment.