Skip to content
This repository has been archived by the owner on Sep 22, 2020. It is now read-only.

Direct all creation of TypeMeta object to func TypeMeta(kind, apiVersion string) in meta package (GITOPS-81) #45

Merged
merged 3 commits into from
Mar 21, 2020

Conversation

ishitasequeira
Copy link

@ishitasequeira ishitasequeira commented Mar 20, 2020

This change tektoncd/triggers#332 will cause us to rework the API groups for our resources.

In order to simplify supporting the new v1beta1 and types, we should indirect through meta.TypeMeta which will simplify the task of adapting if we need to support old and new for a period.
Fixes https://issues.redhat.com/browse/GITOPS-81

@ishitasequeira ishitasequeira changed the title Gitops issue 81 Gitops issue 81: In order to simplify supporting the new v1beta1 and types, we should indirect through meta.TypeMeta which will simplify the task of adapting if we need to support old and new for a period. Mar 20, 2020
@ishitasequeira ishitasequeira changed the title Gitops issue 81: In order to simplify supporting the new v1beta1 and types, we should indirect through meta.TypeMeta which will simplify the task of adapting if we need to support old and new for a period. Gitops issue 81: In order to simplify supporting the new v1beta1 and types, indirect through meta.TypeMeta Mar 20, 2020
@wtam2018 wtam2018 changed the title Gitops issue 81: In order to simplify supporting the new v1beta1 and types, indirect through meta.TypeMeta Direct all creation of TypeMeta object to func TypeMeta(kind, apiVersion string) v1.TypeMeta (GITOPS-81) Mar 20, 2020
@wtam2018 wtam2018 changed the title Direct all creation of TypeMeta object to func TypeMeta(kind, apiVersion string) v1.TypeMeta (GITOPS-81) Direct all creation of TypeMeta object to func TypeMeta(kind, apiVersion string) in meta package (GITOPS-81) Mar 20, 2020
@wtam2018 wtam2018 merged commit 69556ea into bootstrap Mar 21, 2020
@wtam2018 wtam2018 deleted the gitops-issue-81 branch March 21, 2020 00:05
bigkevmcd pushed a commit that referenced this pull request May 15, 2020
…ion string) in meta package (GITOPS-81) (#45)

* made  required changes for the TypeMeta value to go via the meta.TypeMeta function
Coauthored by @bigkevmcd <kmcdermo@redhat.com>

* Un-captialized package local variable pipelineTypeMeta

* * Refactor to reuse package local var
* Rename and not to use "createXXX" as var names

Co-authored-by: William Tam <email.wtam@gmail.com>
wtam2018 added a commit that referenced this pull request May 25, 2020
…ion string) in meta package (GITOPS-81) (#45)

* made  required changes for the TypeMeta value to go via the meta.TypeMeta function
Coauthored by @bigkevmcd <kmcdermo@redhat.com>

* Un-captialized package local variable pipelineTypeMeta

* * Refactor to reuse package local var
* Rename and not to use "createXXX" as var names

Co-authored-by: William Tam <email.wtam@gmail.com>
wtam2018 added a commit that referenced this pull request May 26, 2020
…ion string) in meta package (GITOPS-81) (#45)

* made  required changes for the TypeMeta value to go via the meta.TypeMeta function
Coauthored by @bigkevmcd <kmcdermo@redhat.com>

* Un-captialized package local variable pipelineTypeMeta

* * Refactor to reuse package local var
* Rename and not to use "createXXX" as var names

Co-authored-by: William Tam <email.wtam@gmail.com>
wtam2018 added a commit that referenced this pull request May 27, 2020
…ion string) in meta package (GITOPS-81) (#45)

* made  required changes for the TypeMeta value to go via the meta.TypeMeta function
Coauthored by @bigkevmcd <kmcdermo@redhat.com>

* Un-captialized package local variable pipelineTypeMeta

* * Refactor to reuse package local var
* Rename and not to use "createXXX" as var names

Co-authored-by: William Tam <email.wtam@gmail.com>
wtam2018 added a commit that referenced this pull request Jun 17, 2020
…ion string) in meta package (GITOPS-81) (#45)

* made  required changes for the TypeMeta value to go via the meta.TypeMeta function
Coauthored by @bigkevmcd <kmcdermo@redhat.com>

* Un-captialized package local variable pipelineTypeMeta

* * Refactor to reuse package local var
* Rename and not to use "createXXX" as var names

Co-authored-by: William Tam <email.wtam@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants