Skip to content

Commit

Permalink
Add some foiles for code gen.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendandburns committed Mar 26, 2019
1 parent a998a6d commit 510c6c6
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ supported versions of Kubernetes clusters.

#### Compatibility matrix

| | Kubernetes 1.10 |
|------------------|-----------------|
| | Kubernetes 1.10 | Kubernetes 1.13 |
|------------------|-----------------|-----------------|
| client 0.1.0a1 ||
|------------------|-----------------|-----------------|
| client 0.2.0a1 | | ✓

Key:

Expand All @@ -46,6 +48,17 @@ Key:
* `-` The Kubernetes cluster has features the Go client library can't use
(additional API objects, etc).

### Generatic code

Check out `https://github.com/kubernetes-client/gen` into `${GEN_DIR}`.

Assume that `https://github.com/kubernetes-client/go` is in `${GO_DIR}`.

```sh
cd ${GO_DIR}/kubernetes
${GEN_DIR}/openapi/go.sh ./ ./settings
```

## Contributing

Please see [CONTRIBUTING.md](CONTRIBUTING.md) for instructions on how to contribute.
26 changes: 26 additions & 0 deletions kubernetes/settings
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

# Copyright 2015 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Kubernetes branch to get the OpenAPI spec from.
export KUBERNETES_BRANCH="release-1.13"

# client version for packaging and releasing. It can
# be different than SPEC_VERSION.
export CLIENT_VERSION="0.1.0"

# Name of the release package
export PACKAGE_NAME="kubernetes"

0 comments on commit 510c6c6

Please sign in to comment.