Skip to content

Commit 3a05de7

Browse files
committed
docs: remove unused AWSClusterStaticIdentity kustomization
1 parent 082b3e3 commit 3a05de7

File tree

8 files changed

+8
-102
lines changed

8 files changed

+8
-102
lines changed

README.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -37,38 +37,6 @@ You can just update the image in the webhook Deployment on an existing KIND clus
3737
make KIND_CLUSTER_NAME=<> dev.update-webhook-image-on-kind
3838
```
3939

40-
If creating an AWS cluster using the example files, you will also need to create a secret with your AWS credentials:
41-
42-
```shell
43-
kubectl apply --server-side -f - <<EOF
44-
apiVersion: v1
45-
kind: Secret
46-
metadata:
47-
name: "aws-quick-start-creds"
48-
namespace: capa-system
49-
stringData:
50-
AccessKeyID: ${AWS_ACCESS_KEY_ID}
51-
SecretAccessKey: ${AWS_SECRET_ACCESS_KEY}
52-
SessionToken: ${AWS_SESSION_TOKEN}
53-
EOF
54-
```
55-
56-
If you are using an `AWS_PROFILE` to log in use the following:
57-
58-
```shell
59-
kubectl apply --server-side -f - <<EOF
60-
apiVersion: v1
61-
kind: Secret
62-
metadata:
63-
name: "aws-quick-start-creds"
64-
namespace: capa-system
65-
stringData:
66-
AccessKeyID: $(aws configure get aws_access_key_id)
67-
SecretAccessKey: $(aws configure get aws_secret_access_key)
68-
SessionToken: $(aws configure get aws_session_token)
69-
EOF
70-
```
71-
7240
Generate a cluster definition from the file specified in the `--from` flag
7341
and apply the generated resource to actually create the cluster in the API.
7442
For example, the following command will create a Docker cluster with Cilium CNI applied via the Helm addon provider:

examples/capi-quick-start/aws-cluster-calico-crs.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,3 @@ spec:
5353
- class: default-worker
5454
name: md-0
5555
replicas: ${WORKER_MACHINE_COUNT}
56-
---
57-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
58-
kind: AWSClusterStaticIdentity
59-
metadata:
60-
labels:
61-
cluster.x-k8s.io/provider: aws
62-
name: ${CLUSTER_NAME}
63-
spec:
64-
allowedNamespaces:
65-
list:
66-
- default
67-
secretRef: aws-quick-start-creds

examples/capi-quick-start/aws-cluster-calico-helm-addon.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,3 @@ spec:
5353
- class: default-worker
5454
name: md-0
5555
replicas: ${WORKER_MACHINE_COUNT}
56-
---
57-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
58-
kind: AWSClusterStaticIdentity
59-
metadata:
60-
labels:
61-
cluster.x-k8s.io/provider: aws
62-
name: ${CLUSTER_NAME}
63-
spec:
64-
allowedNamespaces:
65-
list:
66-
- default
67-
secretRef: aws-quick-start-creds

examples/capi-quick-start/aws-cluster-cilium-crs.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,3 @@ spec:
5353
- class: default-worker
5454
name: md-0
5555
replicas: ${WORKER_MACHINE_COUNT}
56-
---
57-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
58-
kind: AWSClusterStaticIdentity
59-
metadata:
60-
labels:
61-
cluster.x-k8s.io/provider: aws
62-
name: ${CLUSTER_NAME}
63-
spec:
64-
allowedNamespaces:
65-
list:
66-
- default
67-
secretRef: aws-quick-start-creds

examples/capi-quick-start/aws-cluster-cilium-helm-addon.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,3 @@ spec:
5353
- class: default-worker
5454
name: md-0
5555
replicas: ${WORKER_MACHINE_COUNT}
56-
---
57-
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
58-
kind: AWSClusterStaticIdentity
59-
metadata:
60-
labels:
61-
cluster.x-k8s.io/provider: aws
62-
name: ${CLUSTER_NAME}
63-
spec:
64-
allowedNamespaces:
65-
list:
66-
- default
67-
secretRef: aws-quick-start-creds

hack/examples/bases/aws/AWSClusterStaticIdentity.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

hack/examples/bases/aws/kustomization.yaml.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ resources:
99
- ./calico/helm-addon
1010
- ./cilium/crs
1111
- ./cilium/helm-addon
12-
- AWSClusterStaticIdentity.yaml
1312

1413
namePrefix: aws-
1514

hack/examples/sync.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,32 +67,32 @@ kustomize build ./hack/examples |
6767
)' >"${EXAMPLE_CLUSTERCLASSES_DIR}/aws-cluster-class.yaml"
6868
) \
6969
>(
70-
gojq --yaml-input --yaml-output 'select((.metadata.labels["cluster.x-k8s.io/provider"] == "aws"
70+
gojq --yaml-input --yaml-output 'select(.metadata.labels["cluster.x-k8s.io/provider"] == "aws"
7171
and .kind == "Cluster"
7272
and .spec.topology.variables[0].value.addons.cni.provider == "Calico"
7373
and .spec.topology.variables[0].value.addons.cni.strategy == "ClusterResourceSet"
74-
) or .kind == "AWSClusterStaticIdentity")' >"${EXAMPLE_CLUSTERS_DIR}/aws-cluster-calico-crs.yaml"
74+
)' >"${EXAMPLE_CLUSTERS_DIR}/aws-cluster-calico-crs.yaml"
7575
) \
7676
>(
77-
gojq --yaml-input --yaml-output 'select((.metadata.labels["cluster.x-k8s.io/provider"] == "aws"
77+
gojq --yaml-input --yaml-output 'select(.metadata.labels["cluster.x-k8s.io/provider"] == "aws"
7878
and .kind == "Cluster"
7979
and .spec.topology.variables[0].value.addons.cni.provider == "Calico"
8080
and .spec.topology.variables[0].value.addons.cni.strategy == "HelmAddon"
81-
) or .kind == "AWSClusterStaticIdentity")' >"${EXAMPLE_CLUSTERS_DIR}/aws-cluster-calico-helm-addon.yaml"
81+
)' >"${EXAMPLE_CLUSTERS_DIR}/aws-cluster-calico-helm-addon.yaml"
8282
) \
8383
>(
84-
gojq --yaml-input --yaml-output 'select((.metadata.labels["cluster.x-k8s.io/provider"] == "aws"
84+
gojq --yaml-input --yaml-output 'select(.metadata.labels["cluster.x-k8s.io/provider"] == "aws"
8585
and .kind == "Cluster"
8686
and .spec.topology.variables[0].value.addons.cni.provider == "Cilium"
8787
and .spec.topology.variables[0].value.addons.cni.strategy == "ClusterResourceSet"
88-
) or .kind == "AWSClusterStaticIdentity")' >"${EXAMPLE_CLUSTERS_DIR}/aws-cluster-cilium-crs.yaml"
88+
)' >"${EXAMPLE_CLUSTERS_DIR}/aws-cluster-cilium-crs.yaml"
8989
) \
9090
>(
91-
gojq --yaml-input --yaml-output 'select((.metadata.labels["cluster.x-k8s.io/provider"] == "aws"
91+
gojq --yaml-input --yaml-output 'select(.metadata.labels["cluster.x-k8s.io/provider"] == "aws"
9292
and .kind == "Cluster"
9393
and .spec.topology.variables[0].value.addons.cni.provider == "Cilium"
9494
and .spec.topology.variables[0].value.addons.cni.strategy == "HelmAddon"
95-
) or .kind == "AWSClusterStaticIdentity")' >"${EXAMPLE_CLUSTERS_DIR}/aws-cluster-cilium-helm-addon.yaml"
95+
)' >"${EXAMPLE_CLUSTERS_DIR}/aws-cluster-cilium-helm-addon.yaml"
9696
) \
9797
>/dev/null
9898

0 commit comments

Comments
 (0)