pkg/ansible: Adding paramconv and kubeconfig to ansible operator.#471
Conversation
9f01c6f to
6e73bbd
Compare
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
| // Based on https://github.com/iancoleman/strcase |
There was a problem hiding this comment.
Probably don't need the last line. We already have this license in the SDK
https://github.com/operator-framework/operator-sdk/blob/master/commands/operator-sdk/main.go#L1-L13
|
LGTM after nit. |
6e73bbd to
ca3d1a3
Compare
| "strings" | ||
| ) | ||
|
|
||
| var numberSequence = regexp.MustCompile(`([a-zA-Z])(\d+)([a-zA-Z]?)`) |
There was a problem hiding this comment.
our codebase uses var block consistently. maybe we should do it here too?
e. g
var (
numberSequence = ...
numberReplacement= ...
wordMapping = ...
)ca3d1a3 to
de44e56
Compare
| if req.Method == http.MethodPost { | ||
| logrus.Info("injecting owner reference") | ||
| dump, _ := httputil.DumpRequest(req, false) | ||
| fmt.Println(string(dump)) |
There was a problem hiding this comment.
why printing the dump file here?
| owner := metav1.OwnerReference{} | ||
| json.Unmarshal(authString, &owner) | ||
|
|
||
| logrus.Printf("%#+v", owner) |
There was a problem hiding this comment.
is this a debugging statement or actual log? If using actual log, we probably should use logrus.Infof().
| http.Error(w, m, http.StatusInternalServerError) | ||
| return | ||
| } | ||
| logrus.Printf(string(newBody)) |
There was a problem hiding this comment.
same here. is this a debugging statement or normal logging. If normal logging, we should use logrus.Infof().
de44e56 to
0205fb6
Compare
|
lgtm |
operator-framework#566) * pkg/ansible: Adding paramconv and kubeconfig to ansible operator. (operator-framework#471) * Adding runner package. (operator-framework#472) * pkg/ansible: Adding ansible operator controller and events package (operator-framework#473) * make ansible task log outputs more readable (operator-framework#545)
No description provided.