Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Migrate to operator-sdk 1.2 #351

Merged
merged 47 commits into from
Jan 15, 2021
Merged

Migrate to operator-sdk 1.2 #351

merged 47 commits into from
Jan 15, 2021

Conversation

DTMad
Copy link
Member

@DTMad DTMad commented Dec 2, 2020

No description provided.

@DTMad DTMad requested a review from lrgar December 2, 2020 10:57
DTMad and others added 2 commits December 2, 2020 14:17
* starting webhook and bootstrapper with operator

* implemented liveness and readiness probes for operator and bootstrapper

* removed setting x-kubernetes-list-type
edited makefile :all to include all .go files in root directory
added comment to registerDebugInjectEndpoint
api/v1alpha1/oneagentapm_types.go Show resolved Hide resolved
@@ -295,3 +296,23 @@ func GetField(values map[string]string, key, defaultValue string) string {
}
return defaultValue
}

func GetPod(ctx context.Context, client client.Client, ns string) (*corev1.Pod, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd be careful regarding (I presume) copy/pasting code from third-party libraries and license.

Just do the client.Get(... pod) command in GetDeployment. The rest here is not relevant for us.

hack/boilerplate.go.txt Outdated Show resolved Hide resolved
main.go Outdated Show resolved Hide resolved
operator.go Outdated Show resolved Hide resolved
webhook_server.go Outdated Show resolved Hide resolved
webhook_bootstrapper.go Outdated Show resolved Hide resolved
r.logger.Error(err, "could not start health endpoint for operator")
}

if err = mgr.AddReadyzCheck("healthz", healthz.Ping); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean "readyz"?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@DTMad DTMad requested a review from lrgar January 12, 2021 13:39
@DTMad
Copy link
Member Author

DTMad commented Jan 12, 2021

This won't be merged before the release of v0.9.4

@DTMad DTMad merged commit ea6f228 into master Jan 15, 2021
@DTMad DTMad deleted the feature/MigrateToOperatorSDK-1-2 branch January 15, 2021 11:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants