Files
kubernetes/test/e2e/dra/test-driver/deploy/example/pod-inline-multiple.yaml
Patrick Ohly b51d68bb87 DRA: bump API v1alpha2 -> v1alpha3
This is in preparation for revamping the resource.k8s.io completely. Because
there will be no support for transitioning from v1alpha2 to v1alpha3, the
roundtrip test data for that API in 1.29 and 1.30 gets removed.

Repeating the version in the import name of the API packages is not really
required. It was done for a while to support simpler grepping for usage of
alpha APIs, but there are better ways for that now. So during this transition,
"resourceapi" gets used instead of "resourcev1alpha3" and the version gets
dropped from informer and lister imports. The advantage is that the next bump
to v1beta1 will affect fewer source code lines.

Only source code where the version really matters (like API registration)
retains the versioned import.
2024-07-21 17:28:13 +02:00

47 lines
868 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: pause-claim-parameters
namespace: default
data:
a: b
---
apiVersion: resource.k8s.io/v1alpha3
kind: ResourceClaimTemplate
metadata:
name: pause-template
namespace: default
spec:
metadata:
labels:
app: inline-resource
spec:
resourceClassName: example
parametersRef:
kind: ConfigMap
name: pause-claim-parameters
---
apiVersion: v1
kind: Pod
metadata:
name: pause
labels:
name: pause
spec:
containers:
- name: pause1
image: "registry.k8s.io/pause:3.6"
resources:
claims:
- name: resource1
- name: pause2
image: "registry.k8s.io/pause:3.6"
resources:
claims:
- name: resource2
resourceClaims:
- name: resource1
resourceClaimTemplateName: pause-template
- name: resource2
resourceClaimTemplateName: pause-template