Skip to content
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

Add ability to install porter plugins #108

Merged
merged 37 commits into from
Jan 11, 2023
Merged
Show file tree
Hide file tree
Changes from 32 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
39960e4
wip
VinozzZ Jul 11, 2022
86bf3f3
wip
VinozzZ Aug 18, 2022
d5593b4
stuck in terminating
VinozzZ Aug 24, 2022
ecd0e68
working on clean up of pvc and pv
VinozzZ Sep 7, 2022
18f220c
proper cleanup using k8s GC
VinozzZ Sep 20, 2022
be5e684
only unset pv and pvc protection finalizers
VinozzZ Sep 22, 2022
0afbcc6
use owner reference for cleanup
VinozzZ Sep 27, 2022
8630c96
working except delete
VinozzZ Sep 29, 2022
6229344
make unit test to work
VinozzZ Sep 30, 2022
0d246f2
clean up
VinozzZ Sep 30, 2022
36c4803
rename isPluginInstall to isAgentConfig
VinozzZ Dec 1, 2022
b6ff802
Add AgentConfig CRD definition
VinozzZ Dec 5, 2022
e7b7c51
Create AgentConfig reconciler
VinozzZ Dec 5, 2022
0d2c0fe
Mount Plugin volumes in AgentAction reconciler
VinozzZ Dec 5, 2022
b1f4e6c
Add integration test for AgentConfig deletion
VinozzZ Dec 5, 2022
db360f2
Remove the kubernetes-plugin hack for running tests
VinozzZ Dec 5, 2022
69a167a
add test for the default plugin behavior
VinozzZ Dec 6, 2022
89f1ad6
allow users to override the default plugins
VinozzZ Dec 6, 2022
31ace8d
add test for createAgentAction in AgentConfigReconciler
VinozzZ Dec 6, 2022
d586b39
Add tests for AgentConfigSpec
VinozzZ Dec 6, 2022
989f0e7
address comments
VinozzZ Dec 7, 2022
5ac5ff1
refactor AgentConfig Reconciler for code readability
VinozzZ Dec 7, 2022
9b09419
implement AgentConfig.Status.Ready to signalling dependency between a…
VinozzZ Dec 9, 2022
957f658
working out the default plugin behavior
VinozzZ Dec 9, 2022
0d61308
implement map structure for plugins config
VinozzZ Dec 19, 2022
b8181fa
add docs
VinozzZ Dec 20, 2022
c1a8bc0
make sure renaming only happen when a agent config has not completed
VinozzZ Dec 20, 2022
bf98102
update mongodb helm chart default version to v12.1.16
VinozzZ Dec 20, 2022
df5fead
make sure only agent config readiness is merged correctly
VinozzZ Dec 20, 2022
bfc95c3
add comments for how plugins field is merged
VinozzZ Dec 22, 2022
df15f3f
allow users to define url or mirror
VinozzZ Dec 28, 2022
211e9a4
fix doc
VinozzZ Jan 10, 2023
670e17c
address comments
VinozzZ Jan 11, 2023
20975c3
merge main
VinozzZ Jan 11, 2023
33b3a84
fix default value for AgentConfig.Status.Ready
VinozzZ Jan 11, 2023
dbfd1d9
fix testdata
VinozzZ Jan 11, 2023
f733fe2
add kubernete-plugin as the default plugin in installer
VinozzZ Jan 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions api/v1/agentaction_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ func (a *AgentAction) GetRetryLabelValue() string {
return getRetryLabelValue(a.Annotations)
}

// CreatedByAgentConfig checks if an AgentAction is running on behalf of an agent config.
func (a *AgentAction) CreatedByAgentConfig() bool {
for _, ref := range a.GetOwnerReferences() {
if ref.Kind == KindAgentConfig {
return true
}
}

return false
}

// SetRetryAnnotation flags the resource to retry its last operation.
func (a *AgentAction) SetRetryAnnotation(retry string) {
if a.Annotations == nil {
Expand Down
Loading