Giter VIP home page Giter VIP logo

Comments (4)

chanwit avatar chanwit commented on May 24, 2024 1

It's just for testing. Please leave it as is.

from tofu-controller.

dgem avatar dgem commented on May 24, 2024

Looking at the chart helpers, it looks like the ultimate default is derived from the chart name:

tf-controller.serviceAccountName

{{- define "tf-controller.serviceAccountName" -}}
...
{{- default (include "tf-controller.fullname" .) .Values.serviceAccount.name }}
...

tf-controller.fullname

{{- define "tf-controller.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
...

It looks to me like, when the rename of the chart happens it should take care of this SA name.

However the runner SA doesn't follow this, instead having a hard coded default value of tf-runner:

{{- define "tf-controller.runner.serviceAccountName" -}}
...
{{- default "tf-runner" .Values.runner.serviceAccount.name }}
...

So, from what I can see, when/if the chart is renamed from tf-controller to tofu-controller, it should propagate though to the controller's SA.

The runner SA, current default tf-runner, won't be affected by the chart rename.
For consitency, should it be tofu-runner, as opposed to tf-runner?

from tofu-controller.

ilithanos avatar ilithanos commented on May 24, 2024

@chanwit I'm not sure I follow this issue either, as currently it defaults to tf-runner already if it's left blank.

Is this issue mainly for the testing you did of the coderabbit ai reviewer? Or is it to change the default values.yaml to explicitly state the service account name?

from tofu-controller.

chanwit avatar chanwit commented on May 24, 2024

The results from Code Rabbit are not very impressive. We won't adopt this for now.

from tofu-controller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.