forked from konflux-ci/integration-service
-
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.
Add support for KCP virtual workpsace
- Loading branch information
1 parent
293f2f5
commit ae42b96
Showing
11 changed files
with
280 additions
and
33 deletions.
There are no files selected for viewing
Binary file not shown.
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,9 @@ | ||
apiVersion: apis.kcp.dev/v1alpha1 | ||
kind: APIBinding | ||
metadata: | ||
name: defaul | ||
spec: | ||
reference: | ||
workspace: | ||
path: root:users:xr:vd:rh-sso-hongweiliu:hongliu-dev-6 | ||
exportName: kubernetes |
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,13 @@ | ||
apiVersion: apis.kcp.dev/v1alpha1 | ||
kind: APIExport | ||
metadata: | ||
name: kubernetes | ||
spec: | ||
latestResourceSchemas: | ||
- rev-2154209.applications.appstudio.redhat.com | ||
- rev-2154219.pipelineruns.tekton.dev | ||
- rev-2154229.applicationsnapshots.appstudio.redhat.com | ||
- rev-2154239.integrationtestscenarios.appstudio.redhat.com | ||
- rev-2154259.applicationsnapshotenvironmentbindings.appstudio.redhat.com | ||
- rev-2154278.components.appstudio.redhat.com | ||
- rev-2154299.deployments.apps |
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,59 @@ | ||
# --- | ||
# apiVersion: v1 | ||
# kind: Namespace | ||
# metadata: | ||
# name: integration | ||
--- | ||
apiVersion: appstudio.redhat.com/v1alpha1 | ||
kind: Application | ||
metadata: | ||
annotations: | ||
name: application-sample | ||
namespace: default | ||
spec: | ||
description: application definition for petclinic-app | ||
displayName: petclinic | ||
origin: | ||
namespace: default | ||
workspace: root:users:xr:vd:rh-sso-hongweiliu:hongliu-dev-6 | ||
--- | ||
apiVersion: appstudio.redhat.com/v1alpha1 | ||
kind: IntegrationTestScenario | ||
metadata: | ||
namespace: default | ||
name: scenario-sample | ||
spec: | ||
application: application-sample | ||
bundle: 'quay.io/kpavic/test-bundle:component-pipeline-pass' | ||
pipeline: component-pipeline-pass | ||
origin: | ||
namespace: default | ||
workspace: root:users:xr:vd:rh-sso-hongweiliu:hongliu-dev-6 | ||
--- | ||
apiVersion: appstudio.redhat.com/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: component-sample | ||
namespace: default | ||
spec: | ||
componentName: sample-component | ||
application: application-sample | ||
source: | ||
git: | ||
url: https://github.com/devfile-samples/devfile-sample-code-with-quarkus | ||
containerImage: quay.io/hongweiliu/foobar:dev-code-with-quarkus | ||
origin: | ||
namespace: default | ||
workspace: root:users:xr:vd:rh-sso-hongweiliu:hongliu-dev-6 | ||
--- | ||
apiVersion: appstudio.redhat.com/v1alpha1 | ||
kind: ApplicationSnapshot | ||
metadata: | ||
name: snapshot-sample | ||
namespace: default | ||
spec: | ||
application: application-sample | ||
displayname: application-sample | ||
displaydescription: application-sample | ||
Components: | ||
- component-sample |
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,52 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: kcp-syncer-hongliucluster-37gq7rur | ||
namespace: kcp-syncer-hongliucluster-37gq7rur | ||
spec: | ||
replicas: 1 | ||
strategy: | ||
type: Recreate | ||
selector: | ||
matchLabels: | ||
app: kcp-syncer-hongliucluster-37gq7rur | ||
template: | ||
metadata: | ||
labels: | ||
app: kcp-syncer-hongliucluster-37gq7rur | ||
spec: | ||
containers: | ||
- name: kcp-syncer | ||
command: | ||
- /ko-app/syncer | ||
args: | ||
- --from-kubeconfig=/kcp/kubeconfig | ||
- --sync-target-name=hongliucluster | ||
- --sync-target-uid=90c3d2d8-c1e5-485f-9a18-bbfa122bdf4d | ||
- --from-cluster=root:users:xr:vd:rh-sso-hongweiliu:hongliu-dev-6 | ||
- --resources=configmaps | ||
- --resources=deployments.apps | ||
- --resources=secrets | ||
- --resources=serviceaccounts | ||
- --resources=pipelineruns.tekton.dev | ||
- --resources=applicationsnapshots.appstudio.redhat.com | ||
- --resources=components.appstudio.redhat.com | ||
- --resources=applications.appstudio.redhat.com | ||
- --resources=integrationtestscenarios.appstudio.redhat.com | ||
- --resources=applicationsnapshotenvironmentbindings.appstudio.redhat.com | ||
- --qps=30 | ||
- --burst=20 | ||
image: ghcr.io/kcp-dev/kcp/syncer:v0.7.10 | ||
imagePullPolicy: IfNotPresent | ||
terminationMessagePolicy: FallbackToLogsOnError | ||
volumeMounts: | ||
- name: kcp-config | ||
mountPath: /kcp/ | ||
readOnly: true | ||
serviceAccountName: kcp-syncer-hongliucluster-37gq7rur | ||
volumes: | ||
- name: kcp-config | ||
secret: | ||
secretName: kcp-syncer-hongliucluster-37gq7rur | ||
optional: false |
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
Oops, something went wrong.