小编and*_*ich的帖子

无法在 Kubernetes 集群中执行 GitLab Runner:无法在命名空间“gitlab”中的 API 组“”中创建资源“秘密”

目前我面临的问题是:

ERROR: Job failed (system failure): 
prepare environment: 
setting up credentials: 
secrets is forbidden: 
User "system:serviceaccount:default:gitlab-runner" cannot create
resource "secrets" in API group "" in the namespace "gitlab"` 
after following the official documentation on how to integrate the GitLab Runner.
Run Code Online (Sandbox Code Playgroud)

我正在使用以下内容runner-chart-values.yaml

# The GitLab Server URL (with protocol) that want to register the runner against
# ref: https://docs.gitlab.com/runner/commands/README.html#gitlab-runner-register
#
gitlabUrl: http://example.domain/

# The Registration Token for adding new runners to the GitLab Server. This must
# be retrieved …
Run Code Online (Sandbox Code Playgroud)

gitlab docker gitlab-ci kubernetes gitlab-ci-runner

12
推荐指数
2
解决办法
2万
查看次数

从 tslint 切换到 eslint 后,Angular 12 模板 linting 不起作用

将 nx 工作区升级到 v12 后,一切都像以前一样工作,IDE 中包含预期的模板。

IDE(WebStorm)显示一些以前从未发生过的奇怪错误: 升级角度后出现 linting 错误

第一个警告表示属性 ngIf 上没有匹配任何指令,即使导入了,第二个错误也与Missing require() 语句相关CommonModule,并且asyncvar async = require('@angular/core/testing').async;

这真的很有趣,因为构建整个 monorepo 工作完美,所以我猜这可能是由一些不正确的 linting 配置引起的。不得不说,工作区不仅更新到了最新版本,还nx进行了转换tslinteslint

过去有人遇到过类似的问题吗?

angular nrwl-nx

9
推荐指数
1
解决办法
4324
查看次数

如何在 angular 库中使用与 ng-packagr 捆绑的资产

我尝试将一些资产捆绑到我发布的 angular 库中。在我的角度工作区中,我在 - 文件src夹中找到了以下资产ng-package.json

{
  "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
  "dest": "../../dist/project",
  "lib": {
    "entryFile": "src/public-api.ts"
  },
  "assets": [
    "src/assets"
  ]
}
Run Code Online (Sandbox Code Playgroud)

资产按原样成功复制,但如何在模板中使用资产(在本例中为图像)?例如,相关模板文件如下所示:

<div class="login">
  <img src="assets/image.png">
  <div class="actions">
    <ot-cis-input
      [placeholder]="'Bitte Nutzername eingeben'"
      [title]="'Nutzername'"
      [value]="username"
      (changedValue)="username=$event">
    </ot-cis-input>
    <ot-cis-input
      [title]="'Passwort'"
      [type]="'password'"
      (changedValue)="password=$event"></ot-cis-input>
    <div class="login-button">
      <ot-cis-button
        [isPrimary]="true"
        [isLoading]="loadingState"
        (click)="performLogin()">Einloggen</ot-cis-button>
    </div>
  </div>
</div>

Run Code Online (Sandbox Code Playgroud)

捆绑的库结构是这样的: dist/project/lib/library并且资产被放置在dist/project/src/assets/image.png

谁能帮我?

angular ng-packagr

6
推荐指数
0
解决办法
214
查看次数

将 monaco 编辑器集成到 ember 辛烷中

我尝试将摩纳哥代码编辑器集成到我的 ember 辛烷应用程序中。目前我正在使用 ESM 导入样式并确认手册,我安装了 webpack 加载器插件并将其集成到我的 ember-cli-build.js 中

const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');

module.exports = function(defaults) {
  let app = new EmberApp(defaults, {
    autoImport: {
      webpack: {
        plugins: [
          new MonacoWebpackPlugin()
        ]
      }
    }
  });

  // Use `app.import` to add additional libraries to the generated
  // output files.
  //
  // If you need to use different assets in different
  // environments, specify an object as the first parameter. That
  // object's keys should be …
Run Code Online (Sandbox Code Playgroud)

ember.js webpack monaco-editor ember-octane

4
推荐指数
1
解决办法
781
查看次数