Skip to content

Commit

Permalink
updated typo and formatting error
Browse files Browse the repository at this point in the history
  • Loading branch information
ValClarkson committed Jan 18, 2023
1 parent b1211d1 commit 7f01f12
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 29 deletions.
2 changes: 1 addition & 1 deletion installers/kubectl/postgres-operator-ocp311.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ spec:
restartPolicy: Never
containers:
- name: pgo-deploy
image: registry.developers.crunchydata.com/crunchydata/pgo-deployer:ubi8-
image: registry.developers.crunchydata.com/crunchydata/pgo-deployer:ubi8-4.7.9
imagePullPolicy: IfNotPresent
env:
- name: DEPLOY_ACTION
Expand Down
54 changes: 26 additions & 28 deletions pkg/apis/crunchydata.com/v1/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Crunchy PostgreSQL Operator API
The Crunchy PostgreSQL Operator API defines HTTP(S) interactions with the Crunchy PostgreSQL Operator.
## Direct API Calls
The API can also be accessed by interacting directly with the API server. This
Expand All @@ -14,6 +15,7 @@ that includes the content type and the `--insecure` flag. These flags will be
the same for all of your interactions with the API server and can be seen in the
following examples.
###### Get API Server Version
The most basic example of this interaction is getting the version of the API
Expand Down Expand Up @@ -50,15 +52,15 @@ cluster.
```
curl --cacert $PGO_CA_CERT --key $PGO_CLIENT_KEY --cert $PGO_CA_CERT -u \
admin:examplepassword -H "Content-Type:application/json" --insecure -X \
POST --data \
'{"ClientVersion":"4.7.9",
"Namespace":"pgouser1",
"Name":"mycluster",
POST --data \
'{"ClientVersion":"4.7.9",
"Namespace":"pgouser1",
"Name":"mycluster",
$PGO_APISERVER_URL/clusters
```
###### Show and Delete Cluster
The last two examples show you how to `show` and `delete` a cluster. Notice
how instead of passing `"Name":"mycluster"` you pass `"Clustername":"mycluster"
Expand All @@ -69,39 +71,35 @@ show all of the clusters that are in the given namespace.
```
curl --cacert $PGO_CA_CERT --key $PGO_CLIENT_KEY --cert $PGO_CA_CERT -u \
admin:examplepassword -H "Content-Type:application/json" --insecure -X \
POST --data \
'{"ClientVersion":"4.7.9",
"Namespace":"pgouser1",
"Clustername":"mycluster"}' \
POST --data \
'{"ClientVersion":"4.7.9",
"Namespace":"pgouser1",
"Clustername":"mycluster"}' \
$PGO_APISERVER_URL/showclusters
```
```
curl --cacert $PGO_CA_CERT --key $PGO_CLIENT_KEY --cert $PGO_CA_CERT -u \
admin:examplepassword -H "Content-Type:application/json" --insecure -X \
POST --data \
'{"ClientVersion":"4.7.9",
"Namespace":"pgouser1",
"Clustername":"mycluster"}' \
POST --data \
'{"ClientVersion":"9",
"Namespace":"pgouser1",
"Clustername":"mycluster"}' \
$PGO_APISERVER_URL/clustersdelete
```
Schemes: http, https
BasePath: /
Version: 4.7.9
License: Apache 2.0 http://www.apache.org/licenses/LICENSE-2.0
Contact: Crunchy Data<info@crunchydata.com> https://www.crunchydata.com/
Schemes: http, https
BasePath: /
Version: 4.7.9
License: Apache 2.0 http://www.apache.org/licenses/LICENSE-2.0
Contact: Crunchy Data<info@crunchydata.com> https://www.crunchydata.com/
Consumes:
- application/json
Consumes:
- application/json
Produces:
- application/json
Produces:
- application/json
swagger:meta
*/
Expand All @@ -122,4 +120,4 @@ package v1
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.
*/
*/

0 comments on commit 7f01f12

Please # to comment.