Skip to content

Commit

Permalink
NO-JIRA temporary fix missing application crd in test
Browse files Browse the repository at this point in the history
waiting for datreeio/CRDs-catalog#276 merge
  • Loading branch information
jCOTINEAU committed Feb 23, 2024
1 parent 11203fd commit 9e9b69a
Show file tree
Hide file tree
Showing 6 changed files with 676 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .cirrus/unit_helm_compatibility_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ echo 'Running unit compatibility tests for Kubernetes version' $KUBE_VERSION
for file in "$STATIC_TEST_FOLDER"/*; do
TEST_CASE_NAME=$(basename "$file")
echo 'Entering test for' $TEST_CASE_NAME
helm template --kube-version $KUBE_VERSION --dry-run --debug -f "$file" $TEST_CASE_NAME . | kubeconform --kubernetes-version $KUBE_VERSION --summary --strict
helm template --kube-version $KUBE_VERSION --dry-run --debug -f "$file" $TEST_CASE_NAME . | kubeconform --kubernetes-version $KUBE_VERSION --summary --strict -schema-location default -schema-location "../../tests/test-crds/app.k8s.io/application_v1beta1.json"
echo 'Ending test for' $TEST_CASE_NAME
done
2 changes: 1 addition & 1 deletion lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ chart-repos:
- bitnami=https://charts.bitnami.com/bitnami
- bitnami-pre2022=https://raw.githubusercontent.com/bitnami/charts/pre-2022/bitnami
- ingress-nginx=https://kubernetes.github.io/ingress-nginx
helm-extra-args: --timeout 600s
helm-extra-args: --timeout 600s --set application_uid=notNull
2 changes: 1 addition & 1 deletion test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ chart-repos:
- bitnami=https://charts.bitnami.com/bitnami
- bitnami-pre2022=https://raw.githubusercontent.com/bitnami/charts/pre-2022/bitnami
- ingress-nginx=https://kubernetes.github.io/ingress-nginx
helm-extra-args: --timeout 600s
helm-extra-args: --timeout 600s --set application_uid=notNull
158 changes: 158 additions & 0 deletions tests/test-crds/app.k8s.io/application_v1alpha1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
{
"description": "Application is the Schema for the applications API",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"type": "object"
},
"spec": {
"description": "ApplicationSpec defines the specification for an Application.",
"properties": {
"assemblyPhase": {
"type": "string"
},
"componentKinds": {
"description": "ComponentGroupKinds is a list of Kinds for Application's components (e.g. Deployments, Pods, Services, CRDs). It can be used in conjunction with the Application's Selector to list or watch the Applications components.",
"items": {
"description": "GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types",
"properties": {
"group": {
"type": "string"
},
"kind": {
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"description": {
"type": "string"
},
"info": {
"description": "Info contains human readable key,value pairs for the Application.",
"items": {
"description": "InfoItem is a human readable key,value pair containing important information about how to access the Application.",
"properties": {
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"value": {
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"keywords": {
"items": {
"type": "string"
},
"type": "array"
},
"links": {
"items": {
"properties": {
"description": {
"type": "string"
},
"url": {
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"maintainers": {
"items": {
"properties": {
"email": {
"type": "string"
},
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"notes": {
"type": "string"
},
"owners": {
"items": {
"type": "string"
},
"type": "array"
},
"selector": {
"properties": {
"matchExpressions": {
"items": {
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string"
},
"values": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object",
"additionalProperties": false
},
"type": "array"
},
"matchLabels": {
"type": "object"
}
},
"type": "object",
"additionalProperties": false
},
"type": {
"type": "string"
},
"version": {
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"status": {
"properties": {
"observedGeneration": {
"type": "integer"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}
Loading

0 comments on commit 9e9b69a

Please sign in to comment.