Skip to content

Fix postgrelet pod failure #50

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 19, 2021

Conversation

LimKianAn
Copy link
Contributor

Please follow the steps in README.md.

@LimKianAn LimKianAn requested a review from eberlep January 15, 2021 23:41
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.2.5
controller-gen.kubebuilder.io/version: v0.3.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which version are we actually using? I have v0.2.5 locally, hence I commited a version of this file generated by the older version. IIRC, the Makefile references v0.2.5?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. We stick with what kubebuilder recommends.

@@ -46,7 +46,17 @@ The following steps will create a _Secret_ called `postgreslet`, and add all fil
As we only copy one file, the secret will contain only one key named `controlplane-kubeconfig` which will contain the control plane kube config.

```sh
make docker-build
make kind-load-image
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add docker-build as a dependency to the kind-load-image target in the Makefile?

@@ -24,6 +23,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
COPY external.yaml external.yaml
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a thought: Can we maybe rename that file? Something like operator.yaml? I am also tinking about using a subfolder?

So maybe... external/operator.yaml?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed! I will change that in #35 since we have svc-postgres-operator.yaml and crd-postgresql.yaml in that branch. What do you say?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds alright. But try not to put too many changes into #35. The bigger it gets, the harder it is to merge :-)

But since this is included in #35 anyway it's ok.

@@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: postgres-controller
newName: r.metal-stack.io/extensions/postgreslet
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is technically unrelated to this issue and should be a separate PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry! This was generated by make deploy.

@@ -21,5 +21,6 @@ spec:
name: https
- name: manager
args:
- "--metrics-addr=127.0.0.1:8080"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #48

@LimKianAn LimKianAn requested a review from eberlep January 18, 2021 13:23
@eberlep eberlep merged commit 9c8c97e into second_kubeconfig_as_secret Jan 19, 2021
@eberlep eberlep deleted the second_kubeconfig_as_secret_dev branch January 19, 2021 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants