senthilrch / kube-fledged

A kubernetes operator for creating and managing a cache of container images directly on the cluster worker nodes, so application pods start almost instantly
Apache License 2.0
1.26k stars 119 forks source link

Expose helm parameters in operator's custom resource #109

Closed senthilrch closed 3 years ago

senthilrch commented 3 years ago

Helm parameters that are configurable by the user should be exposed in the helm operator's custom resource. Propose to update the custom resource as follows:-

apiVersion: charts.helm.kubefledged.io/v1alpha2
kind: KubeFledged
metadata:
  name: kube-fledged
  namespace: kubefledged-operator
spec:
  # Defaults defined in <project_dir>/helm-charts/kubefledged/values.yaml
  controllerReplicaCount: 1
  webhookServerReplicaCount: 1
  image:
    kubefledgedControllerRepository: docker.io/senthilrch/kubefledged-controller
    kubefledgedCRIClientRepository: docker.io/senthilrch/kubefledged-cri-client
    kubefledgedWebhookServerRepository: docker.io/senthilrch/kubefledged-webhook-server
    pullPolicy: Always
  args:
    controllerLogLevel: INFO
    controllerImagePullDeadlineDuration: 5m
    controllerImageCacheRefreshFrequency: 15m
    controllerImagePullPolicy: IfNotPresent
    webhookServerLogLevel: INFO
    webhookServerCertFile: /var/run/secrets/webhook-server/tls.crt
    webhookServerKeyFile: /var/run/secrets/webhook-server/tls.key
    webhookServerPort: 443
  nameOverride: ""
  fullnameOverride: ""