-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 freshpod as a new addon #2423
Conversation
Can one of the admins verify this patch? |
Haha I had the same patch sitting on my fork. :) Thanks @kairen. |
# limitations under the License. | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we make this a ReplicaSet, I believe we don't need Deployment’s rollout/rollback semantics here because add-on manager manages it exclusively.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I have been changed to RC because other add-ons also use this kind of resource.
pkg/minikube/assets/addons.go
Outdated
@@ -233,6 +233,13 @@ var Addons = map[string]*Addon{ | |||
"registry-creds-rc.yaml", | |||
"0640"), | |||
}, false, "registry-creds"), | |||
"freshpod": NewAddon([]*BinDataAsset{ | |||
NewBinDataAsset( | |||
"deploy/addons/freshpod/freshpod-dp.yaml", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you keep it as Deployment, -deploy
might be a better suffix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No problem!! I'll change to RC.
template: | ||
metadata: | ||
labels: | ||
version: v0.0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks like we don't have a tagged version. I'll make sure to tag one and update the v0.0.1 image in-place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I have been removed from YAML file.
containers: | ||
- name: freshpod | ||
image: gcr.io/google-samples/freshpod:v0.0.1 | ||
imagePullPolicy: IfNotPresent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like other addons also use imagePullPolicy: IfNotPresent
, I'm not sure why/if this is the preferred option. It doesn't matter much anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'm referencing other addons to add this option, so I'm also not sure why this option to need because the addon doc not mention.
addonmanager.kubernetes.io/mode: Reconcile | ||
template: | ||
metadata: | ||
labels: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need kubernetes.io/minikube-addons: freshpod
here as well, so that the Pods get this label, too?
The documentation is unclear.
This may be unrelated: I checked our your branch and ran
|
Hi, @ahmetb If you want to build the latest version for Localkube, you need manually run |
/lgtm |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ahmetb, kairen Assign the PR to them by writing The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/assign @r2d4 |
@minikube-bot ok to test |
Thanks! |
The commit added a new addon from #2420. This is very helpful for me to develop CRD operator on Minikube.