Skip to content

Commit

Permalink
fix helm checks and unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Bacher <[email protected]>
  • Loading branch information
bacherfl committed Jan 18, 2024
1 parent f87ee10 commit 34f2619
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .github/scripts/.helm-tests/default/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6894,6 +6894,12 @@ spec:
app:
description: AppName is the name of the KeptnApp containing the KeptnWorkload.
type: string
metadata:
additionalProperties:
type: string
description: Metadata contains additional key-value pairs for contextual
information.
type: object
postDeploymentEvaluations:
description: PostDeploymentEvaluations is a list of all evaluations
to be performed during the post-deployment phase of the KeptnWorkload.
Expand Down Expand Up @@ -7354,6 +7360,12 @@ spec:
app:
description: AppName is the name of the KeptnApp containing the KeptnWorkload.
type: string
metadata:
additionalProperties:
type: string
description: Metadata contains additional key-value pairs for contextual
information.
type: object
postDeploymentEvaluations:
description: PostDeploymentEvaluations is a list of all evaluations
to be performed during the post-deployment phase of the KeptnWorkload.
Expand Down
12 changes: 12 additions & 0 deletions .github/scripts/.helm-tests/lifecycle-only/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6840,6 +6840,12 @@ spec:
app:
description: AppName is the name of the KeptnApp containing the KeptnWorkload.
type: string
metadata:
additionalProperties:
type: string
description: Metadata contains additional key-value pairs for contextual
information.
type: object
postDeploymentEvaluations:
description: PostDeploymentEvaluations is a list of all evaluations
to be performed during the post-deployment phase of the KeptnWorkload.
Expand Down Expand Up @@ -7300,6 +7306,12 @@ spec:
app:
description: AppName is the name of the KeptnApp containing the KeptnWorkload.
type: string
metadata:
additionalProperties:
type: string
description: Metadata contains additional key-value pairs for contextual
information.
type: object
postDeploymentEvaluations:
description: PostDeploymentEvaluations is a list of all evaluations
to be performed during the post-deployment phase of the KeptnWorkload.
Expand Down
12 changes: 12 additions & 0 deletions .github/scripts/.helm-tests/lifecycle-with-certs/result.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6874,6 +6874,12 @@ spec:
app:
description: AppName is the name of the KeptnApp containing the KeptnWorkload.
type: string
metadata:
additionalProperties:
type: string
description: Metadata contains additional key-value pairs for contextual
information.
type: object
postDeploymentEvaluations:
description: PostDeploymentEvaluations is a list of all evaluations
to be performed during the post-deployment phase of the KeptnWorkload.
Expand Down Expand Up @@ -7335,6 +7341,12 @@ spec:
app:
description: AppName is the name of the KeptnApp containing the KeptnWorkload.
type: string
metadata:
additionalProperties:
type: string
description: Metadata contains additional key-value pairs for contextual
information.
type: object
postDeploymentEvaluations:
description: PostDeploymentEvaluations is a list of all evaluations
to be performed during the post-deployment phase of the KeptnWorkload.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ func TestKeptnWorkload(t *testing.T) {
KeptnWorkloadSpec: klcv1beta1.KeptnWorkloadSpec{
Version: "version",
AppName: "app",
Metadata: map[string]string{
"foo": "bar",
},
},
WorkloadName: "workload",
PreviousVersion: "prev",
Metadata: map[string]string{
"foo": "bar",
},
},
}, workloadVersion)
}

0 comments on commit 34f2619

Please sign in to comment.