diff --git a/installers/kubectl/postgres-operator-ocp311.yml b/installers/kubectl/postgres-operator-ocp311.yml index cdf84b58a6..056d56b3a3 100644 --- a/installers/kubectl/postgres-operator-ocp311.yml +++ b/installers/kubectl/postgres-operator-ocp311.yml @@ -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 diff --git a/pkg/apis/crunchydata.com/v1/doc.go b/pkg/apis/crunchydata.com/v1/doc.go index 6ddbaadbf4..dea8a446da 100644 --- a/pkg/apis/crunchydata.com/v1/doc.go +++ b/pkg/apis/crunchydata.com/v1/doc.go @@ -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 @@ -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 @@ -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" @@ -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 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 https://www.crunchydata.com/ - Consumes: - - application/json + Consumes: + - application/json - Produces: - - application/json + Produces: + - application/json swagger:meta */ @@ -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. -*/ +*/ \ No newline at end of file