Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* support for exposing services (using expose controller) by adding element to CRD * refactor exposecontroller logic out of commands * An example of an app that uses the exposing services feature is https://github.com/jenkins-x-apps/jx-app-grafana - specifically see https://github.com/jenkins-x-apps/jx-app-grafana/blob/master/charts/jx-app-grafana/values.yaml#L1-L2 and https://github.com/jenkins-x-apps/jx-app-grafana/blob/master/charts/jx-app-grafana/templates/app.yaml
- Loading branch information
Showing
26 changed files
with
973 additions
and
251 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,20 @@ | ||
package certmanager | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/jenkins-x/jx/pkg/kube" | ||
"k8s.io/client-go/kubernetes" | ||
) | ||
|
||
// CopyCertmanagerResources copies certmanager resources to the targetNamespace | ||
func CopyCertmanagerResources(targetNamespace string, ic kube.IngressConfig, kubeClient kubernetes.Interface) error { | ||
if ic.TLS { | ||
err := kube.CleanCertmanagerResources(kubeClient, targetNamespace, ic) | ||
if err != nil { | ||
return fmt.Errorf("failed to create certmanager resources in target namespace %s: %v", targetNamespace, err) | ||
} | ||
} | ||
|
||
return nil | ||
} |
141 changes: 141 additions & 0 deletions
141
pkg/client/clientset/versioned/typed/jenkins.io/v1/app.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.