-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial scaffolding for standalone pgAdmin implementation
Includes basic implementation for CRD, installation, and a dummy reconciliation loop. Reconciliation is feature-gated.
- Loading branch information
Showing
19 changed files
with
2,845 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/postgresclusters/generated/ | ||
/pgupgrades/generated/ | ||
/pgupgrades/generated/ | ||
/pgadmins/generated/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- generated/postgres-operator.crunchydata.com_pgadmins.yaml | ||
|
||
patches: | ||
# Remove the zero status field included by controller-gen@v0.8.0. These zero | ||
# values conflict with the CRD controller in Kubernetes before v1.22. | ||
# - https://github.com/kubernetes-sigs/controller-tools/pull/630 | ||
# - https://pr.k8s.io/100970 | ||
- target: | ||
group: apiextensions.k8s.io | ||
version: v1 | ||
kind: CustomResourceDefinition | ||
name: pgadmins.postgres-operator.crunchydata.com | ||
patch: |- | ||
- op: remove | ||
path: /status | ||
- target: | ||
group: apiextensions.k8s.io | ||
version: v1 | ||
kind: CustomResourceDefinition | ||
name: pgadmins.postgres-operator.crunchydata.com | ||
path: todos.yaml | ||
- target: | ||
group: apiextensions.k8s.io | ||
version: v1 | ||
kind: CustomResourceDefinition | ||
name: pgadmins.postgres-operator.crunchydata.com | ||
# The version below should match the version on the PostgresCluster CRD | ||
patch: |- | ||
- op: add | ||
path: "/metadata/labels" | ||
value: | ||
app.kubernetes.io/name: pgo | ||
app.kubernetes.io/version: latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- op: add | ||
path: /work | ||
value: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' | ||
- op: copy | ||
from: /work | ||
path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/properties/imagePullSecrets/items/properties/name/description | ||
- op: remove | ||
path: /work |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
972 changes: 972 additions & 0 deletions
972
config/crd/bases/postgres-operator.crunchydata.com_pgadmins.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.