Skip to content

Commit

Permalink
doc: clarify secret conversion
Browse files Browse the repository at this point in the history
Signed-off-by: yue9944882 <[email protected]>
  • Loading branch information
yue9944882 committed Feb 25, 2022
1 parent ae3eef1 commit d84b5d5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 8 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ api-gateway solution:
## Image

```shell
$ docker pull oamdev/cluster-gateway:v1.1.8 # Or other newer tags
$ docker pull oamdev/cluster-gateway:v1.1.12 # Or other newer tags
```

## Documentation

- __Run Local__: https://github.com/oam-dev/cluster-gateway/blob/master/docs/local-run.md
- __Run locally__: https://github.com/oam-dev/cluster-gateway/blob/master/docs/local-run.md
- __Sample cluster-gateway converting secret__:
- __ServiceAccountToken type secret__: https://github.com/oam-dev/cluster-gateway/blob/master/hack/samples/cluster-gateway-secret-serviceaccount-token.yaml
- __X.509 certificate type secret__: https://github.com/oam-dev/cluster-gateway/blob/master/hack/samples/cluster-gateway-secret-x509.yaml

### Performance

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
apiVersion: v1
data:
ca.crt: <...>
namespace: a3ViZS1zeXN0ZW0=
token: <...>
endpoint: "https://127.0.0.1:6443"
kind: Secret
metadata:
labels:
cluster.core.oam.dev/cluster-credential-type: ServiceAccountToken
cluster.core.oam.dev/cluster-endpoint-type: Direct
name: foo1
namespace: open-cluster-management-credentials
type: Opaque
type: Opaque
data:
ca.crt: <...>
token: <...>
endpoint: "https://127.0.0.1:6443" # Optional upon ClusterProxy endpoint type
14 changes: 14 additions & 0 deletions hack/samples/cluster-gateway-secret-x509.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Secret
metadata:
labels:
cluster.core.oam.dev/cluster-credential-type: X509Certificate
cluster.core.oam.dev/cluster-endpoint-type: Direct
name: foo1
namespace: open-cluster-management-credentials
type: Opaque
data:
ca.crt: <...>
tls.crt: <...>
tls.key: <...>
endpoint: "https://127.0.0.1:6443" # Optional upon ClusterProxy endpoint type

0 comments on commit d84b5d5

Please sign in to comment.