-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce latest development changes (#17)
* Introduce latest development changes - allow to add the deploy key automatically, when a github token is provided - some refactoring Signed-off-by: Jens Schneider <[email protected]>
- Loading branch information
Showing
15 changed files
with
123 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package common | ||
|
||
import ( | ||
fluxutils "github.com/23technologies/23kectl/pkg/fluxutils" | ||
runclient "github.com/fluxcd/pkg/runtime/client" | ||
"k8s.io/cli-runtime/pkg/genericclioptions" | ||
"sigs.k8s.io/controller-runtime/pkg/client" | ||
) | ||
|
||
func CreateKubeClient(kubeconfig string) (*genericclioptions.ConfigFlags, *runclient.Options, client.WithWatch, error) { | ||
var kubeconfigArgs = genericclioptions.NewConfigFlags(false) | ||
kubeconfigArgs.KubeConfig = &kubeconfig | ||
|
||
var kubeclientOptions = new(runclient.Options) | ||
kubeClient, err := fluxutils.KubeClient(kubeconfigArgs, kubeclientOptions) | ||
|
||
if err != nil { | ||
return nil, nil, nil, err | ||
} | ||
|
||
return kubeconfigArgs, kubeclientOptions, kubeClient, nil | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ stringData: | |
global: | ||
deployment: | ||
virtualGarden: | ||
clusterIP: 10.0.0.1 | ||
clusterIP: 10.0.0.100 |
Oops, something went wrong.