Skip to content

Commit

Permalink
test: use registry.k8s.io/e2e-test-images/busybox:1.29-4 for e2e (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
aramase authored Feb 8, 2023
1 parent 1ceb617 commit 7b6caa6
Show file tree
Hide file tree
Showing 17 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion docs/sample/ingress-controller-tls/deployment-app-one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down
2 changes: 1 addition & 1 deletion docs/sample/ingress-controller-tls/deployment-app-two.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down
2 changes: 1 addition & 1 deletion examples/pod-identity/pod-inline-volume-pod-identity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down
2 changes: 1 addition & 1 deletion examples/sync-as-kubernetes-secret/deployment-synck8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
terminationGracePeriodSeconds: 0
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/framework/pod/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func Create(input CreateInput) *corev1.Pod {
Containers: []corev1.Container{
{
Name: "tester",
Image: "k8s.gcr.io/e2e-test-images/busybox:1.29",
Image: "registry.k8s.io/e2e-test-images/busybox:1.29-4",
ImagePullPolicy: corev1.PullIfNotPresent,
Command: []string{"/bin/sleep", "10000"},
VolumeMounts: []corev1.VolumeMount{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ spec:
objectName: key1
objectType: key
objectVersion: ""
tenantID: "tid" # the tenant ID of the KeyVault
```
tenantID: "tid" # the tenant ID of the KeyVault
```
- `Pod` yaml
```yaml
Expand All @@ -48,7 +48,7 @@ metadata:
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down Expand Up @@ -158,14 +158,14 @@ Not all steps need to be followed on the instructions for the aad-pod-identity p
labels:
aadpodidbinding: <AzureIdentityBinding Selector created from previous step>
```

7. Update [this sample deployment](https://raw.githubusercontent.com/Azure/secrets-store-csi-driver-provider-azure/master/examples/pod-identity/v1alpha1_secretproviderclass_pod_identity.yaml) to create a `SecretProviderClass` resource with `usePodIdentity: "true"` to provide Azure-specific parameters for the Secrets Store CSI driver.
Make sure to set `usePodIdentity` to `true`
```yaml
usePodIdentity: "true"
```

8. Deploy your app

```bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: "Service Principal"
linkTitle: "Service Principal"
weight: 3
description: >
Use a Service Principal to access Keyvault.
Use a Service Principal to access Keyvault.
---

<details>
Expand All @@ -22,7 +22,7 @@ spec:
parameters:
usePodIdentity: "false" # [OPTIONAL] if not provided, will default to "false"
keyvaultName: "kvname" # the name of the KeyVault
cloudName: "" # [OPTIONAL for Azure] if not provided, azure environment will default to AzurePublicCloud
cloudName: "" # [OPTIONAL for Azure] if not provided, azure environment will default to AzurePublicCloud
objects: |
array:
- |
Expand All @@ -34,7 +34,7 @@ spec:
objectType: key
objectVersion: ""
tenantID: "tid" # the tenant ID of the KeyVault
```
```
- `Pod` yaml
```yaml
Expand All @@ -46,7 +46,7 @@ metadata:
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
objectType: key
objectVersion: ""
tenantID: "tid" # the tenant ID of the KeyVault
```
```
- `Pod` yaml
```yaml
Expand All @@ -49,7 +49,7 @@ metadata:
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down Expand Up @@ -104,4 +104,4 @@ Before this step, you need to [enable system-assigned managed identity](https://
```

## Pros:
1. Supported on both Windows and Linux.
1. Supported on both Windows and Linux.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ spec:
objectName: key1
objectType: key
objectVersion: ""
tenantID: "tid" # the tenant ID of the KeyVault
```
tenantID: "tid" # the tenant ID of the KeyVault
```
- `Pod` yaml
```yaml
Expand All @@ -48,7 +48,7 @@ metadata:
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down Expand Up @@ -127,4 +127,4 @@ In AKS you can use the [User-assigned Kubelet managed identity](https://docs.mic

## Pros

1. Supported on both Windows and Linux.
1. Supported on both Windows and Linux.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
objectName: key1
objectType: key
objectVersion: ""
tenantID: "tid" # the tenant ID of the KeyVault
tenantID: "tid" # the tenant ID of the KeyVault
```
- `Pod` yaml
Expand All @@ -47,7 +47,7 @@ metadata:
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down
12 changes: 6 additions & 6 deletions website/content/en/configurations/set-env-var.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ spec:
secretObjects: # [OPTIONAL] SecretObject defines the desired state of synced K8s secret objects
- secretName: foosecret
type: Opaque
labels:
labels:
environment: "test"
data:
- objectName: secretalias # name of the mounted content to sync. this could be the object name or object alias
data:
- objectName: secretalias # name of the mounted content to sync. this could be the object name or object alias
key: username
parameters:
usePodIdentity: "false"
usePodIdentity: "false"
keyvaultName: "$KEYVAULT_NAME" # the name of the KeyVault
objects: |
array:
Expand All @@ -54,7 +54,7 @@ metadata:
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down Expand Up @@ -87,7 +87,7 @@ Once the secret is created, you may wish to set an ENV VAR in your deployment to
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down
6 changes: 3 additions & 3 deletions website/content/en/configurations/sync-multiple-versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ metadata:
spec:
provider: azure
parameters:
usePodIdentity: "true"
usePodIdentity: "true"
keyvaultName: "$KEYVAULT_NAME" # the name of the KeyVault
objects: |
array:
Expand Down Expand Up @@ -48,7 +48,7 @@ metadata:
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down Expand Up @@ -76,6 +76,6 @@ When you do this, the provider will treat the object name/alias as a folder and
{{% alert title="NOTE" color="warning" %}}

- There may be fewer than `objectVersionHistory` versions synced. For instance if you specify 5 and the secret only has 3 versions, then only 3 versions will be synced.
- Disabled versions of the secret are ignored.
- Disabled versions of the secret are ignored.

{{% /alert %}}
12 changes: 6 additions & 6 deletions website/content/en/configurations/sync-with-k8s-secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ spec:
secretObjects: # [OPTIONAL] SecretObject defines the desired state of synced K8s secret objects
- secretName: foosecret
type: Opaque
labels:
labels:
environment: "test"
data:
- objectName: secretalias # name of the mounted content to sync. this could be the object name or object alias
data:
- objectName: secretalias # name of the mounted content to sync. this could be the object name or object alias
key: username
parameters:
usePodIdentity: "true"
usePodIdentity: "true"
keyvaultName: "$KEYVAULT_NAME" # the name of the KeyVault
objects: |
array:
Expand All @@ -54,7 +54,7 @@ metadata:
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down Expand Up @@ -96,7 +96,7 @@ kind: SecretProviderClass
metadata:
name: my-provider
spec:
provider: azure
provider: azure
secretObjects: # [OPTIONAL] SecretObject defines the desired state of synced K8s secret objects
- data:
- key: username # data field to populate
Expand Down
6 changes: 3 additions & 3 deletions website/content/en/demos/standard-walkthrough/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ spec:
objects: |
array:
- |
objectName: secret1
objectName: secret1
objectType: secret
objectVersion: ""
tenantID: "${TENANT_ID}"
Expand All @@ -120,7 +120,7 @@ metadata:
spec:
containers:
- name: busybox
image: k8s.gcr.io/e2e-test-images/busybox:1.29
image: registry.k8s.io/e2e-test-images/busybox:1.29-4
command:
- "/bin/sleep"
- "10000"
Expand Down Expand Up @@ -155,7 +155,7 @@ If successful, the output will be similar to:
```bash
kubectl exec busybox-secrets-store-inline -- ls /mnt/secrets-store/
secret1

kubectl exec busybox-secrets-store-inline -- cat /mnt/secrets-store/secret1
Hello!
```

0 comments on commit 7b6caa6

Please sign in to comment.